diff --git a/generate_templates.py b/generate_templates.py index ccad4ae..f849a48 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -4,6 +4,7 @@ import sys DEVICEMAP_PATH = pathlib.Path("./") / "devicemaps.json" +TEMPLATE_SKU_PATH = pathlib.Path("./") / "template-skus.txt" TEMPLATE_DIR = pathlib.Path("./templates") IMG_DIR = pathlib.Path("./img") LTE_HELP_TIP = "LTE is available on your platform." @@ -205,26 +206,31 @@ def main(): + template_skus = TEMPLATE_SKU_PATH.read_text().splitlines() + interfacemap = json.loads(DEVICEMAP_PATH.read_text()) + + models = set() + + for template_sku in template_skus: + vendor, sku = template_sku.split(maxsplit=1) + devicemap = interfacemap["interfaceMap"][vendor][sku] + actual_devicemap = resolve_alias(devicemap, interfacemap) - for vendor, skus in interfacemap["interfaceMap"].items(): - models = set() - for sku, devicemap in skus.items(): - actual_devicemap = resolve_alias(devicemap, interfacemap) - if not actual_devicemap: - continue + if not actual_devicemap: + continue - model = devicemap.get("displayModel", sku) + model = devicemap.get("displayModel", sku) - # make sure models are unique per vendor - if model in models: - print(f"Vendor {vendor} has duplicate model {model}") - sys.exit(1) + # make sure models are unique per vendor + if model in models: + print(f"Vendor {vendor} has duplicate model {model}") + sys.exit(1) - models.add(model) + models.add(model) - template = generate_template(vendor, model, actual_devicemap) - write_template(vendor, model, template) + template = generate_template(vendor, model, actual_devicemap) + write_template(vendor, model, template) def generate_template(vendor, model, devicemap): description_suffix = "" @@ -239,12 +245,12 @@ def generate_template(vendor, model, devicemap): "builtin": True, "mode": "advanced", "help": format_help_msg(vendor, model, bool(devicemap.get("lte"))), - "body": f"{{% editgroup %}}\n\n{json.dumps(generate_body(devicemap), indent=2)}", + "body": f"{{% editgroup %}}\n\n{json.dumps(generate_body(devicemap, model), indent=2)}", "schema": generate_schema(vendor, model, devicemap) } -def generate_body(devicemap): +def generate_body(devicemap, model): device_interfaces = [] for index, lte_interface in enumerate(devicemap.get("lte", [])): device_interfaces.append( @@ -275,7 +281,11 @@ def generate_body(devicemap): for index, dev_intf in enumerate(devicemap["ethernet"]): if dev_intf["type"] in ["MGMT", "SWITCH_PARENT"]: continue + if dev_intf["type"] == "HASync" and "macIndex" in dev_intf: + continue intf = {"pciAddress": dev_intf["pciAddress"]} if dev_intf.get("pciAddress") else {} + if dev_intf.get("parent"): + intf["interfaceName"] = dev_intf["name"] intf.update({ "description": dev_intf["description"], "enabled": "true", @@ -285,7 +295,7 @@ def generate_body(devicemap): if dev_intf["type"] == "WAN": intf["networkInterface"] = [ { - "name": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("name", f"{dev_intf['name']} Network Interface"), + "name": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("name", f"{dev_intf['name']}"), "description": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("description", ""), "sourceNat": "true", "dhcp": "v4", @@ -302,7 +312,7 @@ def generate_body(devicemap): else: intf["networkInterface"] = [ { - "name": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("name", f"{dev_intf['name']} Network Interface"), + "name": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("name", f"{dev_intf['name']}"), "description": dev_intf.get("bcpNetwork", {}).get("standaloneBranch", {}).get("description", ""), "address": [ { @@ -347,6 +357,9 @@ def generate_body(devicemap): body["authority"]["router"][0]["_value"]["node"][0]["deviceInterface"] = device_interfaces + if devicemap.get("platformCapabilities"): + body["authority"]["router"][0]["_value"]["node"][0]["platformType"] = model + return body @@ -396,6 +409,8 @@ def generate_schema(vendor, model, devicemap): def generate_port_schema(devicemap): properties = {} for port in devicemap["ethernet"] + devicemap.get("lte", []): + if port["type"] in ["SWITCH_PARENT"]: + continue if port["type"] in ["MGMT", "WAN", "LTE"]: simplified_type = port["type"] else: diff --git a/template-skus.txt b/template-skus.txt new file mode 100644 index 0000000..6085b28 --- /dev/null +++ b/template-skus.txt @@ -0,0 +1,18 @@ +Juniper SSR120 +Juniper SSR120-AE +Juniper SSR130 +Juniper SSR130-AE +Juniper SSR1200 +Juniper SSR1300 +Juniper SSR1400 +Juniper SSR1500 +Juniper SSR400 +Juniper SSR400-C +Juniper SSR440 +Juniper SSR440-C +Lanner NCA-1515 +Lenovo 7Z73CTO1WW +Silicom 90500-0151- +Silicom 90500-0151-G11 +Silicom 90500-0151-G53 +Silicom 90500-0151-G71 diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 723b6e4..a2ae09e 100644 --- a/templates/Juniper-SSR400-C-template.json +++ b/templates/Juniper-SSR400-C-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR400-C Router\n\nThis adds a basic Juniper SSR400-C Session Smart Router to your configuration.\nLTE is available on your platform.\n\n\n\n##Generate Config\nSelect the generate config icon at the top of the page, and proceed to configuration. Validate and commit to finish adding the new router to running configuration.\n\n## Port Details\nThis template assumes all WAN interfaces on your device will be connected to a network providing it DHCP address assignment, and with connectivity to your conductor.\n\nIt will configure LAN interfaces providing a DHCP server to connected endpoints. From the LAN, the router local GUI and CLI will be accessible at `192.168.128.1`\n\n", - "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"mhi_netdev0\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"200\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n },\n {\n \"description\": \"SFP Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-0 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"SFP Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-1 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-2 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"103\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-3 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-4 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-5 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-6 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-7 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-8 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 9 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-9\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-9 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", + "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"mhi_netdev0\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"200\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-0\",\n \"description\": \"SFP Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-1\",\n \"description\": \"SFP Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-2\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-2\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"103\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-3\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-3\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-4\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-4\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-5\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-5\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-6\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-6\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-7\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-7\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-8\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-8\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-9\",\n \"description\": \"Port 9 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-9\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-9\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n }\n ],\n \"platformType\": \"SSR400-C\"\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", "schema": { "type": "object", "definitions": { @@ -157,11 +157,6 @@ "title": "Ports", "description": "Port and network settings.", "properties": { - "fte-0-0": { - "title": "LAN - fte-0-0", - "description": "Internal switch port on the device", - "$ref": "#/definitions/lanPort" - }, "ge-0-0": { "title": "WAN - ge-0-0", "description": "SFP Port 0 labeled on the device", diff --git a/templates/Juniper-SSR400-CW-US-template.json b/templates/Juniper-SSR400-CW-US-template.json deleted file mode 100644 index be2ea4a..0000000 --- a/templates/Juniper-SSR400-CW-US-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR400-CW-US-Template", - "description": "Adds a standalone Juniper SSR400-CW-US router: Juniper SSR400-CW-US - 10 ethernet ports + 5G + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-CW-US Router\n\nThis adds a basic Juniper SSR400-CW-US Session Smart Router to your configuration.\nLTE is available on your platform.\n\n\n\n##Generate Config\nSelect the generate config icon at the top of the page, and proceed to configuration. Validate and commit to finish adding the new router to running configuration.\n\n## Port Details\nThis template assumes all WAN interfaces on your device will be connected to a network providing it DHCP address assignment, and with connectivity to your conductor.\n\nIt will configure LAN interfaces providing a DHCP server to connected endpoints. From the LAN, the router local GUI and CLI will be accessible at `192.168.128.1`\n\n", - "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"mhi_netdev0\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"200\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", - "schema": { - "type": "object", - "definitions": { - "wanPort": { - "type": "object", - "properties": { - "conductor": { - "title": "Conductor can be reached from this interface", - "type": "boolean", - "default": true, - "readOnly": true - }, - "dhcpClient": { - "title": "Address learned using DHCP", - "type": "boolean", - "default": true, - "readOnly": true - } - }, - "dependencies": { - "dhcpClient": { - "oneOf": [ - { - "properties": { - "dhcpClient": { - "const": true, - "readOnly": true - } - } - }, - { - "properties": { - "dhcpClient": { - "const": false, - "readOnly": true - }, - "address": { - "title": "IP address", - "type": "string", - "description": "Network interface IP address. Example: 128.128.128.2", - "readOnly": true - }, - "prefix": { - "title": "Prefix", - "type": "string", - "description": "Network prefix length. Example: 24", - "readOnly": true - }, - "gateway": { - "title": "Gateway", - "type": "string", - "description": "Network gateway IP address. Example: 128.128.128.1", - "readOnly": true - } - } - } - ] - }, - "dhcpServer": { - "oneOf": [ - { - "properties": { - "dhcpServer": { - "const": true, - "readOnly": true - }, - "dhcpServerStartAddr": { - "title": "DHCP server pool start address", - "type": "string", - "default": "192.168.128.100", - "readOnly": true - }, - "dhcpServerEndAddr": { - "title": "DHCP server pool end address", - "type": "string", - "default": "192.168.128.254", - "readOnly": true - } - } - }, - { - "properties": { - "dhcpServer": { - "const": false, - "readOnly": true - } - } - } - ] - } - } - }, - "lanPort": { - "type": "object", - "properties": { - "web": { - "title": "Management GUI", - "description": "Enable web access to the node management GUI using HTTPS.", - "type": "boolean", - "default": true, - "readOnly": true - }, - "ssh": { - "title": "Management SSH", - "description": "Enable terminal access to the node management CLI using SSH.", - "type": "boolean", - "default": true, - "readOnly": true - }, - "dhcpServer": { - "title": "DHCP Server", - "description": "Enable DHCP server on the interface.", - "type": "boolean", - "default": true, - "readOnly": true - } - } - }, - "ltePort": { - "type": "object", - "properties": {} - }, - "mgmtPort": { - "type": "object", - "properties": {} - } - }, - "title": "New Juniper SSR400-CW-US branch router", - "description": "Add a new Juniper SSR400-CW-US branch router to the configuration.", - "properties": { - "routerName": { - "title": "Router Name", - "description": "Enter a name identifier for the router.", - "type": "string" - }, - "routerDescription": { - "title": "Description", - "description": "Description for the router.", - "type": "string" - }, - "routerLocation": { - "title": "Site Location", - "description": "Enter the address or location of the router. Example: City, State.", - "type": "string" - }, - "ports": { - "type": "object", - "title": "Ports", - "description": "Port and network settings.", - "properties": { - "lte-0-0": { - "title": "WAN - lte-0-0", - "description": "LTE device interface", - "$ref": "#/definitions/wanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR400-W-US-template.json b/templates/Juniper-SSR400-W-US-template.json deleted file mode 100644 index 82806bd..0000000 --- a/templates/Juniper-SSR400-W-US-template.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "name": "Juniper-SSR400-W-US-Template", - "description": "Adds a standalone Juniper SSR400-W-US router: Juniper SSR400-W-US - 10 ethernet ports + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-W-US Router\n\nThis adds a basic Juniper SSR400-W-US Session Smart Router to your configuration.\nLTE is available on your platform.\n\n\n\n##Generate Config\nSelect the generate config icon at the top of the page, and proceed to configuration. Validate and commit to finish adding the new router to running configuration.\n\n## Port Details\nThis template assumes all WAN interfaces on your device will be connected to a network providing it DHCP address assignment, and with connectivity to your conductor.\n\nIt will configure LAN interfaces providing a DHCP server to connected endpoints. From the LAN, the router local GUI and CLI will be accessible at `192.168.128.1`\n\n", - "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"mhi_netdev0\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"200\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n },\n {\n \"description\": \"SFP Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-0 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"SFP Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-1 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-2 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"103\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-3 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-4 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-5 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-6 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-7 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-8 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 9 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-9\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-9 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Internal AP port on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ap-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ap-0-0 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", - "schema": { - "type": "object", - "definitions": { - "wanPort": { - "type": "object", - "properties": { - "conductor": { - "title": "Conductor can be reached from this interface", - "type": "boolean", - "default": true, - "readOnly": true - }, - "dhcpClient": { - "title": "Address learned using DHCP", - "type": "boolean", - "default": true, - "readOnly": true - } - }, - "dependencies": { - "dhcpClient": { - "oneOf": [ - { - "properties": { - "dhcpClient": { - "const": true, - "readOnly": true - } - } - }, - { - "properties": { - "dhcpClient": { - "const": false, - "readOnly": true - }, - "address": { - "title": "IP address", - "type": "string", - "description": "Network interface IP address. Example: 128.128.128.2", - "readOnly": true - }, - "prefix": { - "title": "Prefix", - "type": "string", - "description": "Network prefix length. Example: 24", - "readOnly": true - }, - "gateway": { - "title": "Gateway", - "type": "string", - "description": "Network gateway IP address. Example: 128.128.128.1", - "readOnly": true - } - } - } - ] - }, - "dhcpServer": { - "oneOf": [ - { - "properties": { - "dhcpServer": { - "const": true, - "readOnly": true - }, - "dhcpServerStartAddr": { - "title": "DHCP server pool start address", - "type": "string", - "default": "192.168.128.100", - "readOnly": true - }, - "dhcpServerEndAddr": { - "title": "DHCP server pool end address", - "type": "string", - "default": "192.168.128.254", - "readOnly": true - } - } - }, - { - "properties": { - "dhcpServer": { - "const": false, - "readOnly": true - } - } - } - ] - } - } - }, - "lanPort": { - "type": "object", - "properties": { - "web": { - "title": "Management GUI", - "description": "Enable web access to the node management GUI using HTTPS.", - "type": "boolean", - "default": true, - "readOnly": true - }, - "ssh": { - "title": "Management SSH", - "description": "Enable terminal access to the node management CLI using SSH.", - "type": "boolean", - "default": true, - "readOnly": true - }, - "dhcpServer": { - "title": "DHCP Server", - "description": "Enable DHCP server on the interface.", - "type": "boolean", - "default": true, - "readOnly": true - } - } - }, - "ltePort": { - "type": "object", - "properties": {} - }, - "mgmtPort": { - "type": "object", - "properties": {} - } - }, - "title": "New Juniper SSR400-W-US branch router", - "description": "Add a new Juniper SSR400-W-US branch router to the configuration.", - "properties": { - "routerName": { - "title": "Router Name", - "description": "Enter a name identifier for the router.", - "type": "string" - }, - "routerDescription": { - "title": "Description", - "description": "Description for the router.", - "type": "string" - }, - "routerLocation": { - "title": "Site Location", - "description": "Enter the address or location of the router. Example: City, State.", - "type": "string" - }, - "ports": { - "type": "object", - "title": "Ports", - "description": "Port and network settings.", - "properties": { - "fte-0-0": { - "title": "LAN - fte-0-0", - "description": "Internal switch port on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "SFP Port 0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "SFP Port 1 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-2": { - "title": "WAN - ge-0-2", - "description": "Port 2 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-3": { - "title": "LAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-4": { - "title": "LAN - ge-0-4", - "description": "Port 4 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-5": { - "title": "LAN - ge-0-5", - "description": "Port 5 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-6": { - "title": "LAN - ge-0-6", - "description": "Port 6 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-7": { - "title": "LAN - ge-0-7", - "description": "Port 7 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-8": { - "title": "LAN - ge-0-8", - "description": "Port 8 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-9": { - "title": "LAN - ge-0-9", - "description": "Port 9 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ha-0-0": { - "title": "LAN - ha-0-0", - "description": "HA device interface", - "$ref": "#/definitions/lanPort" - }, - "ap-0-0": { - "title": "LAN - ap-0-0", - "description": "Internal AP port on the device", - "$ref": "#/definitions/lanPort" - }, - "lte-0-0": { - "title": "WAN - lte-0-0", - "description": "LTE device interface", - "$ref": "#/definitions/wanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index 858e426..ca55dc0 100644 --- a/templates/Juniper-SSR400-template.json +++ b/templates/Juniper-SSR400-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR400 Router\n\nThis adds a basic Juniper SSR400 Session Smart Router to your configuration.\n\n\n\n\n##Generate Config\nSelect the generate config icon at the top of the page, and proceed to configuration. Validate and commit to finish adding the new router to running configuration.\n\n## Port Details\nThis template assumes all WAN interfaces on your device will be connected to a network providing it DHCP address assignment, and with connectivity to your conductor.\n\nIt will configure LAN interfaces providing a DHCP server to connected endpoints. From the LAN, the router local GUI and CLI will be accessible at `192.168.128.1`\n\n", - "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"description\": \"SFP Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-0 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"SFP Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-1 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-2 Network Interface\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"103\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-3 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-4 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-5 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-6 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-7 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-8 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"Port 9 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-9\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-9 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0 Network Interface\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", + "body": "{% editgroup %}\n\n{\n \"authority\": {\n \"security\": [\n {\n \"name\": \"internal-encrypt-hmac-disable\",\n \"description\": \"Security policy built by builtin router template\",\n \"encrypt\": \"false\",\n \"adaptiveEncryption\": \"false\",\n \"hmacMode\": \"disabled\"\n }\n ],\n \"router\": [\n {\n \"_value\": {\n \"name\": \"{{routerName}}\",\n \"description\": \"{{routerDescription}}\",\n \"location\": \"{{routerLocation}}\",\n \"interNodeSecurity\": \"internal-encrypt-hmac-disable\",\n \"system\": {\n \"ntp\": {\n \"server\": [\n {\n \"ipAddress\": \"216.239.35.0\"\n },\n {\n \"ipAddress\": \"216.239.35.4\"\n },\n {\n \"ipAddress\": \"216.239.35.8\"\n },\n {\n \"ipAddress\": \"216.239.35.12\"\n }\n ]\n }\n },\n \"dnsConfig\": [\n {\n \"mode\": \"static\",\n \"address\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ],\n \"applicationIdentification\": {\n \"mode\": [\n \"all\"\n ]\n },\n \"node\": [\n {\n \"name\": \"node1\",\n \"role\": \"combo\",\n \"description\": \"{{routerName}} router node\",\n \"deviceInterface\": [\n {\n \"interfaceName\": \"ge-0-0\",\n \"description\": \"SFP Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-1\",\n \"description\": \"SFP Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-2\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-2\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"103\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-3\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-3\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-4\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-4\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-5\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-5\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-6\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-6\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-7\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-7\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-8\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-8\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"interfaceName\": \"ge-0-9\",\n \"description\": \"Port 9 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-9\",\n \"networkInterface\": [\n {\n \"name\": \"ge-0-9\",\n \"description\": \"\",\n \"address\": [\n {\n \"prefixLength\": \"24\",\n \"ipAddress\": \"192.168.128.1\",\n \"hostService\": [\n {\n \"serviceType\": \"ssh\",\n \"description\": \"SSH management\",\n \"enabled\": \"true\"\n },\n {\n \"serviceType\": \"dhcp-server\",\n \"serverName\": \"{{ routerName }}\",\n \"addressPool\": [\n {\n \"startAddress\": \"192.168.128.100\",\n \"endAddress\": \"192.168.128.200\",\n \"router\": [\n \"192.168.128.1\"\n ],\n \"domainServer\": [\n \"1.1.1.1\",\n \"8.8.8.8\"\n ]\n }\n ]\n },\n {\n \"serviceType\": \"web\",\n \"description\": \"Web GUI Management\",\n \"enabled\": \"true\"\n }\n ]\n }\n ]\n }\n ]\n }\n ],\n \"platformType\": \"SSR400\"\n }\n ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", "schema": { "type": "object", "definitions": { @@ -157,11 +157,6 @@ "title": "Ports", "description": "Port and network settings.", "properties": { - "fte-0-0": { - "title": "LAN - fte-0-0", - "description": "Internal switch port on the device", - "$ref": "#/definitions/lanPort" - }, "ge-0-0": { "title": "WAN - ge-0-0", "description": "SFP Port 0 labeled on the device",