From 0cceb0d9e282725d94c446c8acd5a09731031588 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Wed, 18 Mar 2026 18:19:33 +0000 Subject: [PATCH 1/6] support templates for SSR400 and 440 models --- generate_templates.py | 49 +++++++++++++++++++++++++++---------------- template-skus.txt | 18 ++++++++++++++++ 2 files changed, 49 insertions(+), 18 deletions(-) create mode 100644 template-skus.txt diff --git a/generate_templates.py b/generate_templates.py index ccad4ae..d4b2aea 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( @@ -276,6 +282,8 @@ def generate_body(devicemap): if dev_intf["type"] in ["MGMT", "SWITCH_PARENT"]: 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 +293,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 +310,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 +355,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 +407,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 From aa09b8661c11a61f0ea93d641a2e4cdaa1a75e7d Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 18 Mar 2026 18:22:00 +0000 Subject: [PATCH 2/6] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 7 +------ templates/Juniper-SSR400-template.json | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 723b6e4..6b9b52a 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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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-template.json b/templates/Juniper-SSR400-template.json index 858e426..9d7a274 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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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", From 75da9d2af4532a93f38e7737725c1ad2772ac6d2 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Wed, 18 Mar 2026 18:23:56 +0000 Subject: [PATCH 3/6] refresh templates --- templates/Juniper-SSR120-AE-template.json | 199 -------------- templates/Juniper-SSR120-template.json | 194 -------------- templates/Juniper-SSR1200-template.json | 224 ---------------- templates/Juniper-SSR130-AE-template.json | 209 --------------- templates/Juniper-SSR130-template.json | 204 -------------- templates/Juniper-SSR1300-template.json | 229 ---------------- templates/Juniper-SSR1400-template.json | 229 ---------------- templates/Juniper-SSR1500-template.json | 249 ------------------ templates/Juniper-SSR400-C-template.json | 224 ---------------- templates/Juniper-SSR400-CW-US-template.json | 169 ------------ templates/Juniper-SSR400-W-US-template.json | 234 ---------------- templates/Juniper-SSR400-template.json | 219 --------------- templates/Lanner-NCA-1515-template.json | 209 --------------- templates/Lenovo-SR650-template.json | 224 ---------------- templates/Silicom-90500-0151--template.json | 194 -------------- .../Silicom-90500-0151-G11-template.json | 199 -------------- .../Silicom-90500-0151-G53-template.json | 209 --------------- .../Silicom-90500-0151-G71-template.json | 204 -------------- 18 files changed, 3822 deletions(-) delete mode 100644 templates/Juniper-SSR120-AE-template.json delete mode 100644 templates/Juniper-SSR120-template.json delete mode 100644 templates/Juniper-SSR1200-template.json delete mode 100644 templates/Juniper-SSR130-AE-template.json delete mode 100644 templates/Juniper-SSR130-template.json delete mode 100644 templates/Juniper-SSR1300-template.json delete mode 100644 templates/Juniper-SSR1400-template.json delete mode 100644 templates/Juniper-SSR1500-template.json delete mode 100644 templates/Juniper-SSR400-C-template.json delete mode 100644 templates/Juniper-SSR400-CW-US-template.json delete mode 100644 templates/Juniper-SSR400-W-US-template.json delete mode 100644 templates/Juniper-SSR400-template.json delete mode 100644 templates/Lanner-NCA-1515-template.json delete mode 100644 templates/Lenovo-SR650-template.json delete mode 100644 templates/Silicom-90500-0151--template.json delete mode 100644 templates/Silicom-90500-0151-G11-template.json delete mode 100644 templates/Silicom-90500-0151-G53-template.json delete mode 100644 templates/Silicom-90500-0151-G71-template.json diff --git a/templates/Juniper-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json deleted file mode 100644 index 13af8f1..0000000 --- a/templates/Juniper-SSR120-AE-template.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "name": "Juniper-SSR120-AE-Template", - "description": "Adds a standalone Juniper SSR120-AE router: Juniper SSR120 - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR120-AE Router\n\nThis adds a basic Juniper SSR120-AE 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR120-AE\n\n![Juniper SSR120-AE](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR120-AE/standaloneBranch.jpg)\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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 5 labeled on the device\",\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 SSR120-AE branch router", - "description": "Add a new Juniper SSR120-AE 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": { - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "Port 0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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" - }, - "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-SSR120-template.json b/templates/Juniper-SSR120-template.json deleted file mode 100644 index bb890b9..0000000 --- a/templates/Juniper-SSR120-template.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "name": "Juniper-SSR120-Template", - "description": "Adds a standalone Juniper SSR120 router: Juniper SSR120 - 6 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR120 Router\n\nThis adds a basic Juniper SSR120 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR120\n\n![Juniper SSR120](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR120/standaloneBranch.jpg)\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 5 labeled on the device\",\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 SSR120 branch router", - "description": "Add a new Juniper SSR120 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": { - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "Port 0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR1200-template.json b/templates/Juniper-SSR1200-template.json deleted file mode 100644 index 9d9c797..0000000 --- a/templates/Juniper-SSR1200-template.json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "name": "Juniper-SSR1200-Template", - "description": "Adds a standalone Juniper SSR1200 router: Juniper SSR1200 - 1 MGMT, 11 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1200 Router\n\nThis adds a basic Juniper SSR1200 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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.2\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.3\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.1\",\n \"description\": \"Port 0/4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 0/4 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.2\",\n \"description\": \"Port 0/5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 0/5 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.3\",\n \"description\": \"Port 0/6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 0/6 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.3\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.2\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.1\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.0\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 1/3 labeled on the device\",\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 SSR1200 branch router", - "description": "Add a new Juniper SSR1200 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": { - "mgmt-0-0": { - "title": "MGMT - mgmt-0-0", - "description": "Port MGMT labeled on the device", - "$ref": "#/definitions/mgmtPort" - }, - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "Port 0/0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "Port 0/1 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-2": { - "title": "WAN - ge-0-2", - "description": "Port 0/2 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-3": { - "title": "LAN - ge-0-3", - "description": "Port 0/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-4": { - "title": "LAN - ge-0-4", - "description": "Port 0/4 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-5": { - "title": "LAN - ge-0-5", - "description": "Port 0/5 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-6": { - "title": "LAN - ge-0-6", - "description": "Port 0/6 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-1-0": { - "title": "LAN - xe-1-0", - "description": "Port 1/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-1-1": { - "title": "LAN - xe-1-1", - "description": "Port 1/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-1-2": { - "title": "LAN - xe-1-2", - "description": "Port 1/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-1-3": { - "title": "LAN - xe-1-3", - "description": "Port 1/3 labeled on the device", - "$ref": "#/definitions/lanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json deleted file mode 100644 index b0b55f8..0000000 --- a/templates/Juniper-SSR130-AE-template.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "name": "Juniper-SSR130-AE-Template", - "description": "Adds a standalone Juniper SSR130-AE router: Juniper SSR130 - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR130-AE Router\n\nThis adds a basic Juniper SSR130-AE 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR130-AE\n\n![Juniper SSR130-AE](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR130-AE/standaloneBranch.jpg)\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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 7 labeled on the device\",\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 SSR130-AE branch router", - "description": "Add a new Juniper SSR130-AE 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": { - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "Port 0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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" - }, - "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-SSR130-template.json b/templates/Juniper-SSR130-template.json deleted file mode 100644 index 3fe2acb..0000000 --- a/templates/Juniper-SSR130-template.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "name": "Juniper-SSR130-Template", - "description": "Adds a standalone Juniper SSR130 router: Juniper SSR130 - 8 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR130 Router\n\nThis adds a basic Juniper SSR130 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR130\n\n![Juniper SSR130](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR130/standaloneBranch.jpg)\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 7 labeled on the device\",\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 SSR130 branch router", - "description": "Add a new Juniper SSR130 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": { - "ge-0-0": { - "title": "WAN - ge-0-0", - "description": "Port 0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR1300-template.json b/templates/Juniper-SSR1300-template.json deleted file mode 100644 index cdddab2..0000000 --- a/templates/Juniper-SSR1300-template.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "name": "Juniper-SSR1300-Template", - "description": "Adds a standalone Juniper SSR1300 router: Juniper SSR1300 - 1 MGMT, 12 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1300 Router\n\nThis adds a basic Juniper SSR1300 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 \"pciAddress\": \"0000:6a:00.0\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.1\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.2\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:6a:00.3\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.3\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.2\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.1\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.0\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/3 labeled on the device\",\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 SSR1300 branch router", - "description": "Add a new Juniper SSR1300 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": { - "xe-0-0": { - "title": "WAN - xe-0-0", - "description": "Port 0/0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-1": { - "title": "WAN - xe-0-1", - "description": "Port 0/1 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-2": { - "title": "WAN - xe-0-2", - "description": "Port 0/2 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-3": { - "title": "LAN - xe-0-3", - "description": "Port 0/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "mgmt-0-0": { - "title": "MGMT - mgmt-0-0", - "description": "Port MGMT labeled on the device", - "$ref": "#/definitions/mgmtPort" - }, - "ge-1-0": { - "title": "LAN - ge-1-0", - "description": "Port 1/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-1": { - "title": "LAN - ge-1-1", - "description": "Port 1/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-2": { - "title": "LAN - ge-1-2", - "description": "Port 1/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-3": { - "title": "LAN - ge-1-3", - "description": "Port 1/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-0": { - "title": "LAN - xe-2-0", - "description": "Port 2/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-1": { - "title": "LAN - xe-2-1", - "description": "Port 2/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-2": { - "title": "LAN - xe-2-2", - "description": "Port 2/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-3": { - "title": "LAN - xe-2-3", - "description": "Port 2/3 labeled on the device", - "$ref": "#/definitions/lanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR1400-template.json b/templates/Juniper-SSR1400-template.json deleted file mode 100644 index fb8c3af..0000000 --- a/templates/Juniper-SSR1400-template.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "name": "Juniper-SSR1400-Template", - "description": "Adds a standalone Juniper SSR1400 router: Juniper SSR1400 - 1 MGMT, 12 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1400 Router\n\nThis adds a basic Juniper SSR1400 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 \"pciAddress\": \"0000:6a:00.0\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.1\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.2\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:6a:00.3\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.0\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.1\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.2\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.3\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/3 labeled on the device\",\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 SSR1400 branch router", - "description": "Add a new Juniper SSR1400 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": { - "xe-0-0": { - "title": "WAN - xe-0-0", - "description": "Port 0/0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-1": { - "title": "WAN - xe-0-1", - "description": "Port 0/1 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-2": { - "title": "WAN - xe-0-2", - "description": "Port 0/2 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "xe-0-3": { - "title": "LAN - xe-0-3", - "description": "Port 0/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "mgmt-0-0": { - "title": "MGMT - mgmt-0-0", - "description": "Port MGMT labeled on the device", - "$ref": "#/definitions/mgmtPort" - }, - "ge-1-0": { - "title": "LAN - ge-1-0", - "description": "Port 1/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-1": { - "title": "LAN - ge-1-1", - "description": "Port 1/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-2": { - "title": "LAN - ge-1-2", - "description": "Port 1/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-1-3": { - "title": "LAN - ge-1-3", - "description": "Port 1/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-0": { - "title": "LAN - xe-2-0", - "description": "Port 2/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-1": { - "title": "LAN - xe-2-1", - "description": "Port 2/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-2": { - "title": "LAN - xe-2-2", - "description": "Port 2/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-3": { - "title": "LAN - xe-2-3", - "description": "Port 2/3 labeled on the device", - "$ref": "#/definitions/lanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR1500-template.json b/templates/Juniper-SSR1500-template.json deleted file mode 100644 index b81a2e0..0000000 --- a/templates/Juniper-SSR1500-template.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "name": "Juniper-SSR1500-Template", - "description": "Adds a standalone Juniper SSR1500 router: Juniper SSR1500 - 1 MGMT, 16 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1500 Router\n\nThis adds a basic Juniper SSR1500 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 \"pciAddress\": \"0000:44:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.0\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.1\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.2\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.3\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 2/3 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.0\",\n \"description\": \"Port 3/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 3/0 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.1\",\n \"description\": \"Port 3/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 3/1 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.2\",\n \"description\": \"Port 3/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 3/2 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.3\",\n \"description\": \"Port 3/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 3/3 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.0\",\n \"description\": \"Port 4/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan8\",\n \"description\": \"LAN 8 network interface, connected to port 4/0 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.1\",\n \"description\": \"Port 4/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan9\",\n \"description\": \"LAN 9 network interface, connected to port 4/1 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.2\",\n \"description\": \"Port 4/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan10\",\n \"description\": \"LAN 10 network interface, connected to port 4/2 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.3\",\n \"description\": \"Port 4/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan11\",\n \"description\": \"LAN 11 network interface, connected to port 4/3 labeled on the device\",\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 SSR1500 branch router", - "description": "Add a new Juniper SSR1500 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": { - "mgmt-0-0": { - "title": "MGMT - mgmt-0-0", - "description": "Port MGMT labeled on the device", - "$ref": "#/definitions/mgmtPort" - }, - "ge-1-0": { - "title": "WAN - ge-1-0", - "description": "Port 1/0 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-1-1": { - "title": "WAN - ge-1-1", - "description": "Port 1/1 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-1-2": { - "title": "WAN - ge-1-2", - "description": "Port 1/2 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-1-3": { - "title": "LAN - ge-1-3", - "description": "Port 1/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-0": { - "title": "LAN - xe-2-0", - "description": "Port 2/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-1": { - "title": "LAN - xe-2-1", - "description": "Port 2/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-2": { - "title": "LAN - xe-2-2", - "description": "Port 2/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-2-3": { - "title": "LAN - xe-2-3", - "description": "Port 2/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-3-0": { - "title": "LAN - xe-3-0", - "description": "Port 3/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-3-1": { - "title": "LAN - xe-3-1", - "description": "Port 3/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-3-2": { - "title": "LAN - xe-3-2", - "description": "Port 3/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-3-3": { - "title": "LAN - xe-3-3", - "description": "Port 3/3 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-4-0": { - "title": "LAN - xe-4-0", - "description": "Port 4/0 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-4-1": { - "title": "LAN - xe-4-1", - "description": "Port 4/1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-4-2": { - "title": "LAN - xe-4-2", - "description": "Port 4/2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "xe-4-3": { - "title": "LAN - xe-4-3", - "description": "Port 4/3 labeled on the device", - "$ref": "#/definitions/lanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json deleted file mode 100644 index 6b9b52a..0000000 --- a/templates/Juniper-SSR400-C-template.json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "name": "Juniper-SSR400-C-Template", - "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet ports + 5G", - "enabled": true, - "persistInput": false, - "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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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": { - "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-C branch router", - "description": "Add a new Juniper SSR400-C 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": { - "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" - }, - "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-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 deleted file mode 100644 index 9d7a274..0000000 --- a/templates/Juniper-SSR400-template.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "name": "Juniper-SSR400-Template", - "description": "Adds a standalone Juniper SSR400 router: Juniper SSR400 - 10 ethernet ports", - "enabled": true, - "persistInput": false, - "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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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": { - "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 branch router", - "description": "Add a new Juniper SSR400 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": { - "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" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Lanner-NCA-1515-template.json b/templates/Lanner-NCA-1515-template.json deleted file mode 100644 index c194732..0000000 --- a/templates/Lanner-NCA-1515-template.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "name": "Lanner-NCA-1515-Template", - "description": "Adds a standalone Lanner NCA-1515 router: Lanner - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Lanner NCA-1515 Router\n\nThis adds a basic Lanner NCA-1515 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\": \"wwp0s21u4i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:02:00.2\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 3 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.3\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:08:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 5 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"104\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:08:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:0a:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 7 labeled on the device\",\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 \"pciAddress\": \"0000:0a:00.1\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 8 labeled on the device\",\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 Lanner NCA-1515 branch router", - "description": "Add a new Lanner NCA-1515 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": { - "ge-0-1": { - "title": "LAN - ge-0-1", - "description": "Port 1 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-2": { - "title": "LAN - ge-0-2", - "description": "Port 2 labeled on the device", - "$ref": "#/definitions/lanPort" - }, - "ge-0-3": { - "title": "WAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-4": { - "title": "WAN - ge-0-4", - "description": "Port 4 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "ge-0-5": { - "title": "WAN - ge-0-5", - "description": "Port 5 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "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" - }, - "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/Lenovo-SR650-template.json b/templates/Lenovo-SR650-template.json deleted file mode 100644 index 9701112..0000000 --- a/templates/Lenovo-SR650-template.json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "name": "Lenovo-SR650-Template", - "description": "Adds a standalone Lenovo SR650 router: 1 MGMT, 11 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Lenovo SR650 Router\n\nThis adds a basic Lenovo SR650 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 \"pciAddress\": \"0000:8a:00.0\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-1-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:8a:00.1\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-1-1\",\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 \"pciAddress\": \"0000:51:00.0\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-2-0\",\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 \"pciAddress\": \"0000:51:00.1\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-2-1\",\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 \"pciAddress\": \"0000:c4:00.0\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-7-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-7-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"104\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c4:00.1\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-7-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-7-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"105\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.0\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-0\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"106\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.1\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-1\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"107\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.2\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-2\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-2\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"108\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:18:00.0\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-9-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-9-0\",\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 \"pciAddress\": \"0000:18:00.1\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-9-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-9-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"1011\",\n \"name\": \"mgmt\"\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 Lenovo SR650 branch router", - "description": "Add a new Lenovo SR650 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": { - "et-1-0": { - "title": "WAN - et-1-0", - "description": "QSFP28 100G SR4", - "$ref": "#/definitions/wanPort" - }, - "et-1-1": { - "title": "LAN - et-1-1", - "description": "QSFP28 100G SR4", - "$ref": "#/definitions/lanPort" - }, - "et-2-0": { - "title": "LAN - et-2-0", - "description": "QSFP28 100G SR4", - "$ref": "#/definitions/lanPort" - }, - "et-2-1": { - "title": "LAN - et-2-1", - "description": "QSFP28 100G SR4", - "$ref": "#/definitions/lanPort" - }, - "et-7-0": { - "title": "WAN - et-7-0", - "description": "SFP28 25GE", - "$ref": "#/definitions/wanPort" - }, - "et-7-1": { - "title": "WAN - et-7-1", - "description": "SFP28 25GE", - "$ref": "#/definitions/wanPort" - }, - "xe-8-0": { - "title": "WAN - xe-8-0", - "description": "10GE RJ45", - "$ref": "#/definitions/wanPort" - }, - "xe-8-1": { - "title": "WAN - xe-8-1", - "description": "10GE RJ45", - "$ref": "#/definitions/wanPort" - }, - "xe-8-2": { - "title": "WAN - xe-8-2", - "description": "10GE RJ45", - "$ref": "#/definitions/wanPort" - }, - "mgmt-8-3": { - "title": "MGMT - mgmt-8-3", - "description": "10GE RJ45", - "$ref": "#/definitions/mgmtPort" - }, - "et-9-0": { - "title": "LAN - et-9-0", - "description": "SFP28 25GE", - "$ref": "#/definitions/lanPort" - }, - "et-9-1": { - "title": "WAN - et-9-1", - "description": "SFP28 25GE", - "$ref": "#/definitions/wanPort" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Silicom-90500-0151--template.json b/templates/Silicom-90500-0151--template.json deleted file mode 100644 index 1047d10..0000000 --- a/templates/Silicom-90500-0151--template.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "name": "Silicom-90500-0151--Template", - "description": "Adds a standalone Silicom 90500-0151- router: Madrid - 6 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151- Router\n\nThis adds a basic Silicom 90500-0151- 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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151- branch router", - "description": "Add a new Silicom 90500-0151- 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": { - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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": "WAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "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" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json deleted file mode 100644 index 8ab2aea..0000000 --- a/templates/Silicom-90500-0151-G11-template.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "name": "Silicom-90500-0151-G11-Template", - "description": "Adds a standalone Silicom 90500-0151-G11 router: Madrid - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G11 Router\n\nThis adds a basic Silicom 90500-0151-G11 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151-G11 branch router", - "description": "Add a new Silicom 90500-0151-G11 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": { - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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": "WAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "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" - }, - "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/Silicom-90500-0151-G53-template.json b/templates/Silicom-90500-0151-G53-template.json deleted file mode 100644 index 70c5f7d..0000000 --- a/templates/Silicom-90500-0151-G53-template.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "name": "Silicom-90500-0151-G53-Template", - "description": "Adds a standalone Silicom 90500-0151-G53 router: Madrid - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G53 Router\n\nThis adds a basic Silicom 90500-0151-G53 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"WAN 4 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"WAN 5 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 7 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 8 labeled on the device\",\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 Silicom 90500-0151-G53 branch router", - "description": "Add a new Silicom 90500-0151-G53 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": { - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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": "WAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "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" - }, - "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/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json deleted file mode 100644 index 63bd842..0000000 --- a/templates/Silicom-90500-0151-G71-template.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "name": "Silicom-90500-0151-G71-Template", - "description": "Adds a standalone Silicom 90500-0151-G71 router: Madrid - 6 ethernet, 2 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G71 Router\n\nThis adds a basic Silicom 90500-0151-G71 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"name\": \"lte-0-1\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"wwp0s21u3i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-1\",\n \"description\": \"LTE network interface\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"201\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151-G71 branch router", - "description": "Add a new Silicom 90500-0151-G71 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": { - "ge-0-1": { - "title": "WAN - ge-0-1", - "description": "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": "WAN - ge-0-3", - "description": "Port 3 labeled on the device", - "$ref": "#/definitions/wanPort" - }, - "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" - }, - "lte-0-0": { - "title": "WAN - lte-0-0", - "description": "LTE device interface", - "$ref": "#/definitions/wanPort" - }, - "lte-0-1": { - "title": "WAN - lte-0-1", - "description": "LTE device interface", - "$ref": "#/definitions/wanPort" - } - } - } - } - } -} \ No newline at end of file From 97c5605f652c1b221a07344b2e6a237228fadd0d Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 18 Mar 2026 18:24:32 +0000 Subject: [PATCH 4/6] Autogenerated commit for templates --- templates/Juniper-SSR120-AE-template.json | 199 ++++++++++++++ templates/Juniper-SSR120-template.json | 194 ++++++++++++++ templates/Juniper-SSR1200-template.json | 224 ++++++++++++++++ templates/Juniper-SSR130-AE-template.json | 209 +++++++++++++++ templates/Juniper-SSR130-template.json | 204 ++++++++++++++ templates/Juniper-SSR1300-template.json | 229 ++++++++++++++++ templates/Juniper-SSR1400-template.json | 229 ++++++++++++++++ templates/Juniper-SSR1500-template.json | 249 ++++++++++++++++++ templates/Juniper-SSR400-C-template.json | 224 ++++++++++++++++ templates/Juniper-SSR400-template.json | 219 +++++++++++++++ templates/Lanner-NCA-1515-template.json | 209 +++++++++++++++ templates/Lenovo-SR650-template.json | 224 ++++++++++++++++ templates/Silicom-90500-0151--template.json | 194 ++++++++++++++ .../Silicom-90500-0151-G11-template.json | 199 ++++++++++++++ .../Silicom-90500-0151-G53-template.json | 209 +++++++++++++++ .../Silicom-90500-0151-G71-template.json | 204 ++++++++++++++ 16 files changed, 3419 insertions(+) create mode 100644 templates/Juniper-SSR120-AE-template.json create mode 100644 templates/Juniper-SSR120-template.json create mode 100644 templates/Juniper-SSR1200-template.json create mode 100644 templates/Juniper-SSR130-AE-template.json create mode 100644 templates/Juniper-SSR130-template.json create mode 100644 templates/Juniper-SSR1300-template.json create mode 100644 templates/Juniper-SSR1400-template.json create mode 100644 templates/Juniper-SSR1500-template.json create mode 100644 templates/Juniper-SSR400-C-template.json create mode 100644 templates/Juniper-SSR400-template.json create mode 100644 templates/Lanner-NCA-1515-template.json create mode 100644 templates/Lenovo-SR650-template.json create mode 100644 templates/Silicom-90500-0151--template.json create mode 100644 templates/Silicom-90500-0151-G11-template.json create mode 100644 templates/Silicom-90500-0151-G53-template.json create mode 100644 templates/Silicom-90500-0151-G71-template.json diff --git a/templates/Juniper-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json new file mode 100644 index 0000000..13af8f1 --- /dev/null +++ b/templates/Juniper-SSR120-AE-template.json @@ -0,0 +1,199 @@ +{ + "name": "Juniper-SSR120-AE-Template", + "description": "Adds a standalone Juniper SSR120-AE router: Juniper SSR120 - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR120-AE Router\n\nThis adds a basic Juniper SSR120-AE 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR120-AE\n\n![Juniper SSR120-AE](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR120-AE/standaloneBranch.jpg)\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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 5 labeled on the device\",\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 SSR120-AE branch router", + "description": "Add a new Juniper SSR120-AE 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": { + "ge-0-0": { + "title": "WAN - ge-0-0", + "description": "Port 0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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" + }, + "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-SSR120-template.json b/templates/Juniper-SSR120-template.json new file mode 100644 index 0000000..bb890b9 --- /dev/null +++ b/templates/Juniper-SSR120-template.json @@ -0,0 +1,194 @@ +{ + "name": "Juniper-SSR120-Template", + "description": "Adds a standalone Juniper SSR120 router: Juniper SSR120 - 6 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR120 Router\n\nThis adds a basic Juniper SSR120 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR120\n\n![Juniper SSR120](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR120/standaloneBranch.jpg)\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 5 labeled on the device\",\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 SSR120 branch router", + "description": "Add a new Juniper SSR120 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": { + "ge-0-0": { + "title": "WAN - ge-0-0", + "description": "Port 0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR1200-template.json b/templates/Juniper-SSR1200-template.json new file mode 100644 index 0000000..9d9c797 --- /dev/null +++ b/templates/Juniper-SSR1200-template.json @@ -0,0 +1,224 @@ +{ + "name": "Juniper-SSR1200-Template", + "description": "Adds a standalone Juniper SSR1200 router: Juniper SSR1200 - 1 MGMT, 11 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1200 Router\n\nThis adds a basic Juniper SSR1200 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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.2\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.3\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.1\",\n \"description\": \"Port 0/4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 0/4 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.2\",\n \"description\": \"Port 0/5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 0/5 labeled on the device\",\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 \"pciAddress\": \"0000:01:00.3\",\n \"description\": \"Port 0/6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 0/6 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.3\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.2\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.1\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:07:00.0\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 1/3 labeled on the device\",\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 SSR1200 branch router", + "description": "Add a new Juniper SSR1200 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": { + "mgmt-0-0": { + "title": "MGMT - mgmt-0-0", + "description": "Port MGMT labeled on the device", + "$ref": "#/definitions/mgmtPort" + }, + "ge-0-0": { + "title": "WAN - ge-0-0", + "description": "Port 0/0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "Port 0/1 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-2": { + "title": "WAN - ge-0-2", + "description": "Port 0/2 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-3": { + "title": "LAN - ge-0-3", + "description": "Port 0/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-0-4": { + "title": "LAN - ge-0-4", + "description": "Port 0/4 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-0-5": { + "title": "LAN - ge-0-5", + "description": "Port 0/5 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-0-6": { + "title": "LAN - ge-0-6", + "description": "Port 0/6 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-1-0": { + "title": "LAN - xe-1-0", + "description": "Port 1/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-1-1": { + "title": "LAN - xe-1-1", + "description": "Port 1/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-1-2": { + "title": "LAN - xe-1-2", + "description": "Port 1/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-1-3": { + "title": "LAN - xe-1-3", + "description": "Port 1/3 labeled on the device", + "$ref": "#/definitions/lanPort" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json new file mode 100644 index 0000000..b0b55f8 --- /dev/null +++ b/templates/Juniper-SSR130-AE-template.json @@ -0,0 +1,209 @@ +{ + "name": "Juniper-SSR130-AE-Template", + "description": "Adds a standalone Juniper SSR130-AE router: Juniper SSR130 - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR130-AE Router\n\nThis adds a basic Juniper SSR130-AE 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR130-AE\n\n![Juniper SSR130-AE](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR130-AE/standaloneBranch.jpg)\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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 7 labeled on the device\",\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 SSR130-AE branch router", + "description": "Add a new Juniper SSR130-AE 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": { + "ge-0-0": { + "title": "WAN - ge-0-0", + "description": "Port 0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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" + }, + "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-SSR130-template.json b/templates/Juniper-SSR130-template.json new file mode 100644 index 0000000..3fe2acb --- /dev/null +++ b/templates/Juniper-SSR130-template.json @@ -0,0 +1,204 @@ +{ + "name": "Juniper-SSR130-Template", + "description": "Adds a standalone Juniper SSR130 router: Juniper SSR130 - 8 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR130 Router\n\nThis adds a basic Juniper SSR130 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\nBelow are the ports that will be assigned.\n\n### Juniper SSR130\n\n![Juniper SSR130](https://raw.githubusercontent.com/128technology/interfacemaps/master/img/Juniper/SSR130/standaloneBranch.jpg)\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 2 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 7 labeled on the device\",\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 SSR130 branch router", + "description": "Add a new Juniper SSR130 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": { + "ge-0-0": { + "title": "WAN - ge-0-0", + "description": "Port 0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR1300-template.json b/templates/Juniper-SSR1300-template.json new file mode 100644 index 0000000..cdddab2 --- /dev/null +++ b/templates/Juniper-SSR1300-template.json @@ -0,0 +1,229 @@ +{ + "name": "Juniper-SSR1300-Template", + "description": "Adds a standalone Juniper SSR1300 router: Juniper SSR1300 - 1 MGMT, 12 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1300 Router\n\nThis adds a basic Juniper SSR1300 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 \"pciAddress\": \"0000:6a:00.0\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.1\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.2\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:6a:00.3\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.3\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.2\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.1\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.0\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/3 labeled on the device\",\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 SSR1300 branch router", + "description": "Add a new Juniper SSR1300 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": { + "xe-0-0": { + "title": "WAN - xe-0-0", + "description": "Port 0/0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-1": { + "title": "WAN - xe-0-1", + "description": "Port 0/1 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-2": { + "title": "WAN - xe-0-2", + "description": "Port 0/2 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-3": { + "title": "LAN - xe-0-3", + "description": "Port 0/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "mgmt-0-0": { + "title": "MGMT - mgmt-0-0", + "description": "Port MGMT labeled on the device", + "$ref": "#/definitions/mgmtPort" + }, + "ge-1-0": { + "title": "LAN - ge-1-0", + "description": "Port 1/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-1": { + "title": "LAN - ge-1-1", + "description": "Port 1/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-2": { + "title": "LAN - ge-1-2", + "description": "Port 1/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-3": { + "title": "LAN - ge-1-3", + "description": "Port 1/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-0": { + "title": "LAN - xe-2-0", + "description": "Port 2/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-1": { + "title": "LAN - xe-2-1", + "description": "Port 2/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-2": { + "title": "LAN - xe-2-2", + "description": "Port 2/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-3": { + "title": "LAN - xe-2-3", + "description": "Port 2/3 labeled on the device", + "$ref": "#/definitions/lanPort" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR1400-template.json b/templates/Juniper-SSR1400-template.json new file mode 100644 index 0000000..fb8c3af --- /dev/null +++ b/templates/Juniper-SSR1400-template.json @@ -0,0 +1,229 @@ +{ + "name": "Juniper-SSR1400-Template", + "description": "Adds a standalone Juniper SSR1400 router: Juniper SSR1400 - 1 MGMT, 12 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1400 Router\n\nThis adds a basic Juniper SSR1400 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 \"pciAddress\": \"0000:6a:00.0\",\n \"description\": \"Port 0/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 0/0 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.1\",\n \"description\": \"Port 0/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 0/1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:6a:00.2\",\n \"description\": \"Port 0/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 0/2 labeled on the device\",\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 \"pciAddress\": \"0000:6a:00.3\",\n \"description\": \"Port 0/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 0/3 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:19:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.0\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.1\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.2\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:1b:00.3\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/3 labeled on the device\",\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 SSR1400 branch router", + "description": "Add a new Juniper SSR1400 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": { + "xe-0-0": { + "title": "WAN - xe-0-0", + "description": "Port 0/0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-1": { + "title": "WAN - xe-0-1", + "description": "Port 0/1 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-2": { + "title": "WAN - xe-0-2", + "description": "Port 0/2 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "xe-0-3": { + "title": "LAN - xe-0-3", + "description": "Port 0/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "mgmt-0-0": { + "title": "MGMT - mgmt-0-0", + "description": "Port MGMT labeled on the device", + "$ref": "#/definitions/mgmtPort" + }, + "ge-1-0": { + "title": "LAN - ge-1-0", + "description": "Port 1/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-1": { + "title": "LAN - ge-1-1", + "description": "Port 1/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-2": { + "title": "LAN - ge-1-2", + "description": "Port 1/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-1-3": { + "title": "LAN - ge-1-3", + "description": "Port 1/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-0": { + "title": "LAN - xe-2-0", + "description": "Port 2/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-1": { + "title": "LAN - xe-2-1", + "description": "Port 2/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-2": { + "title": "LAN - xe-2-2", + "description": "Port 2/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-3": { + "title": "LAN - xe-2-3", + "description": "Port 2/3 labeled on the device", + "$ref": "#/definitions/lanPort" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR1500-template.json b/templates/Juniper-SSR1500-template.json new file mode 100644 index 0000000..b81a2e0 --- /dev/null +++ b/templates/Juniper-SSR1500-template.json @@ -0,0 +1,249 @@ +{ + "name": "Juniper-SSR1500-Template", + "description": "Adds a standalone Juniper SSR1500 router: Juniper SSR1500 - 1 MGMT, 16 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1500 Router\n\nThis adds a basic Juniper SSR1500 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 \"pciAddress\": \"0000:44:00.0\",\n \"description\": \"Port 1/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1/0 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.1\",\n \"description\": \"Port 1/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 1/1 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.2\",\n \"description\": \"Port 1/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 1/2 labeled on the device\",\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 \"pciAddress\": \"0000:44:00.3\",\n \"description\": \"Port 1/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-3\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 1/3 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.0\",\n \"description\": \"Port 2/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 2/0 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.1\",\n \"description\": \"Port 2/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan1\",\n \"description\": \"LAN 1 network interface, connected to port 2/1 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.2\",\n \"description\": \"Port 2/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan2\",\n \"description\": \"LAN 2 network interface, connected to port 2/2 labeled on the device\",\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 \"pciAddress\": \"0000:42:00.3\",\n \"description\": \"Port 2/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-2-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan3\",\n \"description\": \"LAN 3 network interface, connected to port 2/3 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.0\",\n \"description\": \"Port 3/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan4\",\n \"description\": \"LAN 4 network interface, connected to port 3/0 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.1\",\n \"description\": \"Port 3/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan5\",\n \"description\": \"LAN 5 network interface, connected to port 3/1 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.2\",\n \"description\": \"Port 3/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan6\",\n \"description\": \"LAN 6 network interface, connected to port 3/2 labeled on the device\",\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 \"pciAddress\": \"0000:81:00.3\",\n \"description\": \"Port 3/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-3-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan7\",\n \"description\": \"LAN 7 network interface, connected to port 3/3 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.0\",\n \"description\": \"Port 4/0 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-0\",\n \"networkInterface\": [\n {\n \"name\": \"lan8\",\n \"description\": \"LAN 8 network interface, connected to port 4/0 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.1\",\n \"description\": \"Port 4/1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-1\",\n \"networkInterface\": [\n {\n \"name\": \"lan9\",\n \"description\": \"LAN 9 network interface, connected to port 4/1 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.2\",\n \"description\": \"Port 4/2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-2\",\n \"networkInterface\": [\n {\n \"name\": \"lan10\",\n \"description\": \"LAN 10 network interface, connected to port 4/2 labeled on the device\",\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 \"pciAddress\": \"0000:c1:00.3\",\n \"description\": \"Port 4/3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-4-3\",\n \"networkInterface\": [\n {\n \"name\": \"lan11\",\n \"description\": \"LAN 11 network interface, connected to port 4/3 labeled on the device\",\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 SSR1500 branch router", + "description": "Add a new Juniper SSR1500 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": { + "mgmt-0-0": { + "title": "MGMT - mgmt-0-0", + "description": "Port MGMT labeled on the device", + "$ref": "#/definitions/mgmtPort" + }, + "ge-1-0": { + "title": "WAN - ge-1-0", + "description": "Port 1/0 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-1-1": { + "title": "WAN - ge-1-1", + "description": "Port 1/1 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-1-2": { + "title": "WAN - ge-1-2", + "description": "Port 1/2 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-1-3": { + "title": "LAN - ge-1-3", + "description": "Port 1/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-0": { + "title": "LAN - xe-2-0", + "description": "Port 2/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-1": { + "title": "LAN - xe-2-1", + "description": "Port 2/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-2": { + "title": "LAN - xe-2-2", + "description": "Port 2/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-2-3": { + "title": "LAN - xe-2-3", + "description": "Port 2/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-3-0": { + "title": "LAN - xe-3-0", + "description": "Port 3/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-3-1": { + "title": "LAN - xe-3-1", + "description": "Port 3/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-3-2": { + "title": "LAN - xe-3-2", + "description": "Port 3/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-3-3": { + "title": "LAN - xe-3-3", + "description": "Port 3/3 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-4-0": { + "title": "LAN - xe-4-0", + "description": "Port 4/0 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-4-1": { + "title": "LAN - xe-4-1", + "description": "Port 4/1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-4-2": { + "title": "LAN - xe-4-2", + "description": "Port 4/2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "xe-4-3": { + "title": "LAN - xe-4-3", + "description": "Port 4/3 labeled on the device", + "$ref": "#/definitions/lanPort" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json new file mode 100644 index 0000000..6b9b52a --- /dev/null +++ b/templates/Juniper-SSR400-C-template.json @@ -0,0 +1,224 @@ +{ + "name": "Juniper-SSR400-C-Template", + "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet ports + 5G", + "enabled": true, + "persistInput": false, + "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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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": { + "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-C branch router", + "description": "Add a new Juniper SSR400-C 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": { + "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" + }, + "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 new file mode 100644 index 0000000..9d7a274 --- /dev/null +++ b/templates/Juniper-SSR400-template.json @@ -0,0 +1,219 @@ +{ + "name": "Juniper-SSR400-Template", + "description": "Adds a standalone Juniper SSR400 router: Juniper SSR400 - 10 ethernet ports", + "enabled": true, + "persistInput": false, + "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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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": { + "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 branch router", + "description": "Add a new Juniper SSR400 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": { + "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" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Lanner-NCA-1515-template.json b/templates/Lanner-NCA-1515-template.json new file mode 100644 index 0000000..c194732 --- /dev/null +++ b/templates/Lanner-NCA-1515-template.json @@ -0,0 +1,209 @@ +{ + "name": "Lanner-NCA-1515-Template", + "description": "Adds a standalone Lanner NCA-1515 router: Lanner - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Lanner NCA-1515 Router\n\nThis adds a basic Lanner NCA-1515 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\": \"wwp0s21u4i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"\",\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 \"pciAddress\": \"0000:02:00.2\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 3 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"102\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.3\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:08:00.0\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 5 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"104\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:08:00.1\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:0a:00.0\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 7 labeled on the device\",\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 \"pciAddress\": \"0000:0a:00.1\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 8 labeled on the device\",\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 Lanner NCA-1515 branch router", + "description": "Add a new Lanner NCA-1515 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": { + "ge-0-1": { + "title": "LAN - ge-0-1", + "description": "Port 1 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-0-2": { + "title": "LAN - ge-0-2", + "description": "Port 2 labeled on the device", + "$ref": "#/definitions/lanPort" + }, + "ge-0-3": { + "title": "WAN - ge-0-3", + "description": "Port 3 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-4": { + "title": "WAN - ge-0-4", + "description": "Port 4 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "ge-0-5": { + "title": "WAN - ge-0-5", + "description": "Port 5 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "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" + }, + "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/Lenovo-SR650-template.json b/templates/Lenovo-SR650-template.json new file mode 100644 index 0000000..9701112 --- /dev/null +++ b/templates/Lenovo-SR650-template.json @@ -0,0 +1,224 @@ +{ + "name": "Lenovo-SR650-Template", + "description": "Adds a standalone Lenovo SR650 router: 1 MGMT, 11 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Lenovo SR650 Router\n\nThis adds a basic Lenovo SR650 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 \"pciAddress\": \"0000:8a:00.0\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-1-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:8a:00.1\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-1-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-1-1\",\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 \"pciAddress\": \"0000:51:00.0\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-2-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-2-0\",\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 \"pciAddress\": \"0000:51:00.1\",\n \"description\": \"QSFP28 100G SR4\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-2-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-2-1\",\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 \"pciAddress\": \"0000:c4:00.0\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-7-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-7-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"104\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c4:00.1\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-7-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-7-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"105\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.0\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-0\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-0\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"106\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.1\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-1\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"107\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:c3:00.2\",\n \"description\": \"10GE RJ45\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"xe-8-2\",\n \"networkInterface\": [\n {\n \"name\": \"xe-8-2\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"108\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:18:00.0\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-9-0\",\n \"networkInterface\": [\n {\n \"name\": \"et-9-0\",\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 \"pciAddress\": \"0000:18:00.1\",\n \"description\": \"SFP28 25GE\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"et-9-1\",\n \"networkInterface\": [\n {\n \"name\": \"et-9-1\",\n \"description\": \"\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"1011\",\n \"name\": \"mgmt\"\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 Lenovo SR650 branch router", + "description": "Add a new Lenovo SR650 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": { + "et-1-0": { + "title": "WAN - et-1-0", + "description": "QSFP28 100G SR4", + "$ref": "#/definitions/wanPort" + }, + "et-1-1": { + "title": "LAN - et-1-1", + "description": "QSFP28 100G SR4", + "$ref": "#/definitions/lanPort" + }, + "et-2-0": { + "title": "LAN - et-2-0", + "description": "QSFP28 100G SR4", + "$ref": "#/definitions/lanPort" + }, + "et-2-1": { + "title": "LAN - et-2-1", + "description": "QSFP28 100G SR4", + "$ref": "#/definitions/lanPort" + }, + "et-7-0": { + "title": "WAN - et-7-0", + "description": "SFP28 25GE", + "$ref": "#/definitions/wanPort" + }, + "et-7-1": { + "title": "WAN - et-7-1", + "description": "SFP28 25GE", + "$ref": "#/definitions/wanPort" + }, + "xe-8-0": { + "title": "WAN - xe-8-0", + "description": "10GE RJ45", + "$ref": "#/definitions/wanPort" + }, + "xe-8-1": { + "title": "WAN - xe-8-1", + "description": "10GE RJ45", + "$ref": "#/definitions/wanPort" + }, + "xe-8-2": { + "title": "WAN - xe-8-2", + "description": "10GE RJ45", + "$ref": "#/definitions/wanPort" + }, + "mgmt-8-3": { + "title": "MGMT - mgmt-8-3", + "description": "10GE RJ45", + "$ref": "#/definitions/mgmtPort" + }, + "et-9-0": { + "title": "LAN - et-9-0", + "description": "SFP28 25GE", + "$ref": "#/definitions/lanPort" + }, + "et-9-1": { + "title": "WAN - et-9-1", + "description": "SFP28 25GE", + "$ref": "#/definitions/wanPort" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Silicom-90500-0151--template.json b/templates/Silicom-90500-0151--template.json new file mode 100644 index 0000000..1047d10 --- /dev/null +++ b/templates/Silicom-90500-0151--template.json @@ -0,0 +1,194 @@ +{ + "name": "Silicom-90500-0151--Template", + "description": "Adds a standalone Silicom 90500-0151- router: Madrid - 6 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151- Router\n\nThis adds a basic Silicom 90500-0151- 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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151- branch router", + "description": "Add a new Silicom 90500-0151- 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": { + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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": "WAN - ge-0-3", + "description": "Port 3 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "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" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json new file mode 100644 index 0000000..8ab2aea --- /dev/null +++ b/templates/Silicom-90500-0151-G11-template.json @@ -0,0 +1,199 @@ +{ + "name": "Silicom-90500-0151-G11-Template", + "description": "Adds a standalone Silicom 90500-0151-G11 router: Madrid - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G11 Router\n\nThis adds a basic Silicom 90500-0151-G11 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151-G11 branch router", + "description": "Add a new Silicom 90500-0151-G11 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": { + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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": "WAN - ge-0-3", + "description": "Port 3 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "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" + }, + "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/Silicom-90500-0151-G53-template.json b/templates/Silicom-90500-0151-G53-template.json new file mode 100644 index 0000000..70c5f7d --- /dev/null +++ b/templates/Silicom-90500-0151-G53-template.json @@ -0,0 +1,209 @@ +{ + "name": "Silicom-90500-0151-G53-Template", + "description": "Adds a standalone Silicom 90500-0151-G53 router: Madrid - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G53 Router\n\nThis adds a basic Silicom 90500-0151-G53 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"WAN 4 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"WAN 5 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 6 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.3\",\n \"description\": \"Port 7 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-7\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 7 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.2\",\n \"description\": \"Port 8 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-8\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 8 labeled on the device\",\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 Silicom 90500-0151-G53 branch router", + "description": "Add a new Silicom 90500-0151-G53 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": { + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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": "WAN - ge-0-3", + "description": "Port 3 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "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" + }, + "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/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json new file mode 100644 index 0000000..63bd842 --- /dev/null +++ b/templates/Silicom-90500-0151-G71-template.json @@ -0,0 +1,204 @@ +{ + "name": "Silicom-90500-0151-G71-Template", + "description": "Adds a standalone Silicom 90500-0151-G71 router: Madrid - 6 ethernet, 2 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G71 Router\n\nThis adds a basic Silicom 90500-0151-G71 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\": \"wwp0s21u1i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-0\",\n \"description\": \"LTE network interface\",\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 \"name\": \"lte-0-1\",\n \"description\": \"LTE device interface\",\n \"type\": \"lte\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"targetInterface\": \"wwp0s21u3i8\",\n \"networkInterface\": [\n {\n \"name\": \"lte-0-1\",\n \"description\": \"LTE network interface\",\n \"sourceNat\": \"true\",\n \"management\": \"false\",\n \"defaultRoute\": \"false\",\n \"managementVector\": {\n \"priority\": \"201\",\n \"name\": \"mgmt\"\n },\n \"dhcp\": \"v4\"\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.1\",\n \"description\": \"Port 1 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-1\",\n \"networkInterface\": [\n {\n \"name\": \"wan1\",\n \"description\": \"WAN 1 network interface, connected to port 1 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": \"true\",\n \"managementVector\": {\n \"priority\": \"100\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:02:00.0\",\n \"description\": \"Port 2 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-2\",\n \"networkInterface\": [\n {\n \"name\": \"wan2\",\n \"description\": \"WAN 2 network interface, connected to port 2 labeled on the device\",\n \"sourceNat\": \"true\",\n \"dhcp\": \"v4\",\n \"conductor\": \"true\",\n \"management\": \"true\",\n \"defaultRoute\": false,\n \"managementVector\": {\n \"priority\": \"101\",\n \"name\": \"mgmt\"\n }\n }\n ]\n },\n {\n \"pciAddress\": \"0000:03:00.1\",\n \"description\": \"Port 3 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-3\",\n \"networkInterface\": [\n {\n \"name\": \"wan3\",\n \"description\": \"WAN 3 network interface, connected to port 3 labeled on the device\",\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 \"pciAddress\": \"0000:03:00.0\",\n \"description\": \"Port 4 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-4\",\n \"networkInterface\": [\n {\n \"name\": \"lan\",\n \"description\": \"LAN network interface, connected to port 4 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.1\",\n \"description\": \"Port 5 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-5\",\n \"networkInterface\": [\n {\n \"name\": \"ha-fabric\",\n \"description\": \"HA fabric network interface, connected to port 5 labeled on the device\",\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 \"pciAddress\": \"0000:04:00.0\",\n \"description\": \"Port 6 labeled on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-0-6\",\n \"networkInterface\": [\n {\n \"name\": \"ha-sync\",\n \"description\": \"HA sync network interface, connected to port 6 labeled on the device\",\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 Silicom 90500-0151-G71 branch router", + "description": "Add a new Silicom 90500-0151-G71 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": { + "ge-0-1": { + "title": "WAN - ge-0-1", + "description": "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": "WAN - ge-0-3", + "description": "Port 3 labeled on the device", + "$ref": "#/definitions/wanPort" + }, + "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" + }, + "lte-0-0": { + "title": "WAN - lte-0-0", + "description": "LTE device interface", + "$ref": "#/definitions/wanPort" + }, + "lte-0-1": { + "title": "WAN - lte-0-1", + "description": "LTE device interface", + "$ref": "#/definitions/wanPort" + } + } + } + } + } +} \ No newline at end of file From 0d6c3cd70ead87f24f6e0cd51207e1b56eabe34c Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Thu, 19 Mar 2026 17:02:56 +0000 Subject: [PATCH 5/6] skip leopard ha port --- generate_templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generate_templates.py b/generate_templates.py index d4b2aea..f849a48 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -281,6 +281,8 @@ def generate_body(devicemap, model): 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"] From 7acf451e06e221af56da915c86e66eec658cfa36 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Thu, 19 Mar 2026 17:04:21 +0000 Subject: [PATCH 6/6] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 2 +- templates/Juniper-SSR400-template.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 6b9b52a..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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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}", + "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": { diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index 9d7a274..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 \"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 \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ha-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"ha-0-0\",\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}", + "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": {