From 2bd45ede15ac5378ab7162de8a696783eac15bb5 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 1 Oct 2024 18:31:48 +0000 Subject: [PATCH 01/38] initial SSR4xx devicemaps --- .devcontainer/devcontainer.json | 2 +- devicemaps.json | 147 ++++++++++++++++++++++++++++++++ 2 files changed, 148 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 28227d4..6ae4978 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:1-3.8-buster" + "image": "mcr.microsoft.com/vscode/devcontainers/python:3.9" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/devicemaps.json b/devicemaps.json index 3dd17dc..9c2daec 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1462,6 +1462,153 @@ } ], "lte": [] + }, + "SSR400":{ + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR400 - 10 ethernet", + "ethernet": [ + { + "type": "WAN", + "speed": 1000, + "name": "ge-0-0", + "description": "SFP Port 0 labeled on the device" + }, + { + "type": "WAN", + "speed": 1000, + "name": "ge-0-1", + "description": "SFP Port 1 labeled on the device" + }, + { + "type": "WAN", + "speed": 1000, + "name": "ge-0-2", + "description": "Port 2 labeled on the device" + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-3", + "description": "Port 3 labeled on the device" + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-4", + "description": "Port 4 labeled on the device" + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-5", + "description": "Port 5 labeled on the device" + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-6", + "description": "Port 6 labeled on the device" + }, + { + "type": "HAFabric", + "speed": 1000, + "name": "ge-0-7", + "description": "Port 7 labeled on the device" + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-8", + "description": "Port 8 labeled on the device", + "poe": true + }, + { + "type": "LAN", + "speed": 1000, + "name": "ge-0-9", + "description": "Port 9 labeled on the device", + "poe": true + }, + { + "type": "HASync", + "pciAddress": "0000:01:00.0", + "speed": 1000, + "name": "ha-0-0", + "description": "HA device interface" + } + ], + "lte": [] + }, + "SSR400-C": { + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR400-C - 10 ethernet + 5G", + "alias": { + "vendor": "Juniper", + "sku": "SSR400" + }, + "lte": [ + { + "type": "WAN", + "name": "lte-0-0", + "description": "LTE device interface", + "targetInterface": "TBD" + } + ] + }, + "SSR400-W": { + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR400-W - 10 ethernet + WiFi", + "alias": { + "vendor": "Juniper", + "sku": "SSR400", + "method": "append" + }, + "ethernet": [ + { + "type": "LAN", + "speed": 1000, + "name": "ap-0-0", + "description": "Internal AP port on the device" + } + ] + }, + "SSR400-CW": { + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR400-CW - 10 ethernet + 5G + WiFi", + "alias": { + "vendor": "Juniper", + "sku": "SSR400-W" + }, + "lte": [ + { + "type": "WAN", + "name": "lte-0-0", + "description": "LTE device interface", + "targetInterface": "TBD" + } + ] + }, + "SSR440": { + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR440 - 10 ethernet", + "alias": { + "vendor": "Juniper", + "sku": "SSR400" + } + }, + "SSR440-C": { + "clei": "TBD", + "part_number": "TBD", + "description": "Juniper SSR440-C - 10 ethernet + 5G", + "alias": { + "vendor": "Juniper", + "sku": "SSR400-C" + } } }, "Lenovo": { From ccd2cdedb5b7d17fc122d37fc69fd4f6d446fb26 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Wed, 2 Oct 2024 16:36:38 +0000 Subject: [PATCH 02/38] add ssr4x0 part numbers --- devicemaps.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/devicemaps.json b/devicemaps.json index 9c2daec..dfacbe3 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1465,7 +1465,7 @@ }, "SSR400":{ "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178218", "description": "Juniper SSR400 - 10 ethernet", "ethernet": [ { @@ -1542,7 +1542,7 @@ }, "SSR400-C": { "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178220", "description": "Juniper SSR400-C - 10 ethernet + 5G", "alias": { "vendor": "Juniper", @@ -1559,7 +1559,7 @@ }, "SSR400-W": { "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178219", "description": "Juniper SSR400-W - 10 ethernet + WiFi", "alias": { "vendor": "Juniper", @@ -1577,7 +1577,7 @@ }, "SSR400-CW": { "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178221", "description": "Juniper SSR400-CW - 10 ethernet + 5G + WiFi", "alias": { "vendor": "Juniper", @@ -1594,7 +1594,7 @@ }, "SSR440": { "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178222", "description": "Juniper SSR440 - 10 ethernet", "alias": { "vendor": "Juniper", @@ -1603,7 +1603,7 @@ }, "SSR440-C": { "clei": "TBD", - "part_number": "TBD", + "part_number": "650-178223", "description": "Juniper SSR440-C - 10 ethernet + 5G", "alias": { "vendor": "Juniper", From 69b35b904ccd65361bc90f2e0c351dde50685f5d Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 8 Oct 2024 04:45:40 +0000 Subject: [PATCH 03/38] update schema --- devicemap-schema.json | 340 ++++++++++++++++++++++-------------------- devicemaps.json | 2 +- 2 files changed, 181 insertions(+), 161 deletions(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index d3d6c81..05794fa 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -1,183 +1,203 @@ { - "type": "object", - "properties": { - "displayModel": { - "$comment": "If unspecified, defaults to key in skumap. Must also be unique between skumap keys and optional displayModels.", - "type": "string" - }, - "description": { - "type": "string" - }, - "clei": { - "type": "string" - }, - "part_number": { - "type": "string" - }, - "ethernet": { - "type": "array", - "items": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/baseInterface" - } - ], - "properties": { - "name": { - "type": "string", - "pattern": "^(ge|xe|et|mgmt)-[0-9]+(-[0-9]+)?$" - }, - "type": { - "type": "string", - "enum": [ - "WAN", - "LAN", - "HASync", - "HAFabric", - "MGMT", - "UNUSED", - "IGNORE" - ] - }, - "speed": { - "type": "integer", - "minimum": 0 - }, - "address": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$" - }, - "gateway": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" - }, - "vlan": { - "type": "integer", - "minimum": 1, - "maximum": 4094 - } - }, - "required": [ - "name", - "type" - ], - "oneOf": [ - { - "properties": { - "pciAddress": { - "type": "string", - "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-7]$" - }, - "vmbusId": { - "type": "null" - } - }, - "required": [ - "pciAddress" - ] - }, - { - "properties": { - "pciAddress": { - "type": "null" - }, - "vmbusId": { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" - } - }, - "required": [ - "vmbusId" - ] - } - ] - } - }, - "lte": { - "type": "array", - "items": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/baseInterface" - } - ], - "properties": { - "name": { - "type": "string", - "pattern": "^lte-[0-9]+(-[0-9]+)?$" - }, - "type": { - "type": "string", - "enum": [ - "WAN", - "UNUSED", - "IGNORE" - ] - }, - "targetInterface": { - "type": "string", - "pattern": "^[^/:\\s]+$" - } - }, - "required": [ - "name", - "type", - "targetInterface" - ] - } - }, - "alias": { + "type": "object", + "properties": { + "displayModel": { + "$comment": "If unspecified, defaults to key in skumap. Must also be unique between skumap keys and optional displayModels.", + "type": "string" + }, + "description": { + "type": "string" + }, + "clei": { + "type": "string" + }, + "part_number": { + "type": "string" + }, + "ethernet": { + "type": "array", + "items": { "type": "object", + "allOf": [ + { + "$ref": "#/$defs/baseInterface" + } + ], "properties": { - "vendor": { - "type": "string" + "name": { + "type": "string", + "pattern": "^(ge|xe|et|mgmt|ap)-[0-9]+(-[0-9]+)?$" + }, + "type": { + "type": "string", + "enum": [ + "WAN", + "LAN", + "HASync", + "HAFabric", + "MGMT", + "UNUSED", + "IGNORE" + ] + }, + "speed": { + "type": "integer", + "minimum": 0 }, - "sku": { - "type": "string" + "address": { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$" + }, + "gateway": { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + }, + "vlan": { + "type": "integer", + "minimum": 1, + "maximum": 4094 + }, + "poe": { + "type": "boolean" } }, "required": [ - "vendor", - "sku" + "name", + "type" ], - "additionalProperties": false - }, - "source": { - "type": "string" - } - }, - "$defs": { - "baseInterface": { - "type": "object", - "properties": { - "description": { - "type": "string" + "oneOf": [ + { + "properties": { + "pciAddress": { + "type": "string", + "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-7]$" + }, + "vmbusId": { + "type": "null" + } + }, + "required": [ + "pciAddress" + ] }, - "bcpNetwork": { - "type": "object", - "description": "A set of templates that may be used to form a \"best common practice\" network", - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "$ref": "#/$defs/bcpNetworkTemplate" + { + "properties": { + "pciAddress": { + "type": "null" + }, + "vmbusId": { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + } + }, + "required": [ + "vmbusId" + ] + }, + { + "properties": { + "pciAddress": { + "type": "null" + }, + "vmbusId": { + "type": "null" } } } - } - }, - "bcpNetworkTemplate": { + ] + } + }, + "lte": { + "type": "array", + "items": { "type": "object", + "allOf": [ + { + "$ref": "#/$defs/baseInterface" + } + ], "properties": { "name": { "type": "string", - "description": "The name of the interface when used by this BCP template" + "pattern": "^lte-[0-9]+(-[0-9]+)?$" }, - "description": { + "type": { "type": "string", - "description": "The description of the interface when used by this BCP template" + "enum": [ + "WAN", + "UNUSED", + "IGNORE" + ] + }, + "targetInterface": { + "type": "string", + "pattern": "^[^/:\\s]+$" } + }, + "required": [ + "name", + "type", + "targetInterface" + ] + } + }, + "alias": { + "type": "object", + "properties": { + "vendor": { + "type": "string" + }, + "sku": { + "type": "string" + }, + "method": { + "type": "string", + "enum": [ + "append", + "replace" + ] + } + }, + "required": [ + "vendor", + "sku" + ], + "additionalProperties": false + }, + "source": { + "type": "string" + } + }, + "$defs": { + "baseInterface": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "bcpNetwork": { + "type": "object", + "description": "A set of templates that may be used to form a \"best common practice\" network", + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "$ref": "#/$defs/bcpNetworkTemplate" + } + } + } + } + }, + "bcpNetworkTemplate": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the interface when used by this BCP template" + }, + "description": { + "type": "string", + "description": "The description of the interface when used by this BCP template" } } } } +} diff --git a/devicemaps.json b/devicemaps.json index dfacbe3..b76bc8b 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1534,7 +1534,7 @@ "type": "HASync", "pciAddress": "0000:01:00.0", "speed": 1000, - "name": "ha-0-0", + "name": "ge-1-0", "description": "HA device interface" } ], From 57c72a243fe92c88bb3a4e9b10acc0bb921c0ece Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 8 Oct 2024 04:51:42 +0000 Subject: [PATCH 04/38] fix generate_templates --- generate_templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_templates.py b/generate_templates.py index c12b7eb..a04d3df 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -276,12 +276,13 @@ def generate_body(devicemap): if dev_intf["type"] == "MGMT": continue intf = { - "pciAddress": dev_intf["pciAddress"], "description": dev_intf["description"], "enabled": "true", "forwarding": "true", "name": dev_intf["name"] } + if dev_intf.get("pciAddress"): + dev_intf["pciAddress"] if dev_intf["type"] == "WAN": intf["networkInterface"] = [ { From 3134af054a13d83bf66ac807ac92653088fd7435 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Tue, 8 Oct 2024 04:52:17 +0000 Subject: [PATCH 05/38] Autogenerated commit for templates --- templates/Juniper-SSR120-AE-template.json | 2 +- templates/Juniper-SSR120-template.json | 2 +- templates/Juniper-SSR1200-template.json | 2 +- templates/Juniper-SSR130-AE-template.json | 2 +- templates/Juniper-SSR130-template.json | 2 +- templates/Juniper-SSR1300-template.json | 2 +- templates/Juniper-SSR1400-template.json | 2 +- templates/Juniper-SSR1500-template.json | 2 +- templates/Juniper-SSR400-C-template.json | 224 ++++++++++++++++++ templates/Juniper-SSR400-CW-template.json | 174 ++++++++++++++ templates/Juniper-SSR400-W-template.json | 174 ++++++++++++++ templates/Juniper-SSR400-template.json | 219 +++++++++++++++++ templates/Lanner-NCA-1515-template.json | 2 +- templates/Lenovo-SR650-template.json | 2 +- templates/Silicom-90500-0151--template.json | 2 +- .../Silicom-90500-0151-G11-template.json | 2 +- .../Silicom-90500-0151-G53-template.json | 2 +- .../Silicom-90500-0151-G71-template.json | 2 +- 18 files changed, 805 insertions(+), 14 deletions(-) create mode 100644 templates/Juniper-SSR400-C-template.json create mode 100644 templates/Juniper-SSR400-CW-template.json create mode 100644 templates/Juniper-SSR400-W-template.json create mode 100644 templates/Juniper-SSR400-template.json diff --git a/templates/Juniper-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json index 13af8f1..cd276dc 100644 --- a/templates/Juniper-SSR120-AE-template.json +++ b/templates/Juniper-SSR120-AE-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR120-template.json b/templates/Juniper-SSR120-template.json index bb890b9..b7f8621 100644 --- a/templates/Juniper-SSR120-template.json +++ b/templates/Juniper-SSR120-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR1200-template.json b/templates/Juniper-SSR1200-template.json index 9d9c797..d69b5ec 100644 --- a/templates/Juniper-SSR1200-template.json +++ b/templates/Juniper-SSR1200-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json index b0b55f8..04ba473 100644 --- a/templates/Juniper-SSR130-AE-template.json +++ b/templates/Juniper-SSR130-AE-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR130-template.json b/templates/Juniper-SSR130-template.json index 3fe2acb..fb0227e 100644 --- a/templates/Juniper-SSR130-template.json +++ b/templates/Juniper-SSR130-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR1300-template.json b/templates/Juniper-SSR1300-template.json index cdddab2..f8a8f30 100644 --- a/templates/Juniper-SSR1300-template.json +++ b/templates/Juniper-SSR1300-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR1400-template.json b/templates/Juniper-SSR1400-template.json index fb8c3af..252a3ea 100644 --- a/templates/Juniper-SSR1400-template.json +++ b/templates/Juniper-SSR1400-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR1500-template.json b/templates/Juniper-SSR1500-template.json index b81a2e0..3fb1969 100644 --- a/templates/Juniper-SSR1500-template.json +++ b/templates/Juniper-SSR1500-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json new file mode 100644 index 0000000..130148a --- /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 + 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\": \"TBD\",\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\": \"100\",\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\": \"101\",\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\": \"102\",\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\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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-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" + }, + "ge-1-0": { + "title": "LAN - ge-1-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-template.json b/templates/Juniper-SSR400-CW-template.json new file mode 100644 index 0000000..36cc50f --- /dev/null +++ b/templates/Juniper-SSR400-CW-template.json @@ -0,0 +1,174 @@ +{ + "name": "Juniper-SSR400-CW-Template", + "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-CW - 10 ethernet + 5G + WiFi", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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\": \"TBD\",\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\": \"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-CW branch router", + "description": "Add a new Juniper SSR400-CW 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": { + "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-W-template.json b/templates/Juniper-SSR400-W-template.json new file mode 100644 index 0000000..a37d8a4 --- /dev/null +++ b/templates/Juniper-SSR400-W-template.json @@ -0,0 +1,174 @@ +{ + "name": "Juniper-SSR400-W-Template", + "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400-W - 10 ethernet + WiFi", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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\": \"TBD\",\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\": \"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 branch router", + "description": "Add a new Juniper SSR400-W 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": { + "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 new file mode 100644 index 0000000..22f0c57 --- /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", + "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 \"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\": \"100\",\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\": \"101\",\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\": \"102\",\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\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 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" + }, + "ge-1-0": { + "title": "LAN - ge-1-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 index c194732..399c6b7 100644 --- a/templates/Lanner-NCA-1515-template.json +++ b/templates/Lanner-NCA-1515-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Lenovo-SR650-template.json b/templates/Lenovo-SR650-template.json index 9701112..dcdcf7e 100644 --- a/templates/Lenovo-SR650-template.json +++ b/templates/Lenovo-SR650-template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Silicom-90500-0151--template.json b/templates/Silicom-90500-0151--template.json index 1047d10..d8ba26f 100644 --- a/templates/Silicom-90500-0151--template.json +++ b/templates/Silicom-90500-0151--template.json @@ -6,7 +6,7 @@ "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}", + "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\": \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json index 8ab2aea..98d8b83 100644 --- a/templates/Silicom-90500-0151-G11-template.json +++ b/templates/Silicom-90500-0151-G11-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Silicom-90500-0151-G53-template.json b/templates/Silicom-90500-0151-G53-template.json index 70c5f7d..907d373 100644 --- a/templates/Silicom-90500-0151-G53-template.json +++ b/templates/Silicom-90500-0151-G53-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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": { diff --git a/templates/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json index 63bd842..df5eb95 100644 --- a/templates/Silicom-90500-0151-G71-template.json +++ b/templates/Silicom-90500-0151-G71-template.json @@ -6,7 +6,7 @@ "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}", + "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 \"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 \"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 \"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 \"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 \"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 \"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": { From 3ec3e75cffeb4a9bff6c1366fae7fff50ba7a74b Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 8 Oct 2024 04:54:36 +0000 Subject: [PATCH 06/38] reorder generate templates to avoid changing everything --- generate_templates.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generate_templates.py b/generate_templates.py index a04d3df..8b3c86b 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -275,14 +275,13 @@ def generate_body(devicemap): for index, dev_intf in enumerate(devicemap["ethernet"]): if dev_intf["type"] == "MGMT": continue + intf = {"pciAddress": dev_intf["pciAddress"]} if dev_intf.get("pciAddress") else {} intf = { "description": dev_intf["description"], "enabled": "true", "forwarding": "true", "name": dev_intf["name"] } - if dev_intf.get("pciAddress"): - dev_intf["pciAddress"] if dev_intf["type"] == "WAN": intf["networkInterface"] = [ { From 3e4d6f70db39629726f35d42728ea28e0748120c Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 8 Oct 2024 04:57:59 +0000 Subject: [PATCH 07/38] further update generate_templates --- generate_templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_templates.py b/generate_templates.py index 8b3c86b..11aab66 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -276,12 +276,12 @@ def generate_body(devicemap): if dev_intf["type"] == "MGMT": continue intf = {"pciAddress": dev_intf["pciAddress"]} if dev_intf.get("pciAddress") else {} - intf = { + intf.update({ "description": dev_intf["description"], "enabled": "true", "forwarding": "true", "name": dev_intf["name"] - } + }) if dev_intf["type"] == "WAN": intf["networkInterface"] = [ { From 40ec76c20807aa55b3757bc767998c2ef1b2b711 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Tue, 8 Oct 2024 04:58:32 +0000 Subject: [PATCH 08/38] Autogenerated commit for templates --- templates/Juniper-SSR120-AE-template.json | 2 +- templates/Juniper-SSR120-template.json | 2 +- templates/Juniper-SSR1200-template.json | 2 +- templates/Juniper-SSR130-AE-template.json | 2 +- templates/Juniper-SSR130-template.json | 2 +- templates/Juniper-SSR1300-template.json | 2 +- templates/Juniper-SSR1400-template.json | 2 +- templates/Juniper-SSR1500-template.json | 2 +- templates/Juniper-SSR400-C-template.json | 2 +- templates/Juniper-SSR400-template.json | 2 +- templates/Lanner-NCA-1515-template.json | 2 +- templates/Lenovo-SR650-template.json | 2 +- templates/Silicom-90500-0151--template.json | 2 +- templates/Silicom-90500-0151-G11-template.json | 2 +- templates/Silicom-90500-0151-G53-template.json | 2 +- templates/Silicom-90500-0151-G71-template.json | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/templates/Juniper-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json index cd276dc..13af8f1 100644 --- a/templates/Juniper-SSR120-AE-template.json +++ b/templates/Juniper-SSR120-AE-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR120-template.json b/templates/Juniper-SSR120-template.json index b7f8621..bb890b9 100644 --- a/templates/Juniper-SSR120-template.json +++ b/templates/Juniper-SSR120-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR1200-template.json b/templates/Juniper-SSR1200-template.json index d69b5ec..9d9c797 100644 --- a/templates/Juniper-SSR1200-template.json +++ b/templates/Juniper-SSR1200-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json index 04ba473..b0b55f8 100644 --- a/templates/Juniper-SSR130-AE-template.json +++ b/templates/Juniper-SSR130-AE-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR130-template.json b/templates/Juniper-SSR130-template.json index fb0227e..3fe2acb 100644 --- a/templates/Juniper-SSR130-template.json +++ b/templates/Juniper-SSR130-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR1300-template.json b/templates/Juniper-SSR1300-template.json index f8a8f30..cdddab2 100644 --- a/templates/Juniper-SSR1300-template.json +++ b/templates/Juniper-SSR1300-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR1400-template.json b/templates/Juniper-SSR1400-template.json index 252a3ea..fb8c3af 100644 --- a/templates/Juniper-SSR1400-template.json +++ b/templates/Juniper-SSR1400-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR1500-template.json b/templates/Juniper-SSR1500-template.json index 3fb1969..b81a2e0 100644 --- a/templates/Juniper-SSR1500-template.json +++ b/templates/Juniper-SSR1500-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 130148a..7be4a06 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\": \"TBD\",\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\": \"100\",\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\": \"101\",\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\": \"102\",\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\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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\": \"TBD\",\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\": \"100\",\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\": \"101\",\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\": \"102\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index 22f0c57..3b1bd6c 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\": \"100\",\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\": \"101\",\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\": \"102\",\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\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"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\": \"100\",\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\": \"101\",\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\": \"102\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { diff --git a/templates/Lanner-NCA-1515-template.json b/templates/Lanner-NCA-1515-template.json index 399c6b7..c194732 100644 --- a/templates/Lanner-NCA-1515-template.json +++ b/templates/Lanner-NCA-1515-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Lenovo-SR650-template.json b/templates/Lenovo-SR650-template.json index dcdcf7e..9701112 100644 --- a/templates/Lenovo-SR650-template.json +++ b/templates/Lenovo-SR650-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Silicom-90500-0151--template.json b/templates/Silicom-90500-0151--template.json index d8ba26f..1047d10 100644 --- a/templates/Silicom-90500-0151--template.json +++ b/templates/Silicom-90500-0151--template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json index 98d8b83..8ab2aea 100644 --- a/templates/Silicom-90500-0151-G11-template.json +++ b/templates/Silicom-90500-0151-G11-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Silicom-90500-0151-G53-template.json b/templates/Silicom-90500-0151-G53-template.json index 907d373..70c5f7d 100644 --- a/templates/Silicom-90500-0151-G53-template.json +++ b/templates/Silicom-90500-0151-G53-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { diff --git a/templates/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json index df5eb95..63bd842 100644 --- a/templates/Silicom-90500-0151-G71-template.json +++ b/templates/Silicom-90500-0151-G71-template.json @@ -6,7 +6,7 @@ "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 \"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 \"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 \"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 \"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 \"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 \"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}", + "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": { From b950a7f06853e63b04dd7f9e5de6b5fb2df2cf50 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 1 Nov 2024 17:04:05 +0000 Subject: [PATCH 09/38] add parent intf to devicemaps --- devicemap-schema.json | 21 +++++++++++++++++++-- devicemaps.json | 17 +++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index 05794fa..0ae5061 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -26,7 +26,7 @@ "properties": { "name": { "type": "string", - "pattern": "^(ge|xe|et|mgmt|ap)-[0-9]+(-[0-9]+)?$" + "pattern": "^(ge|xe|et|mgmt|ap|fte)-[0-9]+(-[0-9]+)?$" }, "type": { "type": "string", @@ -36,6 +36,7 @@ "HASync", "HAFabric", "MGMT", + "SWITCH", "UNUSED", "IGNORE" ] @@ -59,6 +60,9 @@ }, "poe": { "type": "boolean" + }, + "ap": { + "type": "boolean" } }, "required": [ @@ -74,6 +78,9 @@ }, "vmbusId": { "type": "null" + }, + "parent": { + "type": "null" } }, "required": [ @@ -88,6 +95,9 @@ "vmbusId": { "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + }, + "parent": { + "type": "null" } }, "required": [ @@ -101,8 +111,15 @@ }, "vmbusId": { "type": "null" + }, + "parent": { + "type":"string", + "pattern": "^fte-[0-9]+(-[0-9]+)?$" } - } + }, + "required": [ + "parent" + ] } ] } diff --git a/devicemaps.json b/devicemaps.json index b76bc8b..1b4dfac 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1468,58 +1468,72 @@ "part_number": "650-178218", "description": "Juniper SSR400 - 10 ethernet", "ethernet": [ + { + "type": "SWITCH", + "name": "fte-0-0", + "description": "Internal switch port on the device" + }, { "type": "WAN", "speed": 1000, "name": "ge-0-0", + "parent": "fte-0-0", "description": "SFP Port 0 labeled on the device" }, { "type": "WAN", "speed": 1000, "name": "ge-0-1", + "parent": "fte-0-0", "description": "SFP Port 1 labeled on the device" }, { "type": "WAN", "speed": 1000, "name": "ge-0-2", + "parent": "fte-0-0", "description": "Port 2 labeled on the device" }, { "type": "LAN", "speed": 1000, "name": "ge-0-3", + "parent": "fte-0-0", "description": "Port 3 labeled on the device" }, { "type": "LAN", "speed": 1000, "name": "ge-0-4", + "parent": "fte-0-0", "description": "Port 4 labeled on the device" }, { "type": "LAN", "speed": 1000, "name": "ge-0-5", + "parent": "fte-0-0", "description": "Port 5 labeled on the device" }, { "type": "LAN", "speed": 1000, "name": "ge-0-6", + "parent": "fte-0-0", "description": "Port 6 labeled on the device" }, { "type": "HAFabric", "speed": 1000, "name": "ge-0-7", + "parent": "fte-0-0", "description": "Port 7 labeled on the device" }, { "type": "LAN", "speed": 1000, "name": "ge-0-8", + "parent": "fte-0-0", "description": "Port 8 labeled on the device", "poe": true }, @@ -1527,6 +1541,7 @@ "type": "LAN", "speed": 1000, "name": "ge-0-9", + "parent": "fte-0-0", "description": "Port 9 labeled on the device", "poe": true }, @@ -1571,6 +1586,8 @@ "type": "LAN", "speed": 1000, "name": "ap-0-0", + "ap": true, + "parent": "fte-0-0", "description": "Internal AP port on the device" } ] From 70e3a75505acffdfbcf97d0265d0a85b60577558 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Fri, 1 Nov 2024 17:05:39 +0000 Subject: [PATCH 10/38] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 7 ++++++- templates/Juniper-SSR400-template.json | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 7be4a06..738f6fd 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\": \"TBD\",\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\": \"100\",\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\": \"101\",\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\": \"102\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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\": \"TBD\",\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\": \"Internal switch port on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"fte-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"fte-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\": \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -157,6 +157,11 @@ "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 3b1bd6c..b85368f 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\": \"100\",\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\": \"101\",\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\": \"102\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"description\": \"Internal switch port on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"fte-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"fte-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\": \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -157,6 +157,11 @@ "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 377130aa301f1c701ac38a5d5d51298441dd49e0 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 1 Nov 2024 17:11:26 +0000 Subject: [PATCH 11/38] update generate_templates --- generate_templates.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/generate_templates.py b/generate_templates.py index 11aab66..e90036a 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -273,7 +273,7 @@ def generate_body(devicemap): ) def_route_exists = False for index, dev_intf in enumerate(devicemap["ethernet"]): - if dev_intf["type"] == "MGMT": + if dev_intf["type"] in ["MGMT", "SWITCH"]: continue intf = {"pciAddress": dev_intf["pciAddress"]} if dev_intf.get("pciAddress") else {} intf.update({ @@ -424,8 +424,7 @@ def img_exists(vendor, model): def resolve_alias(devicemap, sku_map): if not devicemap.get("alias"): return devicemap - if not (devicemap.get("ethernet") or devicemap.get("lte")): - return None + alias_map = resolve_alias( lookup_devicemap( devicemap["alias"]["vendor"], @@ -434,8 +433,25 @@ def resolve_alias(devicemap, sku_map): ), sku_map, ) - del devicemap["alias"] - alias_map.update(devicemap) + method = device_map["alias"].get("method", "") + + del device_map["alias"] + + if not alias_map.get("ethernet"): + alias_map["ethernet"] = [] + if not alias_map.get("lte"): + alias_map["lte"] = [] + + if method.lower() == "append": + try: + alias_map["ethernet"].extend(device_map.pop("ethernet")) + except KeyError: + pass + try: + alias_map["lte"].extend(device_map.pop("lte")) + except KeyError: + pass + return alias_map def lookup_devicemap(vendor, sku, sku_map): From 2b297c3d12e8513a4d20233acd43e6cc908a566a Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 1 Nov 2024 17:12:28 +0000 Subject: [PATCH 12/38] update generate_templates --- generate_templates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generate_templates.py b/generate_templates.py index e90036a..944f78b 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -433,9 +433,9 @@ def resolve_alias(devicemap, sku_map): ), sku_map, ) - method = device_map["alias"].get("method", "") + method = devicemap["alias"].get("method", "") - del device_map["alias"] + del devicemap["alias"] if not alias_map.get("ethernet"): alias_map["ethernet"] = [] @@ -444,11 +444,11 @@ def resolve_alias(devicemap, sku_map): if method.lower() == "append": try: - alias_map["ethernet"].extend(device_map.pop("ethernet")) + alias_map["ethernet"].extend(devicemap.pop("ethernet")) except KeyError: pass try: - alias_map["lte"].extend(device_map.pop("lte")) + alias_map["lte"].extend(devicemap.pop("lte")) except KeyError: pass From 733065384235beb63ae930b7c551f75cdcac3d91 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Fri, 1 Nov 2024 17:13:05 +0000 Subject: [PATCH 13/38] Autogenerated commit for templates --- templates/Juniper-SSR120-AA-template.json | 169 +++++++++++++ templates/Juniper-SSR120-AE-TAA-template.json | 169 +++++++++++++ templates/Juniper-SSR120-AE-template.json | 11 +- templates/Juniper-SSR120-TAA-template.json | 194 +++++++++++++++ templates/Juniper-SSR130-AA-template.json | 169 +++++++++++++ templates/Juniper-SSR130-AE-TAA-template.json | 169 +++++++++++++ templates/Juniper-SSR130-AE-template.json | 11 +- templates/Juniper-SSR130-TAA-template.json | 204 ++++++++++++++++ templates/Juniper-SSR1300-DC-template.json | 229 ++++++++++++++++++ templates/Juniper-SSR1400-DC-template.json | 229 ++++++++++++++++++ templates/Juniper-SSR400-C-template.json | 11 +- templates/Juniper-SSR400-CW-template.json | 19 +- templates/Juniper-SSR400-W-template.json | 71 +++++- templates/Juniper-SSR400-template.json | 2 +- templates/Juniper-SSR440-C-template.json | 169 +++++++++++++ templates/Juniper-SSR440-template.json | 229 ++++++++++++++++++ .../Silicom-90500-0151-G11-template.json | 11 +- .../Silicom-90500-0151-G12-template.json | 169 +++++++++++++ .../Silicom-90500-0151-G13-template.json | 209 ++++++++++++++++ .../Silicom-90500-0151-G41-template.json | 209 ++++++++++++++++ .../Silicom-90500-0151-G61-template.json | 169 +++++++++++++ .../Silicom-90500-0151-G71-template.json | 16 +- 22 files changed, 2769 insertions(+), 69 deletions(-) create mode 100644 templates/Juniper-SSR120-AA-template.json create mode 100644 templates/Juniper-SSR120-AE-TAA-template.json create mode 100644 templates/Juniper-SSR120-TAA-template.json create mode 100644 templates/Juniper-SSR130-AA-template.json create mode 100644 templates/Juniper-SSR130-AE-TAA-template.json create mode 100644 templates/Juniper-SSR130-TAA-template.json create mode 100644 templates/Juniper-SSR1300-DC-template.json create mode 100644 templates/Juniper-SSR1400-DC-template.json create mode 100644 templates/Juniper-SSR440-C-template.json create mode 100644 templates/Juniper-SSR440-template.json create mode 100644 templates/Silicom-90500-0151-G12-template.json create mode 100644 templates/Silicom-90500-0151-G13-template.json create mode 100644 templates/Silicom-90500-0151-G41-template.json create mode 100644 templates/Silicom-90500-0151-G61-template.json diff --git a/templates/Juniper-SSR120-AA-template.json b/templates/Juniper-SSR120-AA-template.json new file mode 100644 index 0000000..c80cf13 --- /dev/null +++ b/templates/Juniper-SSR120-AA-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR120-AA-Template", + "description": "Adds a standalone Juniper SSR120-AA router: Juniper SSR120 - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR120-AA Router\n\nThis adds a basic Juniper SSR120-AA 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 }\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-AA branch router", + "description": "Add a new Juniper SSR120-AA 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-SSR120-AE-TAA-template.json b/templates/Juniper-SSR120-AE-TAA-template.json new file mode 100644 index 0000000..a1f415d --- /dev/null +++ b/templates/Juniper-SSR120-AE-TAA-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR120-AE-TAA-Template", + "description": "Adds a standalone Juniper SSR120-AE-TAA router: Juniper SSR120 - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR120-AE-TAA Router\n\nThis adds a basic Juniper SSR120-AE-TAA 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 }\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-TAA branch router", + "description": "Add a new Juniper SSR120-AE-TAA 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-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json index 13af8f1..ad5926a 100644 --- a/templates/Juniper-SSR120-AE-template.json +++ b/templates/Juniper-SSR120-AE-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR120-AE-Template", - "description": "Adds a standalone Juniper SSR120-AE router: Juniper SSR120 - 6 ethernet, 1 lte", + "description": "Adds a standalone Juniper SSR120-AE router: Juniper SSR120 - 6 ethernet", "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}", + "help": "# Juniper SSR120-AE Router\n\nThis adds a basic Juniper SSR120-AE 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-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 \"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": { @@ -186,11 +186,6 @@ "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" } } } diff --git a/templates/Juniper-SSR120-TAA-template.json b/templates/Juniper-SSR120-TAA-template.json new file mode 100644 index 0000000..437f725 --- /dev/null +++ b/templates/Juniper-SSR120-TAA-template.json @@ -0,0 +1,194 @@ +{ + "name": "Juniper-SSR120-TAA-Template", + "description": "Adds a standalone Juniper SSR120-TAA router: Juniper SSR120 - 6 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR120-TAA Router\n\nThis adds a basic Juniper SSR120-TAA 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: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-TAA branch router", + "description": "Add a new Juniper SSR120-TAA 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-SSR130-AA-template.json b/templates/Juniper-SSR130-AA-template.json new file mode 100644 index 0000000..7c73f65 --- /dev/null +++ b/templates/Juniper-SSR130-AA-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR130-AA-Template", + "description": "Adds a standalone Juniper SSR130-AA router: Juniper SSR130 - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR130-AA Router\n\nThis adds a basic Juniper SSR130-AA 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 }\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-AA branch router", + "description": "Add a new Juniper SSR130-AA 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-SSR130-AE-TAA-template.json b/templates/Juniper-SSR130-AE-TAA-template.json new file mode 100644 index 0000000..b07ce5a --- /dev/null +++ b/templates/Juniper-SSR130-AE-TAA-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR130-AE-TAA-Template", + "description": "Adds a standalone Juniper SSR130-AE-TAA router: Juniper SSR130 - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR130-AE-TAA Router\n\nThis adds a basic Juniper SSR130-AE-TAA 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 }\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-TAA branch router", + "description": "Add a new Juniper SSR130-AE-TAA 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-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json index b0b55f8..cfc299e 100644 --- a/templates/Juniper-SSR130-AE-template.json +++ b/templates/Juniper-SSR130-AE-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR130-AE-Template", - "description": "Adds a standalone Juniper SSR130-AE router: Juniper SSR130 - 8 ethernet, 1 lte", + "description": "Adds a standalone Juniper SSR130-AE router: Juniper SSR130 - 8 ethernet", "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}", + "help": "# Juniper SSR130-AE Router\n\nThis adds a basic Juniper SSR130-AE 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-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 \"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": { @@ -196,11 +196,6 @@ "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" } } } diff --git a/templates/Juniper-SSR130-TAA-template.json b/templates/Juniper-SSR130-TAA-template.json new file mode 100644 index 0000000..1eaf7d0 --- /dev/null +++ b/templates/Juniper-SSR130-TAA-template.json @@ -0,0 +1,204 @@ +{ + "name": "Juniper-SSR130-TAA-Template", + "description": "Adds a standalone Juniper SSR130-TAA router: Juniper SSR130 - 8 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR130-TAA Router\n\nThis adds a basic Juniper SSR130-TAA 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: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-TAA branch router", + "description": "Add a new Juniper SSR130-TAA 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-DC-template.json b/templates/Juniper-SSR1300-DC-template.json new file mode 100644 index 0000000..197b594 --- /dev/null +++ b/templates/Juniper-SSR1300-DC-template.json @@ -0,0 +1,229 @@ +{ + "name": "Juniper-SSR1300-DC-Template", + "description": "Adds a standalone Juniper SSR1300-DC router: Juniper SSR1300 - 1 MGMT, 12 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1300-DC Router\n\nThis adds a basic Juniper SSR1300-DC 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-DC branch router", + "description": "Add a new Juniper SSR1300-DC 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-DC-template.json b/templates/Juniper-SSR1400-DC-template.json new file mode 100644 index 0000000..ce44772 --- /dev/null +++ b/templates/Juniper-SSR1400-DC-template.json @@ -0,0 +1,229 @@ +{ + "name": "Juniper-SSR1400-DC-Template", + "description": "Adds a standalone Juniper SSR1400-DC router: Juniper SSR1400 - 1 MGMT, 12 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR1400-DC Router\n\nThis adds a basic Juniper SSR1400-DC 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-DC branch router", + "description": "Add a new Juniper SSR1400-DC 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-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 738f6fd..d577cce 100644 --- a/templates/Juniper-SSR400-C-template.json +++ b/templates/Juniper-SSR400-C-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-C-Template", - "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet + 5G", + "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400 - 10 ethernet", "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\": \"TBD\",\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\": \"Internal switch port on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"fte-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"fte-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\": \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "help": "# Juniper SSR400-C Router\n\nThis adds a basic Juniper SSR400-C 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -216,11 +216,6 @@ "title": "LAN - ge-1-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" - }, - "lte-0-0": { - "title": "WAN - lte-0-0", - "description": "LTE device interface", - "$ref": "#/definitions/wanPort" } } } diff --git a/templates/Juniper-SSR400-CW-template.json b/templates/Juniper-SSR400-CW-template.json index 36cc50f..5109ea2 100644 --- a/templates/Juniper-SSR400-CW-template.json +++ b/templates/Juniper-SSR400-CW-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-CW-Template", - "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-CW - 10 ethernet + 5G + WiFi", + "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-W - 10 ethernet + WiFi", "enabled": true, "persistInput": false, "builtin": true, "mode": "advanced", - "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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\": \"TBD\",\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\": \"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}", + "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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 ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", "schema": { "type": "object", "definitions": { @@ -156,18 +156,7 @@ "type": "object", "title": "Ports", "description": "Port and network settings.", - "properties": { - "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" - } - } + "properties": {} } } } diff --git a/templates/Juniper-SSR400-W-template.json b/templates/Juniper-SSR400-W-template.json index a37d8a4..aab123e 100644 --- a/templates/Juniper-SSR400-W-template.json +++ b/templates/Juniper-SSR400-W-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-W-Template", - "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400-W - 10 ethernet + WiFi", + "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400 - 10 ethernet", "enabled": true, "persistInput": false, "builtin": true, "mode": "advanced", - "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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\": \"TBD\",\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\": \"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}", + "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -157,15 +157,70 @@ "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" + }, + "ge-1-0": { + "title": "LAN - ge-1-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" } } } diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index b85368f..76edf98 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\": \"Internal switch port on the device\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"fte-0-0\",\n \"networkInterface\": [\n {\n \"name\": \"fte-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\": \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { diff --git a/templates/Juniper-SSR440-C-template.json b/templates/Juniper-SSR440-C-template.json new file mode 100644 index 0000000..bb60ba5 --- /dev/null +++ b/templates/Juniper-SSR440-C-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR440-C-Template", + "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR400-C - 10 ethernet + 5G", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR440-C Router\n\nThis adds a basic Juniper SSR440-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\": \"TBD\",\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 SSR440-C branch router", + "description": "Add a new Juniper SSR440-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": { + "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-SSR440-template.json b/templates/Juniper-SSR440-template.json new file mode 100644 index 0000000..7a546b6 --- /dev/null +++ b/templates/Juniper-SSR440-template.json @@ -0,0 +1,229 @@ +{ + "name": "Juniper-SSR440-Template", + "description": "Adds a standalone Juniper SSR440 router: Juniper SSR400 - 10 ethernet", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 SSR440 branch router", + "description": "Add a new Juniper SSR440 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" + }, + "ge-1-0": { + "title": "LAN - ge-1-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" + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json index 8ab2aea..8a79fd7 100644 --- a/templates/Silicom-90500-0151-G11-template.json +++ b/templates/Silicom-90500-0151-G11-template.json @@ -1,12 +1,12 @@ { "name": "Silicom-90500-0151-G11-Template", - "description": "Adds a standalone Silicom 90500-0151-G11 router: Madrid - 6 ethernet, 1 lte", + "description": "Adds a standalone Silicom 90500-0151-G11 router: Madrid - 6 ethernet", "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}", + "help": "# Silicom 90500-0151-G11 Router\n\nThis adds a basic Silicom 90500-0151-G11 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": { @@ -186,11 +186,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" } } } diff --git a/templates/Silicom-90500-0151-G12-template.json b/templates/Silicom-90500-0151-G12-template.json new file mode 100644 index 0000000..22e5f87 --- /dev/null +++ b/templates/Silicom-90500-0151-G12-template.json @@ -0,0 +1,169 @@ +{ + "name": "Silicom-90500-0151-G12-Template", + "description": "Adds a standalone Silicom 90500-0151-G12 router: Madrid - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G12 Router\n\nThis adds a basic Silicom 90500-0151-G12 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 }\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-G12 branch router", + "description": "Add a new Silicom 90500-0151-G12 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/Silicom-90500-0151-G13-template.json b/templates/Silicom-90500-0151-G13-template.json new file mode 100644 index 0000000..2bba3ba --- /dev/null +++ b/templates/Silicom-90500-0151-G13-template.json @@ -0,0 +1,209 @@ +{ + "name": "Silicom-90500-0151-G13-Template", + "description": "Adds a standalone Silicom 90500-0151-G13 router: Madrid - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G13 Router\n\nThis adds a basic Silicom 90500-0151-G13 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-G13 branch router", + "description": "Add a new Silicom 90500-0151-G13 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-G41-template.json b/templates/Silicom-90500-0151-G41-template.json new file mode 100644 index 0000000..8e68245 --- /dev/null +++ b/templates/Silicom-90500-0151-G41-template.json @@ -0,0 +1,209 @@ +{ + "name": "Silicom-90500-0151-G41-Template", + "description": "Adds a standalone Silicom 90500-0151-G41 router: Madrid - 8 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G41 Router\n\nThis adds a basic Silicom 90500-0151-G41 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-G41 branch router", + "description": "Add a new Silicom 90500-0151-G41 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-G61-template.json b/templates/Silicom-90500-0151-G61-template.json new file mode 100644 index 0000000..65088a4 --- /dev/null +++ b/templates/Silicom-90500-0151-G61-template.json @@ -0,0 +1,169 @@ +{ + "name": "Silicom-90500-0151-G61-Template", + "description": "Adds a standalone Silicom 90500-0151-G61 router: Madrid - 6 ethernet, 1 lte", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Silicom 90500-0151-G61 Router\n\nThis adds a basic Silicom 90500-0151-G61 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 }\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-G61 branch router", + "description": "Add a new Silicom 90500-0151-G61 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/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json index 63bd842..7aa2a61 100644 --- a/templates/Silicom-90500-0151-G71-template.json +++ b/templates/Silicom-90500-0151-G71-template.json @@ -1,12 +1,12 @@ { "name": "Silicom-90500-0151-G71-Template", - "description": "Adds a standalone Silicom 90500-0151-G71 router: Madrid - 6 ethernet, 2 lte", + "description": "Adds a standalone Silicom 90500-0151-G71 router: Madrid - 6 ethernet", "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}", + "help": "# Silicom 90500-0151-G71 Router\n\nThis adds a basic Silicom 90500-0151-G71 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": { @@ -186,16 +186,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" } } } From 9c895d8cb86b9dd87339c6a22de189ebf635541e Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 1 Nov 2024 17:40:57 +0000 Subject: [PATCH 14/38] change switch --> switch_parent --- devicemap-schema.json | 194 ++++++++++++++++++++++++------------------ devicemaps.json | 2 +- generate_templates.py | 2 +- 3 files changed, 113 insertions(+), 85 deletions(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index 0ae5061..88287b2 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -17,108 +17,136 @@ "ethernet": { "type": "array", "items": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/baseInterface" - } - ], - "properties": { - "name": { - "type": "string", - "pattern": "^(ge|xe|et|mgmt|ap|fte)-[0-9]+(-[0-9]+)?$" - }, - "type": { - "type": "string", - "enum": [ - "WAN", - "LAN", - "HASync", - "HAFabric", - "MGMT", - "SWITCH", - "UNUSED", - "IGNORE" - ] - }, - "speed": { - "type": "integer", - "minimum": 0 - }, - "address": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$" - }, - "gateway": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" - }, - "vlan": { - "type": "integer", - "minimum": 1, - "maximum": 4094 - }, - "poe": { - "type": "boolean" - }, - "ap": { - "type": "boolean" - } - }, - "required": [ - "name", - "type" - ], "oneOf": [ { + "type": "object", + "allOf": [ + { + "$ref": "#/$defs/baseInterface" + } + ], "properties": { - "pciAddress": { + "name": { "type": "string", - "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-7]$" + "pattern": "^(ge|xe|et|mgmt|ap)-[0-9]+(-[0-9]+)?$" }, - "vmbusId": { - "type": "null" + "type": { + "type": "string", + "enum": [ + "WAN", + "LAN", + "HASync", + "HAFabric", + "MGMT", + "SWITCH_PARENT", + "UNUSED", + "IGNORE" + ] }, - "parent": { - "type": "null" - } - }, - "required": [ - "pciAddress" - ] - }, - { - "properties": { - "pciAddress": { - "type": "null" + "speed": { + "type": "integer", + "minimum": 0 }, - "vmbusId": { + "address": { "type": "string", - "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$" }, - "parent": { - "type": "null" + "gateway": { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + }, + "vlan": { + "type": "integer", + "minimum": 1, + "maximum": 4094 + }, + "poe": { + "type": "boolean" + }, + "ap": { + "type": "boolean" } }, "required": [ - "vmbusId" + "name", + "type" + ], + "oneOf": [ + { + "properties": { + "pciAddress": { + "type": "string", + "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-7]$" + }, + "vmbusId": { + "type": "null" + }, + "parent": { + "type": "null" + } + }, + "required": [ + "pciAddress" + ] + }, + { + "properties": { + "pciAddress": { + "type": "null" + }, + "vmbusId": { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + }, + "parent": { + "type": "null" + } + }, + "required": [ + "vmbusId" + ] + }, + { + "properties": { + "pciAddress": { + "type": "null" + }, + "vmbusId": { + "type": "null" + }, + "parent": { + "type": "string", + "pattern": "^fte-[0-9]+(-[0-9]+)?$" + } + }, + "required": [ + "parent" + ] + } ] }, { + "type": "object", + "allOf": [ + { + "$ref": "#/$defs/baseInterface" + } + ], "properties": { - "pciAddress": { - "type": "null" - }, - "vmbusId": { - "type": "null" - }, - "parent": { - "type":"string", + "name": { + "type": "string", "pattern": "^fte-[0-9]+(-[0-9]+)?$" + }, + "type": { + "type": "string", + "enum": [ + "SWITCH_PARENT" + ] } }, "required": [ - "parent" + "name", + "type" ] } ] @@ -217,4 +245,4 @@ } } } -} +} \ No newline at end of file diff --git a/devicemaps.json b/devicemaps.json index 1b4dfac..fd1ff7b 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1469,7 +1469,7 @@ "description": "Juniper SSR400 - 10 ethernet", "ethernet": [ { - "type": "SWITCH", + "type": "SWITCH_PARENT", "name": "fte-0-0", "description": "Internal switch port on the device" }, diff --git a/generate_templates.py b/generate_templates.py index 944f78b..6d30b9e 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -273,7 +273,7 @@ def generate_body(devicemap): ) def_route_exists = False for index, dev_intf in enumerate(devicemap["ethernet"]): - if dev_intf["type"] in ["MGMT", "SWITCH"]: + if dev_intf["type"] in ["MGMT", "SWITCH_PARENT"]: continue intf = {"pciAddress": dev_intf["pciAddress"]} if dev_intf.get("pciAddress") else {} intf.update({ From e9b9275ceae956dc09d53ecc696d9a68e51a82b6 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Thu, 12 Dec 2024 11:13:32 -0700 Subject: [PATCH 15/38] add linux name and device type to 400 and 440 models --- devicemap-schema.json | 12 +++++++++++- devicemaps.json | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index 88287b2..db49d5d 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -5,6 +5,12 @@ "$comment": "If unspecified, defaults to key in skumap. Must also be unique between skumap keys and optional displayModels.", "type": "string" }, + "deviceType": { + "type": "string", + "enum": [ + "juniper-manufactured" + ] + }, "description": { "type": "string" }, @@ -137,6 +143,9 @@ "type": "string", "pattern": "^fte-[0-9]+(-[0-9]+)?$" }, + "linux-name": { + "type": "string" + }, "type": { "type": "string", "enum": [ @@ -146,7 +155,8 @@ }, "required": [ "name", - "type" + "type", + "linux-name" ] } ] diff --git a/devicemaps.json b/devicemaps.json index fd1ff7b..27cd652 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1466,11 +1466,13 @@ "SSR400":{ "clei": "TBD", "part_number": "650-178218", + "deviceType": "juniper-manufactured", "description": "Juniper SSR400 - 10 ethernet", "ethernet": [ { "type": "SWITCH_PARENT", "name": "fte-0-0", + "linux-name": "eth0", "description": "Internal switch port on the device" }, { From 47fec859453dc9c4ef51d531736970abae6d8793 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 13 Dec 2024 19:47:56 +0000 Subject: [PATCH 16/38] fix generate template alias resolution --- generate_templates.py | 1 + templates/Juniper-SSR120-AE-template.json | 11 ++++++++--- templates/Juniper-SSR130-AE-template.json | 11 ++++++++--- templates/Juniper-SSR400-C-template.json | 11 ++++++++--- templates/Juniper-SSR400-CW-template.json | 14 ++++++++++---- templates/Juniper-SSR400-W-template.json | 11 ++++++++--- templates/Juniper-SSR440-C-template.json | 2 +- templates/Juniper-SSR440-template.json | 11 ++++++++--- templates/Silicom-90500-0151-G11-template.json | 11 ++++++++--- templates/Silicom-90500-0151-G71-template.json | 16 +++++++++++++--- 10 files changed, 73 insertions(+), 26 deletions(-) diff --git a/generate_templates.py b/generate_templates.py index 6d30b9e..b6583d6 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -452,6 +452,7 @@ def resolve_alias(devicemap, sku_map): except KeyError: pass + alias_map.update(devicemap) return alias_map def lookup_devicemap(vendor, sku, sku_map): diff --git a/templates/Juniper-SSR120-AE-template.json b/templates/Juniper-SSR120-AE-template.json index ad5926a..13af8f1 100644 --- a/templates/Juniper-SSR120-AE-template.json +++ b/templates/Juniper-SSR120-AE-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR120-AE-Template", - "description": "Adds a standalone Juniper SSR120-AE router: Juniper SSR120 - 6 ethernet", + "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.\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-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 \"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}", + "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": { @@ -186,6 +186,11 @@ "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" } } } diff --git a/templates/Juniper-SSR130-AE-template.json b/templates/Juniper-SSR130-AE-template.json index cfc299e..b0b55f8 100644 --- a/templates/Juniper-SSR130-AE-template.json +++ b/templates/Juniper-SSR130-AE-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR130-AE-Template", - "description": "Adds a standalone Juniper SSR130-AE router: Juniper SSR130 - 8 ethernet", + "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.\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-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 \"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}", + "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": { @@ -196,6 +196,11 @@ "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" } } } diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index d577cce..b90e64d 100644 --- a/templates/Juniper-SSR400-C-template.json +++ b/templates/Juniper-SSR400-C-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-C-Template", - "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400 - 10 ethernet", + "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet + 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.\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -216,6 +216,11 @@ "title": "LAN - ge-1-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" + }, + "lte-0-0": { + "title": "WAN - lte-0-0", + "description": "LTE device interface", + "$ref": "#/definitions/wanPort" } } } diff --git a/templates/Juniper-SSR400-CW-template.json b/templates/Juniper-SSR400-CW-template.json index 5109ea2..aecaaa8 100644 --- a/templates/Juniper-SSR400-CW-template.json +++ b/templates/Juniper-SSR400-CW-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-CW-Template", - "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-W - 10 ethernet + WiFi", + "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-CW - 10 ethernet + 5G + WiFi", "enabled": true, "persistInput": false, "builtin": true, "mode": "advanced", - "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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 ]\n },\n \"_operation\": \"create\"\n }\n ]\n }\n}", + "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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\": \"TBD\",\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": { @@ -156,7 +156,13 @@ "type": "object", "title": "Ports", "description": "Port and network settings.", - "properties": {} + "properties": { + "lte-0-0": { + "title": "WAN - lte-0-0", + "description": "LTE device interface", + "$ref": "#/definitions/wanPort" + } + } } } } diff --git a/templates/Juniper-SSR400-W-template.json b/templates/Juniper-SSR400-W-template.json index aab123e..a16cb47 100644 --- a/templates/Juniper-SSR400-W-template.json +++ b/templates/Juniper-SSR400-W-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR400-W-Template", - "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400 - 10 ethernet", + "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400-W - 10 ethernet + WiFi", "enabled": true, "persistInput": false, "builtin": true, "mode": "advanced", - "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -221,6 +221,11 @@ "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" } } } diff --git a/templates/Juniper-SSR440-C-template.json b/templates/Juniper-SSR440-C-template.json index bb60ba5..0d28980 100644 --- a/templates/Juniper-SSR440-C-template.json +++ b/templates/Juniper-SSR440-C-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR440-C-Template", - "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR400-C - 10 ethernet + 5G", + "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR440-C - 10 ethernet + 5G", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR440-template.json b/templates/Juniper-SSR440-template.json index 7a546b6..b4d6b7d 100644 --- a/templates/Juniper-SSR440-template.json +++ b/templates/Juniper-SSR440-template.json @@ -1,12 +1,12 @@ { "name": "Juniper-SSR440-Template", - "description": "Adds a standalone Juniper SSR440 router: Juniper SSR400 - 10 ethernet", + "description": "Adds a standalone Juniper SSR440 router: Juniper SSR440 - 10 ethernet", "enabled": true, "persistInput": false, "builtin": true, "mode": "advanced", - "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { @@ -221,6 +221,11 @@ "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" } } } diff --git a/templates/Silicom-90500-0151-G11-template.json b/templates/Silicom-90500-0151-G11-template.json index 8a79fd7..8ab2aea 100644 --- a/templates/Silicom-90500-0151-G11-template.json +++ b/templates/Silicom-90500-0151-G11-template.json @@ -1,12 +1,12 @@ { "name": "Silicom-90500-0151-G11-Template", - "description": "Adds a standalone Silicom 90500-0151-G11 router: Madrid - 6 ethernet", + "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.\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}", + "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": { @@ -186,6 +186,11 @@ "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" } } } diff --git a/templates/Silicom-90500-0151-G71-template.json b/templates/Silicom-90500-0151-G71-template.json index 7aa2a61..63bd842 100644 --- a/templates/Silicom-90500-0151-G71-template.json +++ b/templates/Silicom-90500-0151-G71-template.json @@ -1,12 +1,12 @@ { "name": "Silicom-90500-0151-G71-Template", - "description": "Adds a standalone Silicom 90500-0151-G71 router: Madrid - 6 ethernet", + "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.\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}", + "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": { @@ -186,6 +186,16 @@ "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" } } } From c12ac656326f59303009872aa4bef54248e58948 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 13 Dec 2024 20:53:40 +0000 Subject: [PATCH 17/38] add tool to convert to mist device model format --- mist_convert.py | 172 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 mist_convert.py diff --git a/mist_convert.py b/mist_convert.py new file mode 100644 index 0000000..fc74947 --- /dev/null +++ b/mist_convert.py @@ -0,0 +1,172 @@ +import click +import copy +import json +import pathlib + + +DEVICEMAP_PATH = pathlib.Path("./") / "devicemaps.json" + +MODEL_TEMPLATE = { + "model": "", + "type": "gateway", + "description": "", + "t128_device": True, + "has_oob": False, + "_sub_required": "wan", + "ha_node1_fpc": 1, + "ports": {}, + "defaults": {}, +} + +@click.command() +@click.option( + "-v", + "--vendor", + type=str, + required=True +) +@click.option( + "-s", + "--skus", + type=str, + required=True +) +def run(vendor, skus): + output = [] + for sku in skus.split(","): + model = convert_sku(vendor, sku.strip()) + if model: + output.append(model) + + print(json.dumps(output, indent=4)) + +def convert_sku(vendor, sku): + sku_map = json.loads(pathlib.Path(DEVICEMAP_PATH).read_text()) + + devicemap, _, actual_sku = lookup_devicemap(vendor, sku, sku_map) + if not devicemap: + return + + actual_devicemap = resolve_alias(devicemap, sku_map) + + model = copy.deepcopy(MODEL_TEMPLATE) + model["model"] = actual_sku + model["description"] = actual_devicemap.get("description") + model.update(generate_ports(actual_devicemap)) + + return model + + +def generate_ports(devicemap): + has_oobm = False + has_ha = False + port_dict = {} + wan = [] + lan = [] + for port in devicemap.get("ethernet"): + p_type = port.get("type") + if p_type == "SWITCH_PARENT": + continue + name = convert_port_name(port["name"], p_type=="MGMT") + has_oobm = has_oobm or p_type == "MGMT" + has_ha = has_ha or p_type == "HASync" + if p_type == "WAN": + wan.append(name) + if p_type == "LAN": + lan.append(name) + + p_dict = {"display": name} + if port.get("pciAddress"): + p_dict["pci_address"] = port.get("pciAddress") + if port.get("speed"): + p_dict["speed"] = port.get("speed") + port_dict[name] = p_dict + + return { + "ports": port_dict, + "has_oob": has_oobm, + "ha_node1_fpc": 1 if has_ha else 0, + "defaults": { + "wan_ports": ",".join(wan), + # "lan_ports": ",".join(lan) commented until mist bug is fixed + "lan_ports": lan[0] + } + } + + + + + + + + + +def convert_port_name(name, is_mgmt=False): + parts = name.split("-") + identifier = parts.pop(0) + if not is_mgmt: + parts.insert(0, "0") + location = "/".join(parts) + + return f"{identifier}-{location}" + + + + + +def resolve_alias(devicemap, sku_map): + if not devicemap.get("alias"): + return devicemap + child_map, _, _ = lookup_devicemap( + devicemap["alias"]["vendor"], + devicemap["alias"]["sku"], + sku_map, + ) + alias_map = resolve_alias( + child_map, + sku_map, + ) + method = devicemap["alias"].get("method", "") + + del devicemap["alias"] + + if not alias_map.get("ethernet"): + alias_map["ethernet"] = [] + if not alias_map.get("lte"): + alias_map["lte"] = [] + + if method.lower() == "append": + try: + alias_map["ethernet"].extend(devicemap.pop("ethernet")) + except KeyError: + pass + try: + alias_map["lte"].extend(devicemap.pop("lte")) + except KeyError: + pass + + alias_map.update(devicemap) + return alias_map + +def lookup_devicemap(vendor, sku, sku_map): + actual_vendor = _lookup_longest_prefix_from_map(sku_map["interfaceMap"], vendor) + if not actual_vendor: + print(f"Vendor '{vendor}' not found") + return None, None, None + acutal_sku = _lookup_longest_prefix_from_map( + sku_map["interfaceMap"][actual_vendor], + sku, + ) + if not acutal_sku: + print(f"Sku '{sku}' for vendor '{vendor}' not found") + return None, None, None + return sku_map["interfaceMap"][actual_vendor][acutal_sku], actual_vendor, acutal_sku + +def _lookup_longest_prefix_from_map(sku_map, target_key): + target_key = target_key.lower() + possible = [key for key in sku_map.keys() if target_key.startswith(key.lower())] + possible.sort(reverse=True) + return possible[0] if len(possible) > 0 else None + +if __name__ == "__main__": + run() \ No newline at end of file From cd19d20763edc425566290557701cce9c945f19f Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 31 Dec 2024 17:51:35 +0000 Subject: [PATCH 18/38] change eth0 to esw0 --- devicemaps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemaps.json b/devicemaps.json index 27cd652..29dbb28 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1472,7 +1472,7 @@ { "type": "SWITCH_PARENT", "name": "fte-0-0", - "linux-name": "eth0", + "linux-name": "esw0", "description": "Internal switch port on the device" }, { From 7a207ff9c655e1f7b5064604cc3530ebb501dead Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Tue, 25 Feb 2025 10:00:14 -0500 Subject: [PATCH 19/38] Added explicitly 400/440 skus with part nums --- devicemaps.json | 52 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/devicemaps.json b/devicemaps.json index 29dbb28..0149277 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1463,7 +1463,7 @@ ], "lte": [] }, - "SSR400":{ + "SSR400": { "clei": "TBD", "part_number": "650-178218", "deviceType": "juniper-manufactured", @@ -1574,10 +1574,10 @@ } ] }, - "SSR400-W": { + "SSR400-W-US": { "clei": "TBD", "part_number": "650-178219", - "description": "Juniper SSR400-W - 10 ethernet + WiFi", + "description": "Juniper SSR400-W-US - 10 ethernet + WiFi", "alias": { "vendor": "Juniper", "sku": "SSR400", @@ -1594,13 +1594,13 @@ } ] }, - "SSR400-CW": { + "SSR400-CW-US": { "clei": "TBD", "part_number": "650-178221", - "description": "Juniper SSR400-CW - 10 ethernet + 5G + WiFi", + "description": "Juniper SSR400-CW-US - 10 ethernet + 5G + WiFi", "alias": { "vendor": "Juniper", - "sku": "SSR400-W" + "sku": "SSR400-W-US" }, "lte": [ { @@ -1628,7 +1628,43 @@ "vendor": "Juniper", "sku": "SSR400-C" } - } + }, + "SSR400-W-WW": { + "clei": "TBD", + "part_number": "650-178535", + "description": "Juniper SSR400-W-WW - 10 ethernet + WiFi", + "alias": { + "vendor": "Juniper", + "sku": "SSR400-W-US" + } + }, + "SSR400-CW-WW": { + "clei": "TBD", + "part_number": "650-178536", + "description": "Juniper SSR400-CW-WW - 10 ethernet + 5G + WiFi", + "alias": { + "vendor": "Juniper", + "sku": "SSR400-CW-US" + } + }, + "SSR440-2AC": { + "clei": "TBD", + "part_number": "650-178537", + "description": "Juniper SSR440-2AC - 10 ethernet + 2AC", + "alias": { + "vendor": "Juniper", + "sku": "SSR440" + } + }, + "SSR440-C-2AC": { + "clei": "TBD", + "part_number": "650-178538", + "description": "Juniper SSR440-C-2AC - 10 ethernet + 5G + 2AC", + "alias": { + "vendor": "Juniper", + "sku": "SSR440-C" + } + }, }, "Lenovo": { "7Z73CTO1WW": { @@ -1795,4 +1831,4 @@ } } } -} +} \ No newline at end of file From 968d0a5a6768a3e9e5b9a4253bad97cb04fa12ef Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Tue, 25 Feb 2025 10:03:00 -0500 Subject: [PATCH 20/38] Fixed invalid json --- devicemaps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemaps.json b/devicemaps.json index 0149277..1b53479 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1664,7 +1664,7 @@ "vendor": "Juniper", "sku": "SSR440-C" } - }, + } }, "Lenovo": { "7Z73CTO1WW": { From b3f215267153f242c8770b51b53d996e776b235d Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Tue, 25 Feb 2025 15:03:37 +0000 Subject: [PATCH 21/38] Autogenerated commit for templates --- templates/Juniper-SSR400-CW-US-template.json | 169 ++++++++++++++ templates/Juniper-SSR400-CW-WW-template.json | 169 ++++++++++++++ templates/Juniper-SSR400-W-US-template.json | 234 +++++++++++++++++++ templates/Juniper-SSR400-W-WW-template.json | 169 ++++++++++++++ templates/Juniper-SSR440-2AC-template.json | 163 +++++++++++++ templates/Juniper-SSR440-C-2AC-template.json | 163 +++++++++++++ 6 files changed, 1067 insertions(+) create mode 100644 templates/Juniper-SSR400-CW-US-template.json create mode 100644 templates/Juniper-SSR400-CW-WW-template.json create mode 100644 templates/Juniper-SSR400-W-US-template.json create mode 100644 templates/Juniper-SSR400-W-WW-template.json create mode 100644 templates/Juniper-SSR440-2AC-template.json create mode 100644 templates/Juniper-SSR440-C-2AC-template.json diff --git a/templates/Juniper-SSR400-CW-US-template.json b/templates/Juniper-SSR400-CW-US-template.json new file mode 100644 index 0000000..ef269c7 --- /dev/null +++ b/templates/Juniper-SSR400-CW-US-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR400-CW-US-Template", + "description": "Adds a standalone Juniper SSR400-CW-US router: Juniper SSR400-CW-US - 10 ethernet + 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\": \"TBD\",\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-CW-WW-template.json b/templates/Juniper-SSR400-CW-WW-template.json new file mode 100644 index 0000000..9bbac48 --- /dev/null +++ b/templates/Juniper-SSR400-CW-WW-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR400-CW-WW-Template", + "description": "Adds a standalone Juniper SSR400-CW-WW router: Juniper SSR400-CW-WW - 10 ethernet + 5G + WiFi", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR400-CW-WW Router\n\nThis adds a basic Juniper SSR400-CW-WW 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\": \"TBD\",\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-WW branch router", + "description": "Add a new Juniper SSR400-CW-WW 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 new file mode 100644 index 0000000..fa7526a --- /dev/null +++ b/templates/Juniper-SSR400-W-US-template.json @@ -0,0 +1,234 @@ +{ + "name": "Juniper-SSR400-W-US-Template", + "description": "Adds a standalone Juniper SSR400-W-US router: Juniper SSR400-W-US - 10 ethernet + 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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" + }, + "ge-1-0": { + "title": "LAN - ge-1-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-W-WW-template.json b/templates/Juniper-SSR400-W-WW-template.json new file mode 100644 index 0000000..70a310e --- /dev/null +++ b/templates/Juniper-SSR400-W-WW-template.json @@ -0,0 +1,169 @@ +{ + "name": "Juniper-SSR400-W-WW-Template", + "description": "Adds a standalone Juniper SSR400-W-WW router: Juniper SSR400-W-WW - 10 ethernet + WiFi", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR400-W-WW Router\n\nThis adds a basic Juniper SSR400-W-WW 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\": \"TBD\",\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-W-WW branch router", + "description": "Add a new Juniper SSR400-W-WW 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-SSR440-2AC-template.json b/templates/Juniper-SSR440-2AC-template.json new file mode 100644 index 0000000..694ae9d --- /dev/null +++ b/templates/Juniper-SSR440-2AC-template.json @@ -0,0 +1,163 @@ +{ + "name": "Juniper-SSR440-2AC-Template", + "description": "Adds a standalone Juniper SSR440-2AC router: Juniper SSR440-2AC - 10 ethernet + 2AC", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR440-2AC Router\n\nThis adds a basic Juniper SSR440-2AC 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 ]\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 SSR440-2AC branch router", + "description": "Add a new Juniper SSR440-2AC 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": {} + } + } + } +} \ No newline at end of file diff --git a/templates/Juniper-SSR440-C-2AC-template.json b/templates/Juniper-SSR440-C-2AC-template.json new file mode 100644 index 0000000..1a48935 --- /dev/null +++ b/templates/Juniper-SSR440-C-2AC-template.json @@ -0,0 +1,163 @@ +{ + "name": "Juniper-SSR440-C-2AC-Template", + "description": "Adds a standalone Juniper SSR440-C-2AC router: Juniper SSR440-C-2AC - 10 ethernet + 5G + 2AC", + "enabled": true, + "persistInput": false, + "builtin": true, + "mode": "advanced", + "help": "# Juniper SSR440-C-2AC Router\n\nThis adds a basic Juniper SSR440-C-2AC 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 ]\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 SSR440-C-2AC branch router", + "description": "Add a new Juniper SSR440-C-2AC 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": {} + } + } + } +} \ No newline at end of file From 2e44902eb09a5b4c719337d2386397d55e264191 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Thu, 27 Feb 2025 20:23:02 +0000 Subject: [PATCH 22/38] change descriptions to say `ethernet ports` --- devicemaps.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/devicemaps.json b/devicemaps.json index 1b53479..1555120 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1467,7 +1467,7 @@ "clei": "TBD", "part_number": "650-178218", "deviceType": "juniper-manufactured", - "description": "Juniper SSR400 - 10 ethernet", + "description": "Juniper SSR400 - 10 ethernet ports", "ethernet": [ { "type": "SWITCH_PARENT", @@ -1560,7 +1560,7 @@ "SSR400-C": { "clei": "TBD", "part_number": "650-178220", - "description": "Juniper SSR400-C - 10 ethernet + 5G", + "description": "Juniper SSR400-C - 10 ethernet ports + 5G", "alias": { "vendor": "Juniper", "sku": "SSR400" @@ -1577,7 +1577,7 @@ "SSR400-W-US": { "clei": "TBD", "part_number": "650-178219", - "description": "Juniper SSR400-W-US - 10 ethernet + WiFi", + "description": "Juniper SSR400-W-US - 10 ethernet ports + WiFi", "alias": { "vendor": "Juniper", "sku": "SSR400", @@ -1597,7 +1597,7 @@ "SSR400-CW-US": { "clei": "TBD", "part_number": "650-178221", - "description": "Juniper SSR400-CW-US - 10 ethernet + 5G + WiFi", + "description": "Juniper SSR400-CW-US - 10 ethernet ports + 5G + WiFi", "alias": { "vendor": "Juniper", "sku": "SSR400-W-US" @@ -1614,7 +1614,7 @@ "SSR440": { "clei": "TBD", "part_number": "650-178222", - "description": "Juniper SSR440 - 10 ethernet", + "description": "Juniper SSR440 - 10 ethernet ports", "alias": { "vendor": "Juniper", "sku": "SSR400" @@ -1623,7 +1623,7 @@ "SSR440-C": { "clei": "TBD", "part_number": "650-178223", - "description": "Juniper SSR440-C - 10 ethernet + 5G", + "description": "Juniper SSR440-C - 10 ethernet ports + 5G", "alias": { "vendor": "Juniper", "sku": "SSR400-C" @@ -1632,7 +1632,7 @@ "SSR400-W-WW": { "clei": "TBD", "part_number": "650-178535", - "description": "Juniper SSR400-W-WW - 10 ethernet + WiFi", + "description": "Juniper SSR400-W-WW - 10 ethernet ports + WiFi", "alias": { "vendor": "Juniper", "sku": "SSR400-W-US" @@ -1641,7 +1641,7 @@ "SSR400-CW-WW": { "clei": "TBD", "part_number": "650-178536", - "description": "Juniper SSR400-CW-WW - 10 ethernet + 5G + WiFi", + "description": "Juniper SSR400-CW-WW - 10 ethernet ports + 5G + WiFi", "alias": { "vendor": "Juniper", "sku": "SSR400-CW-US" @@ -1650,7 +1650,7 @@ "SSR440-2AC": { "clei": "TBD", "part_number": "650-178537", - "description": "Juniper SSR440-2AC - 10 ethernet + 2AC", + "description": "Juniper SSR440-2AC - 10 ethernet ports + 2AC", "alias": { "vendor": "Juniper", "sku": "SSR440" @@ -1659,7 +1659,7 @@ "SSR440-C-2AC": { "clei": "TBD", "part_number": "650-178538", - "description": "Juniper SSR440-C-2AC - 10 ethernet + 5G + 2AC", + "description": "Juniper SSR440-C-2AC - 10 ethernet ports + 5G + 2AC", "alias": { "vendor": "Juniper", "sku": "SSR440-C" From c4d80010bb5cb26ddc9e7b739b082f9cd14dd8e9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Thu, 27 Feb 2025 20:23:49 +0000 Subject: [PATCH 23/38] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 2 +- templates/Juniper-SSR400-CW-US-template.json | 2 +- templates/Juniper-SSR400-CW-WW-template.json | 2 +- templates/Juniper-SSR400-W-US-template.json | 2 +- templates/Juniper-SSR400-W-WW-template.json | 2 +- templates/Juniper-SSR400-template.json | 2 +- templates/Juniper-SSR440-2AC-template.json | 2 +- templates/Juniper-SSR440-C-2AC-template.json | 2 +- templates/Juniper-SSR440-C-template.json | 2 +- templates/Juniper-SSR440-template.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index b90e64d..b8c4479 100644 --- a/templates/Juniper-SSR400-C-template.json +++ b/templates/Juniper-SSR400-C-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-C-Template", - "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet + 5G", + "description": "Adds a standalone Juniper SSR400-C router: Juniper SSR400-C - 10 ethernet ports + 5G", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR400-CW-US-template.json b/templates/Juniper-SSR400-CW-US-template.json index ef269c7..e450e70 100644 --- a/templates/Juniper-SSR400-CW-US-template.json +++ b/templates/Juniper-SSR400-CW-US-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-CW-US-Template", - "description": "Adds a standalone Juniper SSR400-CW-US router: Juniper SSR400-CW-US - 10 ethernet + 5G + WiFi", + "description": "Adds a standalone Juniper SSR400-CW-US router: Juniper SSR400-CW-US - 10 ethernet ports + 5G + WiFi", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR400-CW-WW-template.json b/templates/Juniper-SSR400-CW-WW-template.json index 9bbac48..688d798 100644 --- a/templates/Juniper-SSR400-CW-WW-template.json +++ b/templates/Juniper-SSR400-CW-WW-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-CW-WW-Template", - "description": "Adds a standalone Juniper SSR400-CW-WW router: Juniper SSR400-CW-WW - 10 ethernet + 5G + WiFi", + "description": "Adds a standalone Juniper SSR400-CW-WW router: Juniper SSR400-CW-WW - 10 ethernet ports + 5G + WiFi", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR400-W-US-template.json b/templates/Juniper-SSR400-W-US-template.json index fa7526a..e3ae834 100644 --- a/templates/Juniper-SSR400-W-US-template.json +++ b/templates/Juniper-SSR400-W-US-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-W-US-Template", - "description": "Adds a standalone Juniper SSR400-W-US router: Juniper SSR400-W-US - 10 ethernet + WiFi", + "description": "Adds a standalone Juniper SSR400-W-US router: Juniper SSR400-W-US - 10 ethernet ports + WiFi", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR400-W-WW-template.json b/templates/Juniper-SSR400-W-WW-template.json index 70a310e..700fbdd 100644 --- a/templates/Juniper-SSR400-W-WW-template.json +++ b/templates/Juniper-SSR400-W-WW-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-W-WW-Template", - "description": "Adds a standalone Juniper SSR400-W-WW router: Juniper SSR400-W-WW - 10 ethernet + WiFi", + "description": "Adds a standalone Juniper SSR400-W-WW router: Juniper SSR400-W-WW - 10 ethernet ports + WiFi", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index 76edf98..e973958 100644 --- a/templates/Juniper-SSR400-template.json +++ b/templates/Juniper-SSR400-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR400-Template", - "description": "Adds a standalone Juniper SSR400 router: Juniper SSR400 - 10 ethernet", + "description": "Adds a standalone Juniper SSR400 router: Juniper SSR400 - 10 ethernet ports", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR440-2AC-template.json b/templates/Juniper-SSR440-2AC-template.json index 694ae9d..75efd61 100644 --- a/templates/Juniper-SSR440-2AC-template.json +++ b/templates/Juniper-SSR440-2AC-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR440-2AC-Template", - "description": "Adds a standalone Juniper SSR440-2AC router: Juniper SSR440-2AC - 10 ethernet + 2AC", + "description": "Adds a standalone Juniper SSR440-2AC router: Juniper SSR440-2AC - 10 ethernet ports + 2AC", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR440-C-2AC-template.json b/templates/Juniper-SSR440-C-2AC-template.json index 1a48935..0a360f4 100644 --- a/templates/Juniper-SSR440-C-2AC-template.json +++ b/templates/Juniper-SSR440-C-2AC-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR440-C-2AC-Template", - "description": "Adds a standalone Juniper SSR440-C-2AC router: Juniper SSR440-C-2AC - 10 ethernet + 5G + 2AC", + "description": "Adds a standalone Juniper SSR440-C-2AC router: Juniper SSR440-C-2AC - 10 ethernet ports + 5G + 2AC", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR440-C-template.json b/templates/Juniper-SSR440-C-template.json index 0d28980..2a87085 100644 --- a/templates/Juniper-SSR440-C-template.json +++ b/templates/Juniper-SSR440-C-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR440-C-Template", - "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR440-C - 10 ethernet + 5G", + "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR440-C - 10 ethernet ports + 5G", "enabled": true, "persistInput": false, "builtin": true, diff --git a/templates/Juniper-SSR440-template.json b/templates/Juniper-SSR440-template.json index b4d6b7d..3a09d51 100644 --- a/templates/Juniper-SSR440-template.json +++ b/templates/Juniper-SSR440-template.json @@ -1,6 +1,6 @@ { "name": "Juniper-SSR440-Template", - "description": "Adds a standalone Juniper SSR440 router: Juniper SSR440 - 10 ethernet", + "description": "Adds a standalone Juniper SSR440 router: Juniper SSR440 - 10 ethernet ports", "enabled": true, "persistInput": false, "builtin": true, From 5d3a9ab4a7f62168a326866b678c5056e9783074 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 6 May 2025 08:25:24 -0600 Subject: [PATCH 24/38] update lte target interfaces --- devicemaps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemaps.json b/devicemaps.json index 1555120..0078b9f 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1570,7 +1570,7 @@ "type": "WAN", "name": "lte-0-0", "description": "LTE device interface", - "targetInterface": "TBD" + "targetInterface": "mhi_netdev0" } ] }, @@ -1607,7 +1607,7 @@ "type": "WAN", "name": "lte-0-0", "description": "LTE device interface", - "targetInterface": "TBD" + "targetInterface": "mhi_netdev0" } ] }, From 6ad1e3a6e02869fdf974ed5894066394e304f1ad Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Tue, 6 May 2025 09:02:06 -0600 Subject: [PATCH 25/38] update workflow version --- .github/workflows/main.yml | 8 ++++---- .github/workflows/template_gen.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a9a4ea..7ab421c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,14 +12,14 @@ permissions: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.6 - uses: actions/setup-python@v3 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: "3.6" + python-version: "3.9" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/template_gen.yml b/.github/workflows/template_gen.yml index a16897b..ff48364 100644 --- a/.github/workflows/template_gen.yml +++ b/.github/workflows/template_gen.yml @@ -8,13 +8,13 @@ permissions: write-all jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.6 - uses: actions/setup-python@v3 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: "3.6" + python-version: "3.9" - name: setup git config run: | git config user.name "GitHub Actions Bot" From 14fbd206a323a3efb6e1ba2eca4562880ccd4122 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Tue, 6 May 2025 15:02:48 +0000 Subject: [PATCH 26/38] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 2 +- templates/Juniper-SSR400-CW-US-template.json | 2 +- templates/Juniper-SSR400-CW-WW-template.json | 2 +- templates/Juniper-SSR400-W-US-template.json | 2 +- templates/Juniper-SSR400-W-WW-template.json | 2 +- templates/Juniper-SSR440-C-template.json | 2 +- templates/Juniper-SSR440-template.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index b8c4479..34d61d9 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { diff --git a/templates/Juniper-SSR400-CW-US-template.json b/templates/Juniper-SSR400-CW-US-template.json index e450e70..be2ea4a 100644 --- a/templates/Juniper-SSR400-CW-US-template.json +++ b/templates/Juniper-SSR400-CW-US-template.json @@ -6,7 +6,7 @@ "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\": \"TBD\",\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}", + "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": { diff --git a/templates/Juniper-SSR400-CW-WW-template.json b/templates/Juniper-SSR400-CW-WW-template.json index 688d798..5bcbcbd 100644 --- a/templates/Juniper-SSR400-CW-WW-template.json +++ b/templates/Juniper-SSR400-CW-WW-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR400-CW-WW Router\n\nThis adds a basic Juniper SSR400-CW-WW 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\": \"TBD\",\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}", + "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": { diff --git a/templates/Juniper-SSR400-W-US-template.json b/templates/Juniper-SSR400-W-US-template.json index e3ae834..70664e2 100644 --- a/templates/Juniper-SSR400-W-US-template.json +++ b/templates/Juniper-SSR400-W-US-template.json @@ -6,7 +6,7 @@ "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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { diff --git a/templates/Juniper-SSR400-W-WW-template.json b/templates/Juniper-SSR400-W-WW-template.json index 700fbdd..96f7045 100644 --- a/templates/Juniper-SSR400-W-WW-template.json +++ b/templates/Juniper-SSR400-W-WW-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR400-W-WW Router\n\nThis adds a basic Juniper SSR400-W-WW 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\": \"TBD\",\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}", + "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": { diff --git a/templates/Juniper-SSR440-C-template.json b/templates/Juniper-SSR440-C-template.json index 2a87085..143acd0 100644 --- a/templates/Juniper-SSR440-C-template.json +++ b/templates/Juniper-SSR440-C-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR440-C Router\n\nThis adds a basic Juniper SSR440-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\": \"TBD\",\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}", + "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": { diff --git a/templates/Juniper-SSR440-template.json b/templates/Juniper-SSR440-template.json index 3a09d51..3fbcabd 100644 --- a/templates/Juniper-SSR440-template.json +++ b/templates/Juniper-SSR440-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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": { From 9fb710ba71225d97791bc18e7ef32bdb76bf2c8f Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Wed, 7 May 2025 13:36:00 -0600 Subject: [PATCH 27/38] ge-1-0 to ha-0-0 --- devicemaps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemaps.json b/devicemaps.json index 0078b9f..bd010b1 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1551,7 +1551,7 @@ "type": "HASync", "pciAddress": "0000:01:00.0", "speed": 1000, - "name": "ge-1-0", + "name": "ha-0-0", "description": "HA device interface" } ], From 35a8ce734f9343beeecb13afb90f3ddf329da3e4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 7 May 2025 19:36:28 +0000 Subject: [PATCH 28/38] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 6 +++--- templates/Juniper-SSR400-W-US-template.json | 6 +++--- templates/Juniper-SSR400-template.json | 6 +++--- templates/Juniper-SSR440-template.json | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 34d61d9..6ec7d67 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"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 \"pciAddress\": \"0000:01:00.0\",\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}", "schema": { "type": "object", "definitions": { @@ -212,8 +212,8 @@ "description": "Port 9 labeled on the device", "$ref": "#/definitions/lanPort" }, - "ge-1-0": { - "title": "LAN - ge-1-0", + "ha-0-0": { + "title": "LAN - ha-0-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" }, diff --git a/templates/Juniper-SSR400-W-US-template.json b/templates/Juniper-SSR400-W-US-template.json index 70664e2..0c36f2b 100644 --- a/templates/Juniper-SSR400-W-US-template.json +++ b/templates/Juniper-SSR400-W-US-template.json @@ -6,7 +6,7 @@ "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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "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 \"pciAddress\": \"0000:01:00.0\",\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": { @@ -212,8 +212,8 @@ "description": "Port 9 labeled on the device", "$ref": "#/definitions/lanPort" }, - "ge-1-0": { - "title": "LAN - ge-1-0", + "ha-0-0": { + "title": "LAN - ha-0-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" }, diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index e973958..68a64a9 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 \"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 \"pciAddress\": \"0000:01:00.0\",\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}", "schema": { "type": "object", "definitions": { @@ -212,8 +212,8 @@ "description": "Port 9 labeled on the device", "$ref": "#/definitions/lanPort" }, - "ge-1-0": { - "title": "LAN - ge-1-0", + "ha-0-0": { + "title": "LAN - ha-0-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" } diff --git a/templates/Juniper-SSR440-template.json b/templates/Juniper-SSR440-template.json index 3fbcabd..0059fe0 100644 --- a/templates/Juniper-SSR440-template.json +++ b/templates/Juniper-SSR440-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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}", + "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 \"pciAddress\": \"0000:01:00.0\",\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": { @@ -212,8 +212,8 @@ "description": "Port 9 labeled on the device", "$ref": "#/definitions/lanPort" }, - "ge-1-0": { - "title": "LAN - ge-1-0", + "ha-0-0": { + "title": "LAN - ha-0-0", "description": "HA device interface", "$ref": "#/definitions/lanPort" }, From 44623f2185a85fd83b26066407ad37899553a7f2 Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Wed, 7 May 2025 14:05:16 -0600 Subject: [PATCH 29/38] update schema for ha-0-0 --- devicemap-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index db49d5d..f0e9ae9 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -34,7 +34,7 @@ "properties": { "name": { "type": "string", - "pattern": "^(ge|xe|et|mgmt|ap)-[0-9]+(-[0-9]+)?$" + "pattern": "^(ge|xe|et|mgmt|ap|ha)-[0-9]+(-[0-9]+)?$" }, "type": { "type": "string", From 0bcde13f6536028e367a37a1698f90c1454df2d1 Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Tue, 1 Jul 2025 11:44:59 -0400 Subject: [PATCH 30/38] Added switch address --- devicemap-schema.json | 5 ++++- devicemaps.json | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index f0e9ae9..1ebaf2e 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -123,7 +123,10 @@ "parent": { "type": "string", "pattern": "^fte-[0-9]+(-[0-9]+)?$" - } + }, + "switch_address": { + "type": "integer", + "minimum": 0 }, "required": [ "parent" diff --git a/devicemaps.json b/devicemaps.json index bd010b1..484a01c 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1480,6 +1480,7 @@ "speed": 1000, "name": "ge-0-0", "parent": "fte-0-0", + "switch_address": 9, "description": "SFP Port 0 labeled on the device" }, { @@ -1487,6 +1488,7 @@ "speed": 1000, "name": "ge-0-1", "parent": "fte-0-0", + "switch_address": 10, "description": "SFP Port 1 labeled on the device" }, { @@ -1494,6 +1496,7 @@ "speed": 1000, "name": "ge-0-2", "parent": "fte-0-0", + "switch_address": 0, "description": "Port 2 labeled on the device" }, { @@ -1501,6 +1504,7 @@ "speed": 1000, "name": "ge-0-3", "parent": "fte-0-0", + "switch_address": 1, "description": "Port 3 labeled on the device" }, { @@ -1508,6 +1512,7 @@ "speed": 1000, "name": "ge-0-4", "parent": "fte-0-0", + "switch_address": 2, "description": "Port 4 labeled on the device" }, { @@ -1515,6 +1520,7 @@ "speed": 1000, "name": "ge-0-5", "parent": "fte-0-0", + "switch_address": 3, "description": "Port 5 labeled on the device" }, { @@ -1522,6 +1528,7 @@ "speed": 1000, "name": "ge-0-6", "parent": "fte-0-0", + "switch_address": 4, "description": "Port 6 labeled on the device" }, { @@ -1529,6 +1536,7 @@ "speed": 1000, "name": "ge-0-7", "parent": "fte-0-0", + "switch_address": 5, "description": "Port 7 labeled on the device" }, { @@ -1536,6 +1544,7 @@ "speed": 1000, "name": "ge-0-8", "parent": "fte-0-0", + "switch_address": 6, "description": "Port 8 labeled on the device", "poe": true }, @@ -1544,6 +1553,7 @@ "speed": 1000, "name": "ge-0-9", "parent": "fte-0-0", + "switch_address": 7, "description": "Port 9 labeled on the device", "poe": true }, @@ -1590,6 +1600,7 @@ "name": "ap-0-0", "ap": true, "parent": "fte-0-0", + "switch_address": 8, "description": "Internal AP port on the device" } ] From e51e779bb9267575b6079622d2aba5cd7572f870 Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Tue, 1 Jul 2025 12:11:21 -0400 Subject: [PATCH 31/38] Missed paren in schema --- devicemap-schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/devicemap-schema.json b/devicemap-schema.json index 1ebaf2e..31dac16 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -127,6 +127,7 @@ "switch_address": { "type": "integer", "minimum": 0 + } }, "required": [ "parent" From 986f12e273b5cf34cf61b541245fc8e9d0ac346f Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Thu, 17 Jul 2025 11:03:30 -0400 Subject: [PATCH 32/38] Added macIndex for ha port --- devicemap-schema.json | 21 +++++++++++++++++++++ devicemaps.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index 31dac16..cc1a708 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -132,6 +132,27 @@ "required": [ "parent" ] + }, + { + "properties": { + "pciAddress": { + "type": "null" + }, + "vmbusId": { + "type": "null" + }, + "parent": { + "type": "null" + }, + "macIndex": { + "type": "integer", + "minimum": 0, + "description": "For non-pci based, non-forwarding interfaces, this is the order to use for picking mac addresses. Only used for HA on SSR400/440 right now." + } + }, + "required": [ + "macIndex" + ] } ] }, diff --git a/devicemaps.json b/devicemaps.json index 484a01c..10b3832 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1559,7 +1559,7 @@ }, { "type": "HASync", - "pciAddress": "0000:01:00.0", + "macIndex": 0, "speed": 1000, "name": "ha-0-0", "description": "HA device interface" From 3ceaa43dc79a9253c5fe5e0fae2ec1b99daf1b14 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Thu, 17 Jul 2025 15:03:57 +0000 Subject: [PATCH 33/38] Autogenerated commit for templates --- templates/Juniper-SSR400-C-template.json | 2 +- templates/Juniper-SSR400-W-US-template.json | 2 +- templates/Juniper-SSR400-template.json | 2 +- templates/Juniper-SSR440-template.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/Juniper-SSR400-C-template.json b/templates/Juniper-SSR400-C-template.json index 6ec7d67..723b6e4 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 \"pciAddress\": \"0000:01:00.0\",\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 \"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}", "schema": { "type": "object", "definitions": { diff --git a/templates/Juniper-SSR400-W-US-template.json b/templates/Juniper-SSR400-W-US-template.json index 0c36f2b..82806bd 100644 --- a/templates/Juniper-SSR400-W-US-template.json +++ b/templates/Juniper-SSR400-W-US-template.json @@ -6,7 +6,7 @@ "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 \"pciAddress\": \"0000:01:00.0\",\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}", + "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": { diff --git a/templates/Juniper-SSR400-template.json b/templates/Juniper-SSR400-template.json index 68a64a9..858e426 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 \"pciAddress\": \"0000:01:00.0\",\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 \"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}", "schema": { "type": "object", "definitions": { diff --git a/templates/Juniper-SSR440-template.json b/templates/Juniper-SSR440-template.json index 0059fe0..df67d58 100644 --- a/templates/Juniper-SSR440-template.json +++ b/templates/Juniper-SSR440-template.json @@ -6,7 +6,7 @@ "builtin": true, "mode": "advanced", "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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 \"pciAddress\": \"0000:01:00.0\",\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}", + "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": { From 675b3dc58801ad5802637fe3840f51bdbdf2b334 Mon Sep 17 00:00:00 2001 From: Ben Matase Date: Thu, 17 Jul 2025 12:14:03 -0400 Subject: [PATCH 34/38] Add unused pci address to switch parent --- devicemap-schema.json | 8 +++++++- devicemaps.json | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index cc1a708..6171beb 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -171,6 +171,11 @@ "linux-name": { "type": "string" }, + "pciAddress": { + "type": "string", + "description": "The PCI address of a switch connection, this won't be used to configure this interface.", + "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-7]$" + }, "type": { "type": "string", "enum": [ @@ -181,7 +186,8 @@ "required": [ "name", "type", - "linux-name" + "linux-name", + "pciAddress" ] } ] diff --git a/devicemaps.json b/devicemaps.json index 10b3832..46ea3ec 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1473,6 +1473,7 @@ "type": "SWITCH_PARENT", "name": "fte-0-0", "linux-name": "esw0", + "pciAddress": "0000:01:00.0", "description": "Internal switch port on the device" }, { From ea41d2fde800f48ca0ade4cb7b72ae020265cc2b Mon Sep 17 00:00:00 2001 From: Tyler Carroll Date: Mon, 4 Aug 2025 10:56:31 -0400 Subject: [PATCH 35/38] Add platform capabilities for leopard models --- devicemap-schema.json | 12 ++++++++++++ devicemaps.json | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/devicemap-schema.json b/devicemap-schema.json index 6171beb..86d7999 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -14,6 +14,18 @@ "description": { "type": "string" }, + "platform-capabilities": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "recovery-mode", + "disable-reset-button", + "no-pci-on-forwarding-interfaces", + "interface-name-on-forwarding-interfaces" + ] + } + }, "clei": { "type": "string" }, diff --git a/devicemaps.json b/devicemaps.json index 46ea3ec..6f006d3 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1468,6 +1468,12 @@ "part_number": "650-178218", "deviceType": "juniper-manufactured", "description": "Juniper SSR400 - 10 ethernet ports", + "platform-capabilities": [ + "recovery-mode", + "disable-reset-button", + "no-pci-on-forwarding-interfaces", + "interface-name-on-forwarding-interfaces" + ], "ethernet": [ { "type": "SWITCH_PARENT", From 190f334fc351ddc0a38b9ed54b4bb06f2a32c92e Mon Sep 17 00:00:00 2001 From: Tyler Carroll Date: Mon, 4 Aug 2025 13:40:23 -0400 Subject: [PATCH 36/38] Address review comments --- devicemap-schema.json | 4 ++-- devicemaps.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/devicemap-schema.json b/devicemap-schema.json index 86d7999..d911d0a 100644 --- a/devicemap-schema.json +++ b/devicemap-schema.json @@ -14,13 +14,13 @@ "description": { "type": "string" }, - "platform-capabilities": { + "platformCapabilities": { "type": "array", "items": { "type": "string", "enum": [ "recovery-mode", - "disable-reset-button", + "reset-button", "no-pci-on-forwarding-interfaces", "interface-name-on-forwarding-interfaces" ] diff --git a/devicemaps.json b/devicemaps.json index 6f006d3..f5752e2 100644 --- a/devicemaps.json +++ b/devicemaps.json @@ -1468,9 +1468,9 @@ "part_number": "650-178218", "deviceType": "juniper-manufactured", "description": "Juniper SSR400 - 10 ethernet ports", - "platform-capabilities": [ + "platformCapabilities": [ "recovery-mode", - "disable-reset-button", + "reset-button", "no-pci-on-forwarding-interfaces", "interface-name-on-forwarding-interfaces" ], From 3f495963b69849483d84ebd8553515f4196e02ce Mon Sep 17 00:00:00 2001 From: Sam Haberkorn Date: Fri, 24 Oct 2025 15:59:07 +0000 Subject: [PATCH 37/38] fix template generation --- generate_templates.py | 3 + templates/Juniper-SSR120-AA-template.json | 169 ------------ templates/Juniper-SSR120-AE-TAA-template.json | 169 ------------ templates/Juniper-SSR120-AE-template.json | 199 -------------- templates/Juniper-SSR120-TAA-template.json | 194 -------------- templates/Juniper-SSR120-template.json | 194 -------------- templates/Juniper-SSR1200-template.json | 224 ---------------- templates/Juniper-SSR130-AA-template.json | 169 ------------ templates/Juniper-SSR130-AE-TAA-template.json | 169 ------------ templates/Juniper-SSR130-AE-template.json | 209 --------------- templates/Juniper-SSR130-TAA-template.json | 204 -------------- templates/Juniper-SSR130-template.json | 204 -------------- templates/Juniper-SSR1300-DC-template.json | 229 ---------------- templates/Juniper-SSR1300-template.json | 229 ---------------- templates/Juniper-SSR1400-DC-template.json | 229 ---------------- templates/Juniper-SSR1400-template.json | 229 ---------------- templates/Juniper-SSR1500-template.json | 249 ------------------ templates/Juniper-SSR400-C-template.json | 229 ---------------- templates/Juniper-SSR400-CW-US-template.json | 169 ------------ templates/Juniper-SSR400-CW-WW-template.json | 169 ------------ templates/Juniper-SSR400-CW-template.json | 169 ------------ templates/Juniper-SSR400-W-US-template.json | 234 ---------------- templates/Juniper-SSR400-W-WW-template.json | 169 ------------ templates/Juniper-SSR400-W-template.json | 234 ---------------- templates/Juniper-SSR400-template.json | 224 ---------------- templates/Juniper-SSR440-2AC-template.json | 163 ------------ templates/Juniper-SSR440-C-2AC-template.json | 163 ------------ templates/Juniper-SSR440-C-template.json | 169 ------------ templates/Juniper-SSR440-template.json | 234 ---------------- 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-G12-template.json | 169 ------------ .../Silicom-90500-0151-G13-template.json | 209 --------------- .../Silicom-90500-0151-G41-template.json | 209 --------------- .../Silicom-90500-0151-G53-template.json | 209 --------------- .../Silicom-90500-0151-G61-template.json | 169 ------------ .../Silicom-90500-0151-G71-template.json | 204 -------------- 39 files changed, 3 insertions(+), 7590 deletions(-) delete mode 100644 templates/Juniper-SSR120-AA-template.json delete mode 100644 templates/Juniper-SSR120-AE-TAA-template.json delete mode 100644 templates/Juniper-SSR120-AE-template.json delete mode 100644 templates/Juniper-SSR120-TAA-template.json delete mode 100644 templates/Juniper-SSR120-template.json delete mode 100644 templates/Juniper-SSR1200-template.json delete mode 100644 templates/Juniper-SSR130-AA-template.json delete mode 100644 templates/Juniper-SSR130-AE-TAA-template.json delete mode 100644 templates/Juniper-SSR130-AE-template.json delete mode 100644 templates/Juniper-SSR130-TAA-template.json delete mode 100644 templates/Juniper-SSR130-template.json delete mode 100644 templates/Juniper-SSR1300-DC-template.json delete mode 100644 templates/Juniper-SSR1300-template.json delete mode 100644 templates/Juniper-SSR1400-DC-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-CW-WW-template.json delete mode 100644 templates/Juniper-SSR400-CW-template.json delete mode 100644 templates/Juniper-SSR400-W-US-template.json delete mode 100644 templates/Juniper-SSR400-W-WW-template.json delete mode 100644 templates/Juniper-SSR400-W-template.json delete mode 100644 templates/Juniper-SSR400-template.json delete mode 100644 templates/Juniper-SSR440-2AC-template.json delete mode 100644 templates/Juniper-SSR440-C-2AC-template.json delete mode 100644 templates/Juniper-SSR440-C-template.json delete mode 100644 templates/Juniper-SSR440-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-G12-template.json delete mode 100644 templates/Silicom-90500-0151-G13-template.json delete mode 100644 templates/Silicom-90500-0151-G41-template.json delete mode 100644 templates/Silicom-90500-0151-G53-template.json delete mode 100644 templates/Silicom-90500-0151-G61-template.json delete mode 100644 templates/Silicom-90500-0151-G71-template.json diff --git a/generate_templates.py b/generate_templates.py index b6583d6..ccad4ae 100644 --- a/generate_templates.py +++ b/generate_templates.py @@ -425,6 +425,9 @@ def resolve_alias(devicemap, sku_map): if not devicemap.get("alias"): return devicemap + if not (devicemap.get("ethernet") or devicemap.get("lte")): + return None + alias_map = resolve_alias( lookup_devicemap( devicemap["alias"]["vendor"], diff --git a/templates/Juniper-SSR120-AA-template.json b/templates/Juniper-SSR120-AA-template.json deleted file mode 100644 index c80cf13..0000000 --- a/templates/Juniper-SSR120-AA-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR120-AA-Template", - "description": "Adds a standalone Juniper SSR120-AA router: Juniper SSR120 - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR120-AA Router\n\nThis adds a basic Juniper SSR120-AA 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 }\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-AA branch router", - "description": "Add a new Juniper SSR120-AA 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-SSR120-AE-TAA-template.json b/templates/Juniper-SSR120-AE-TAA-template.json deleted file mode 100644 index a1f415d..0000000 --- a/templates/Juniper-SSR120-AE-TAA-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR120-AE-TAA-Template", - "description": "Adds a standalone Juniper SSR120-AE-TAA router: Juniper SSR120 - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR120-AE-TAA Router\n\nThis adds a basic Juniper SSR120-AE-TAA 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 }\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-TAA branch router", - "description": "Add a new Juniper SSR120-AE-TAA 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-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-TAA-template.json b/templates/Juniper-SSR120-TAA-template.json deleted file mode 100644 index 437f725..0000000 --- a/templates/Juniper-SSR120-TAA-template.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "name": "Juniper-SSR120-TAA-Template", - "description": "Adds a standalone Juniper SSR120-TAA router: Juniper SSR120 - 6 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR120-TAA Router\n\nThis adds a basic Juniper SSR120-TAA 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: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-TAA branch router", - "description": "Add a new Juniper SSR120-TAA 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-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-AA-template.json b/templates/Juniper-SSR130-AA-template.json deleted file mode 100644 index 7c73f65..0000000 --- a/templates/Juniper-SSR130-AA-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR130-AA-Template", - "description": "Adds a standalone Juniper SSR130-AA router: Juniper SSR130 - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR130-AA Router\n\nThis adds a basic Juniper SSR130-AA 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 }\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-AA branch router", - "description": "Add a new Juniper SSR130-AA 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-SSR130-AE-TAA-template.json b/templates/Juniper-SSR130-AE-TAA-template.json deleted file mode 100644 index b07ce5a..0000000 --- a/templates/Juniper-SSR130-AE-TAA-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR130-AE-TAA-Template", - "description": "Adds a standalone Juniper SSR130-AE-TAA router: Juniper SSR130 - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR130-AE-TAA Router\n\nThis adds a basic Juniper SSR130-AE-TAA 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 }\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-TAA branch router", - "description": "Add a new Juniper SSR130-AE-TAA 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-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-TAA-template.json b/templates/Juniper-SSR130-TAA-template.json deleted file mode 100644 index 1eaf7d0..0000000 --- a/templates/Juniper-SSR130-TAA-template.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "name": "Juniper-SSR130-TAA-Template", - "description": "Adds a standalone Juniper SSR130-TAA router: Juniper SSR130 - 8 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR130-TAA Router\n\nThis adds a basic Juniper SSR130-TAA 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: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-TAA branch router", - "description": "Add a new Juniper SSR130-TAA 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-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-DC-template.json b/templates/Juniper-SSR1300-DC-template.json deleted file mode 100644 index 197b594..0000000 --- a/templates/Juniper-SSR1300-DC-template.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "name": "Juniper-SSR1300-DC-Template", - "description": "Adds a standalone Juniper SSR1300-DC router: Juniper SSR1300 - 1 MGMT, 12 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1300-DC Router\n\nThis adds a basic Juniper SSR1300-DC 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-DC branch router", - "description": "Add a new Juniper SSR1300-DC 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-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-DC-template.json b/templates/Juniper-SSR1400-DC-template.json deleted file mode 100644 index ce44772..0000000 --- a/templates/Juniper-SSR1400-DC-template.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "name": "Juniper-SSR1400-DC-Template", - "description": "Adds a standalone Juniper SSR1400-DC router: Juniper SSR1400 - 1 MGMT, 12 ethernet", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR1400-DC Router\n\nThis adds a basic Juniper SSR1400-DC 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-DC branch router", - "description": "Add a new Juniper SSR1400-DC 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 723b6e4..0000000 --- a/templates/Juniper-SSR400-C-template.json +++ /dev/null @@ -1,229 +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 \"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}", - "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": { - "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" - }, - "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-CW-WW-template.json b/templates/Juniper-SSR400-CW-WW-template.json deleted file mode 100644 index 5bcbcbd..0000000 --- a/templates/Juniper-SSR400-CW-WW-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR400-CW-WW-Template", - "description": "Adds a standalone Juniper SSR400-CW-WW router: Juniper SSR400-CW-WW - 10 ethernet ports + 5G + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-CW-WW Router\n\nThis adds a basic Juniper SSR400-CW-WW 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-WW branch router", - "description": "Add a new Juniper SSR400-CW-WW 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-CW-template.json b/templates/Juniper-SSR400-CW-template.json deleted file mode 100644 index aecaaa8..0000000 --- a/templates/Juniper-SSR400-CW-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR400-CW-Template", - "description": "Adds a standalone Juniper SSR400-CW router: Juniper SSR400-CW - 10 ethernet + 5G + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-CW Router\n\nThis adds a basic Juniper SSR400-CW 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\": \"TBD\",\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 branch router", - "description": "Add a new Juniper SSR400-CW 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-W-WW-template.json b/templates/Juniper-SSR400-W-WW-template.json deleted file mode 100644 index 96f7045..0000000 --- a/templates/Juniper-SSR400-W-WW-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR400-W-WW-Template", - "description": "Adds a standalone Juniper SSR400-W-WW router: Juniper SSR400-W-WW - 10 ethernet ports + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-W-WW Router\n\nThis adds a basic Juniper SSR400-W-WW 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-W-WW branch router", - "description": "Add a new Juniper SSR400-W-WW 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-template.json b/templates/Juniper-SSR400-W-template.json deleted file mode 100644 index a16cb47..0000000 --- a/templates/Juniper-SSR400-W-template.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "name": "Juniper-SSR400-W-Template", - "description": "Adds a standalone Juniper SSR400-W router: Juniper SSR400-W - 10 ethernet + WiFi", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR400-W Router\n\nThis adds a basic Juniper SSR400-W 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\": \"TBD\",\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 \"pciAddress\": \"0000:01:00.0\",\n \"description\": \"HA device interface\",\n \"enabled\": \"true\",\n \"forwarding\": \"true\",\n \"name\": \"ge-1-0\",\n \"networkInterface\": [\n {\n \"name\": \"ge-1-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 branch router", - "description": "Add a new Juniper SSR400-W 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" - }, - "ge-1-0": { - "title": "LAN - ge-1-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 858e426..0000000 --- a/templates/Juniper-SSR400-template.json +++ /dev/null @@ -1,224 +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 \"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}", - "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": { - "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" - } - } - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR440-2AC-template.json b/templates/Juniper-SSR440-2AC-template.json deleted file mode 100644 index 75efd61..0000000 --- a/templates/Juniper-SSR440-2AC-template.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "name": "Juniper-SSR440-2AC-Template", - "description": "Adds a standalone Juniper SSR440-2AC router: Juniper SSR440-2AC - 10 ethernet ports + 2AC", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR440-2AC Router\n\nThis adds a basic Juniper SSR440-2AC 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 ]\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 SSR440-2AC branch router", - "description": "Add a new Juniper SSR440-2AC 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": {} - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR440-C-2AC-template.json b/templates/Juniper-SSR440-C-2AC-template.json deleted file mode 100644 index 0a360f4..0000000 --- a/templates/Juniper-SSR440-C-2AC-template.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "name": "Juniper-SSR440-C-2AC-Template", - "description": "Adds a standalone Juniper SSR440-C-2AC router: Juniper SSR440-C-2AC - 10 ethernet ports + 5G + 2AC", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR440-C-2AC Router\n\nThis adds a basic Juniper SSR440-C-2AC 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 ]\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 SSR440-C-2AC branch router", - "description": "Add a new Juniper SSR440-C-2AC 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": {} - } - } - } -} \ No newline at end of file diff --git a/templates/Juniper-SSR440-C-template.json b/templates/Juniper-SSR440-C-template.json deleted file mode 100644 index 143acd0..0000000 --- a/templates/Juniper-SSR440-C-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Juniper-SSR440-C-Template", - "description": "Adds a standalone Juniper SSR440-C router: Juniper SSR440-C - 10 ethernet ports + 5G", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR440-C Router\n\nThis adds a basic Juniper SSR440-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 }\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 SSR440-C branch router", - "description": "Add a new Juniper SSR440-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": { - "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-SSR440-template.json b/templates/Juniper-SSR440-template.json deleted file mode 100644 index df67d58..0000000 --- a/templates/Juniper-SSR440-template.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "name": "Juniper-SSR440-Template", - "description": "Adds a standalone Juniper SSR440 router: Juniper SSR440 - 10 ethernet ports", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Juniper SSR440 Router\n\nThis adds a basic Juniper SSR440 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 SSR440 branch router", - "description": "Add a new Juniper SSR440 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/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-G12-template.json b/templates/Silicom-90500-0151-G12-template.json deleted file mode 100644 index 22e5f87..0000000 --- a/templates/Silicom-90500-0151-G12-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Silicom-90500-0151-G12-Template", - "description": "Adds a standalone Silicom 90500-0151-G12 router: Madrid - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G12 Router\n\nThis adds a basic Silicom 90500-0151-G12 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 }\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-G12 branch router", - "description": "Add a new Silicom 90500-0151-G12 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/Silicom-90500-0151-G13-template.json b/templates/Silicom-90500-0151-G13-template.json deleted file mode 100644 index 2bba3ba..0000000 --- a/templates/Silicom-90500-0151-G13-template.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "name": "Silicom-90500-0151-G13-Template", - "description": "Adds a standalone Silicom 90500-0151-G13 router: Madrid - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G13 Router\n\nThis adds a basic Silicom 90500-0151-G13 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-G13 branch router", - "description": "Add a new Silicom 90500-0151-G13 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-G41-template.json b/templates/Silicom-90500-0151-G41-template.json deleted file mode 100644 index 8e68245..0000000 --- a/templates/Silicom-90500-0151-G41-template.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "name": "Silicom-90500-0151-G41-Template", - "description": "Adds a standalone Silicom 90500-0151-G41 router: Madrid - 8 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G41 Router\n\nThis adds a basic Silicom 90500-0151-G41 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-G41 branch router", - "description": "Add a new Silicom 90500-0151-G41 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-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-G61-template.json b/templates/Silicom-90500-0151-G61-template.json deleted file mode 100644 index 65088a4..0000000 --- a/templates/Silicom-90500-0151-G61-template.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "name": "Silicom-90500-0151-G61-Template", - "description": "Adds a standalone Silicom 90500-0151-G61 router: Madrid - 6 ethernet, 1 lte", - "enabled": true, - "persistInput": false, - "builtin": true, - "mode": "advanced", - "help": "# Silicom 90500-0151-G61 Router\n\nThis adds a basic Silicom 90500-0151-G61 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 }\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-G61 branch router", - "description": "Add a new Silicom 90500-0151-G61 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/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 2d427700ba71d148cfe3cacb98e5ba8ac5a8c893 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Fri, 24 Oct 2025 15:59:37 +0000 Subject: [PATCH 38/38] 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 | 229 ++++++++++++++++ templates/Juniper-SSR400-CW-US-template.json | 169 ++++++++++++ templates/Juniper-SSR400-W-US-template.json | 234 ++++++++++++++++ templates/Juniper-SSR400-template.json | 224 ++++++++++++++++ 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, 3832 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-CW-US-template.json create mode 100644 templates/Juniper-SSR400-W-US-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..723b6e4 --- /dev/null +++ b/templates/Juniper-SSR400-C-template.json @@ -0,0 +1,229 @@ +{ + "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 \"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}", + "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": { + "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" + }, + "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 new file mode 100644 index 0000000..be2ea4a --- /dev/null +++ b/templates/Juniper-SSR400-CW-US-template.json @@ -0,0 +1,169 @@ +{ + "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 new file mode 100644 index 0000000..82806bd --- /dev/null +++ b/templates/Juniper-SSR400-W-US-template.json @@ -0,0 +1,234 @@ +{ + "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 new file mode 100644 index 0000000..858e426 --- /dev/null +++ b/templates/Juniper-SSR400-template.json @@ -0,0 +1,224 @@ +{ + "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 \"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}", + "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": { + "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" + } + } + } + } + } +} \ 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