From 1a87fd014a8fe2a51ec7a5fbd5c4f32403557480 Mon Sep 17 00:00:00 2001 From: lukebates123 Date: Fri, 27 Jan 2023 11:20:43 -0600 Subject: [PATCH 1/2] dell ansible --- canu/generate/switch/config/config.py | 9 +- canu/inventory/ansible.py | 30 ++ canu/inventory/plays/dell-os10.yml | 25 ++ .../switch/config/dellOS10_options.yaml | 305 +++++++++--------- .../1.3/dellmellanox/common/sw-cdu.primary.j2 | 10 +- 5 files changed, 220 insertions(+), 159 deletions(-) create mode 100644 canu/inventory/plays/dell-os10.yml diff --git a/canu/generate/switch/config/config.py b/canu/generate/switch/config/config.py index 3eb34e877..974e4a9c0 100644 --- a/canu/generate/switch/config/config.py +++ b/canu/generate/switch/config/config.py @@ -982,6 +982,8 @@ def error_check_preserve_config(switch_config): hier_v1.set_order_weight() for line in hier_v1.all_children_sorted(): switch_config_v1 += line.cisco_style_text() + "\n" + # for line in switch_config.split("\n"): + # switch_config_v1 += line + "\n" if preserve: preserve_lag_config = add_preserve_config(switch_config_v1) @@ -1414,7 +1416,12 @@ def get_switch_nodes( # sw-cdu ==> sw-spine elif switch_name.startswith("sw-cdu"): - lag_number = 255 + # dell has a max lag number of 128. + # We are keeping 255 for Aruba so we don't have to renumber LAGs. + if architecture == "network_v1": + lag_number = 110 + else: + lag_number = 255 is_primary, primary, secondary = switch_is_primary(switch_name) # sw-leaf-bmc ==> sw-spine diff --git a/canu/inventory/ansible.py b/canu/inventory/ansible.py index 485e7c7c7..5ab037af3 100644 --- a/canu/inventory/ansible.py +++ b/canu/inventory/ansible.py @@ -368,6 +368,31 @@ def get_aruba_vars(datasource=None, hostname=None): ] +def get_dellos10_vars(datasource=None, hostname=None): + """Get extra variables needed by Aruba ansible modules. + + Args: + datasource : Data from the datasource. + hostname : The hostname to query. + + Returns: + The ansible user defined in the datasource. + """ + # aruba needs extra variables for ansible community module + if "dell" in datasource["options"]["hosts"][hostname]["groups"]: + # arubanetworks.aoscx.aoscx for API + # network_cli for CLI/SSH + # httpapi legacy + ansible_network_os = "dellemc.os10.os10" + ansible_connection = "network_cli" + + return [ + {"ansible_network_os": ansible_network_os}, + {"ansible_connection": ansible_connection}, + {"authorize": True}, + ] + + def ansible_host(datasource=None, hostname=None): """Print a specific host inventory in JSON. @@ -410,6 +435,11 @@ def ansible_hostvars(datasource=None, hostname=None): for var in aruba_vars: ansible_inventory.update(var) + if "dell" in ansible_inventory["groups"]: + dell_vars = get_dellos10_vars(datasource, hostname) + for var in dell_vars: + ansible_inventory.update(var) + return ansible_inventory diff --git a/canu/inventory/plays/dell-os10.yml b/canu/inventory/plays/dell-os10.yml new file mode 100644 index 000000000..6ea9163bb --- /dev/null +++ b/canu/inventory/plays/dell-os10.yml @@ -0,0 +1,25 @@ +--- +- hosts: sw-cdu-001 + collections: + - dellemc.os10 + gather_facts: true + vars: + # This should be a template but for now, pass is an extra var path to whatever config is needed + # pass in the folder containing the switch configs or be in the same directory + config_folder: "" + switch_config: "{{ config_folder }}/{{ inventory_hostname }}.cfg" + + tasks: + - name: dry run + os10_config: + src: "{{ switch_config }}" + match: none + update: check + + # - name: upload config + # os10_config: + # src: "{{ switch_config }}" + # match: line + # update: check + # vars: + # ansible_command_timeout: 600 diff --git a/canu/validate/switch/config/dellOS10_options.yaml b/canu/validate/switch/config/dellOS10_options.yaml index 308c653c3..07c583b1e 100644 --- a/canu/validate/switch/config/dellOS10_options.yaml +++ b/canu/validate/switch/config/dellOS10_options.yaml @@ -20,167 +20,166 @@ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. --- - # Indicates the style of the configuration - style: dellOS10 - - # if there is a delta, negate the parents and re-write the parents with children - sectional_overwrite: [] - - # if there is a delta, overwrite these parents instead of one of their children - sectional_overwrite_no_negate: [] - - # The default order value is 500, with a range between 1 - 999. - # Commands with smaller order values float to the top in the order of execution. - # Commands with larger order values float to the bottom in the order of execution. - # Syntax Example: - # - lineage: - # - startswith: - # - no route-map - # order: 600 - ordering: - - lineage: +# Indicates the style of the configuration +style: dellOS10 + +# if there is a delta, negate the parents and re-write the parents with children +sectional_overwrite: [] + +# if there is a delta, overwrite these parents instead of one of their children +sectional_overwrite_no_negate: [] + +# The default order value is 500, with a range between 1 - 999. +# Commands with smaller order values float to the top in the order of execution. +# Commands with larger order values float to the bottom in the order of execution. +# Syntax Example: +# - lineage: +# - startswith: +# - no route-map +# order: 600 +ordering: + - lineage: - startswith: ip vrf - order: 4 - - lineage: - - startswith: no banner motd - order: 5 - - lineage: - - startswith: ip name-server - order: 6 - - lineage: - - startswith: hostname - order: 10 - - lineage: - - startswith: rest api - order: 15 - - lineage: - - startswith: spanning-tree mode - order: 20 - - lineage: - - startswith: interface vlan - order: 30 - - lineage: - - startswith: interface port-channel - order: 40 - - lineage: - - startswith: interface loopback - order: 45 - - lineage: - - startswith: interface mgmt - order: 50 - - lineage: - - startswith: interface ethernet - order: 60 - - lineage: - - startswith: ip access-list - order: 65 - - lineage: - - startswith: router ospf - order: 70 - - lineage: - - startswith: spanning-tree - order: 75 - - lineage: - - startswith: vlt-domain - order: 80 - - lineage: - - startswith: snmp - order: 90 - - lineage: - - startswith: ntp - order: 100 - - # adds +1 indent to lines following start_expression and removes the +1 indent for lines following end_expression - indent_adjust: [] - - parent_allows_duplicate_child: [] - - sectional_exiting: - # This rule is used in the hierarchical_configuration unit test for .add_section_exiting() - - lineage: + order: 4 + # - lineage: + # - startswith: no banner motd + # order: 5 + # - lineage: + # - startswith: ip name-server + # order: 6 + # - lineage: + # - startswith: hostname + # order: 10 + # - lineage: + # - startswith: rest api + # order: 15 + # - lineage: + # - startswith: spanning-tree mode + # order: 20 + # - lineage: + # - startswith: interface vlan + # order: 30 + # - lineage: + # - startswith: interface port-channel + # order: 40 + # - lineage: + # - startswith: interface loopback + # order: 45 + # - lineage: + # - startswith: interface mgmt + # order: 50 + # - lineage: + # - startswith: interface ethernet + # order: 60 + # - lineage: + # - startswith: ip access-list + # order: 65 + # - lineage: + # - startswith: router ospf + # order: 70 + # - lineage: + # - startswith: spanning-tree + # order: 75 + # - lineage: + # - startswith: vlt-domain + # order: 80 + # - lineage: + # - startswith: snmp + # order: 90 + # - lineage: + # - startswith: ntp + # order: 100 + +# adds +1 indent to lines following start_expression and removes the +1 indent for lines following end_expression +indent_adjust: [] + +parent_allows_duplicate_child: [] + +sectional_exiting: + # This rule is used in the hierarchical_configuration unit test for .add_section_exiting() + - lineage: - startswith: router bgp - startswith: template peer-policy - exit_text: exit-peer-policy - - lineage: + exit_text: exit-peer-policy + - lineage: - startswith: router bgp - startswith: template peer-session - exit_text: exit-peer-session - - lineage: + exit_text: exit-peer-session + - lineage: - startswith: router bgp - startswith: address-family - exit_text: exit-address-family - - # substitions against the full multi-line config text - full_text_sub: [] - #- search: 'banner\s(exec|motd)\s(\S)\n(.*\n){1,}(\2)' - # replace: '' - #- search: 'banner\s(exec|motd)\s(\S.).+\n(.*\n){1,}.*(\2)' - # replace: '' - #- search: 'banner\s(exec|motd)\s(\S.)\n(.*\n){1,}(\2)' - # replace: '' - - # substitions against each line of the config text - per_line_sub: - - search: ^Building configuration.* - replace: '' - - search: ^Current configuration.* - replace: '' - - search: ^! Last configuration change.* - replace: '' - - search: ^! NVRAM config last updated.* - replace: '' - - search: ^ntp clock-period .* - replace: '' - - search: ^version.* - replace: '' - - search: ^ logging event link-status$ - replace: '' - - search: ^ logging event subif-link-status$ - replace: '' - - search: ^\s*ipv6 unreachables disable$ - replace: '' - - search: ^end$ - replace: '' - - search: '^\s*[#!].*' - replace: '' - - search: ^ no ip address - replace: '' - - search: ^ exit-peer-policy - replace: '' - - search: ^ exit-peer-session - replace: '' - - search: ^ exit-address-family - replace: '' - - search: ^crypto key generate rsa general-keys.*$ - replace: '' - - idempotent_commands_blacklist: [] - - # These commands do not require negation, they simply overwrite themselves - # Example Syntax - # - lineage: - # - startswith: interface - # - startswith: description - idempotent_commands: - - lineage: + exit_text: exit-address-family + +# substitions against the full multi-line config text +full_text_sub: [] +#- search: 'banner\s(exec|motd)\s(\S)\n(.*\n){1,}(\2)' +# replace: '' +#- search: 'banner\s(exec|motd)\s(\S.).+\n(.*\n){1,}.*(\2)' +# replace: '' +#- search: 'banner\s(exec|motd)\s(\S.)\n(.*\n){1,}(\2)' +# replace: '' + +# substitions against each line of the config text +per_line_sub: + [] + # - search: ^Building configuration.* + # replace: "" + # - search: ^Current configuration.* + # replace: "" + # - search: ^! Last configuration change.* + # replace: "" + # - search: ^! NVRAM config last updated.* + # replace: "" + # - search: ^ntp clock-period .* + # replace: "" + # - search: ^version.* + # replace: "" + # - search: ^ logging event link-status$ + # replace: "" + # - search: ^ logging event subif-link-status$ + # replace: "" + # - search: ^\s*ipv6 unreachables disable$ + # replace: "" + # - search: ^end$ + # replace: "" + # - search: '^\s*[#].*' + # replace: "" + # - search: ^ exit-peer-policy + # replace: "" + # - search: ^ exit-peer-session + # replace: "" + # - search: ^ exit-address-family + # replace: "" + # - search: ^crypto key generate rsa general-keys.*$ + # replace: "" + +idempotent_commands_blacklist: [] + +# These commands do not require negation, they simply overwrite themselves +# Example Syntax +# - lineage: +# - startswith: interface +# - startswith: description +idempotent_commands: + - lineage: - startswith: vlan - startswith: name - - lineage: + - lineage: - startswith: interface - startswith: - - description - - ip address - - switchport trunk allowed - # Default when expression: list of expressions - negation_default_when: [] - - # Negate substitutions: expression -> negate with - # Example Syntax: - # - lineage: - # - startswith: route-map - # - startswith: description - # use: no description - negation_negate_with: - - lineage: - - startswith: banner motd - use: no banner motd \ No newline at end of file + - description + - ip address + - switchport trunk allowed +# Default when expression: list of expressions +negation_default_when: [] + +# Negate substitutions: expression -> negate with +# Example Syntax: +# - lineage: +# - startswith: route-map +# - startswith: description +# use: no description +negation_negate_with: + - lineage: + - startswith: banner motd + use: no banner motd diff --git a/network_modeling/configs/templates/1.3/dellmellanox/common/sw-cdu.primary.j2 b/network_modeling/configs/templates/1.3/dellmellanox/common/sw-cdu.primary.j2 index b737c79cf..2d0db6619 100644 --- a/network_modeling/configs/templates/1.3/dellmellanox/common/sw-cdu.primary.j2 +++ b/network_modeling/configs/templates/1.3/dellmellanox/common/sw-cdu.primary.j2 @@ -3,7 +3,7 @@ ip vrf Customer ip name-server {{ variables.NMNLB_DNS }} hostname {{ variables.HOSTNAME }} -{%- include '1.3/dellmellanox/common/banner-motd.j2' %} +{%- include '1.3/dellmellanox/common/banner-motd-dell.j2' %} rest api restconf spanning-tree mode mst @@ -87,9 +87,6 @@ interface mgmt1/1/1 router ospf 1 router-id {{ variables.LOOPBACK_IP }} -router ospf 2 vrf Customer - router-id {{ variables.LOOPBACK_IP }} - interface ethernet1/1/{{ variables.VSX_ISL_PORT1 }} no shutdown no switchport @@ -102,9 +99,12 @@ interface ethernet1/1/{{ variables.VSX_ISL_PORT2 }} flowcontrol receive off flowcontrol transmit off +router ospf 2 vrf Customer + router-id {{ variables.LOOPBACK_IP }} + vlt-domain 1 backup destination 192.168.255.243 - discovery-interface ethernet1/1/{{ variables.VSX_ISL_PORT1 }},1/1/{{ variables.VSX_ISL_PORT2 }} + discovery-interface ethernet1/1/{{ variables.VSX_ISL_PORT1 }}-1/1/{{ variables.VSX_ISL_PORT2 }} peer-routing primary-priority 4096 vlt-mac 00:11:22:aa:bb:cc From 6f252c505cb0f892373ca34b505cdf4c3e17fbd1 Mon Sep 17 00:00:00 2001 From: lukebates123 Date: Mon, 27 Feb 2023 15:20:31 -0600 Subject: [PATCH 2/2] testing --- canu/inventory/plays/dell-os10.yml | 12 +- canu/inventory/plays/mellanox-onyx.yml | 15 + sls_input_file.json | 1851 ++++++++++++++++++++++++ sw-leaf-bmc-001.cfg | 851 +++++++++++ sw-spine-001.cfg | 361 +++++ 5 files changed, 3086 insertions(+), 4 deletions(-) create mode 100644 canu/inventory/plays/mellanox-onyx.yml create mode 100644 sls_input_file.json create mode 100644 sw-leaf-bmc-001.cfg create mode 100644 sw-spine-001.cfg diff --git a/canu/inventory/plays/dell-os10.yml b/canu/inventory/plays/dell-os10.yml index 6ea9163bb..62a03acfc 100644 --- a/canu/inventory/plays/dell-os10.yml +++ b/canu/inventory/plays/dell-os10.yml @@ -1,5 +1,5 @@ --- -- hosts: sw-cdu-001 +- hosts: sw-leaf-bmc-001 collections: - dellemc.os10 gather_facts: true @@ -10,11 +10,15 @@ switch_config: "{{ config_folder }}/{{ inventory_hostname }}.cfg" tasks: - - name: dry run + - name: upload config os10_config: src: "{{ switch_config }}" - match: none - update: check + match: line + update: merge + replace: line + save: true + vars: + ansible_command_timeout: 600 # - name: upload config # os10_config: diff --git a/canu/inventory/plays/mellanox-onyx.yml b/canu/inventory/plays/mellanox-onyx.yml new file mode 100644 index 000000000..496e60939 --- /dev/null +++ b/canu/inventory/plays/mellanox-onyx.yml @@ -0,0 +1,15 @@ +- hosts: sw-spine-001 + collections: + - mellanox.onyx + vars: + # This should be a template but for now, pass is an extra var path to whatever config is needed + # pass in the folder containing the switch configs or be in the same directory + config_folder: "" + switch_config: "{{ config_folder }}/{{ inventory_hostname }}.cfg" + + tasks: + - name: command + onyx_command: + username: admin + password: admin + commands: show version diff --git a/sls_input_file.json b/sls_input_file.json new file mode 100644 index 000000000..123a32c67 --- /dev/null +++ b/sls_input_file.json @@ -0,0 +1,1851 @@ +{ + "Hardware": { + "x3000": { + "Parent": "s0", + "Xname": "x3000", + "Type": "comptype_cabinet", + "Class": "River", + "TypeString": "Cabinet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Networks": { + "cn": { + "HMN": { + "CIDR": "10.107.0.0/22", + "Gateway": "10.107.0.1", + "VLan": 1513 + }, + "NMN": { + "CIDR": "10.106.0.0/22", + "Gateway": "10.106.0.1", + "VLan": 1770 + } + }, + "ncn": { + "HMN": { + "CIDR": "10.107.0.0/22", + "Gateway": "10.107.0.1", + "VLan": 1513 + }, + "NMN": { + "CIDR": "10.106.0.0/22", + "Gateway": "10.106.0.1", + "VLan": 1770 + } + } + } + } + }, + "x3000c0h23s1": { + "Parent": "x3000c0h23", + "Xname": "x3000c0h23s1", + "Type": "comptype_hl_switch", + "Class": "River", + "TypeString": "MgmtHLSwitch", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "sw-spine-001" + ], + "Brand": "Mellanox", + "IP4addr": "10.254.0.2" + } + }, + "x3000c0h23s2": { + "Parent": "x3000c0h23", + "Xname": "x3000c0h23s2", + "Type": "comptype_hl_switch", + "Class": "River", + "TypeString": "MgmtHLSwitch", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "sw-spine-002" + ], + "Brand": "Mellanox", + "IP4addr": "10.254.0.3" + } + }, + "x3000c0r24b0": { + "Parent": "x3000c0r24", + "Xname": "x3000c0r24b0", + "Type": "comptype_rtr_bmc", + "Class": "River", + "TypeString": "RouterBMC", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Password": "vault://hms-creds/x3000c0r24b0", + "Username": "vault://hms-creds/x3000c0r24b0" + } + }, + "x3000c0s11b0n0": { + "Parent": "x3000c0s11b0", + "Xname": "x3000c0s11b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-w003" + ], + "NID": 100006, + "Role": "Management", + "SubRole": "Worker" + } + }, + "x3000c0s13b0n0": { + "Parent": "x3000c0s13b0", + "Xname": "x3000c0s13b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-s001" + ], + "NID": 100008, + "Role": "Management", + "SubRole": "Storage" + } + }, + "x3000c0s15b0n0": { + "Parent": "x3000c0s15b0", + "Xname": "x3000c0s15b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-s002" + ], + "NID": 100009, + "Role": "Management", + "SubRole": "Storage" + } + }, + "x3000c0s17b0n0": { + "Parent": "x3000c0s17b0", + "Xname": "x3000c0s17b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-s003" + ], + "NID": 100010, + "Role": "Management", + "SubRole": "Storage" + } + }, + "x3000c0s19b1n0": { + "Parent": "x3000c0s19b1", + "Xname": "x3000c0s19b1n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "nid000001" + ], + "NID": 1, + "Role": "Compute" + } + }, + "x3000c0s19b2n0": { + "Parent": "x3000c0s19b2", + "Xname": "x3000c0s19b2n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "nid000002" + ], + "NID": 2, + "Role": "Compute" + } + }, + "x3000c0s19b3n0": { + "Parent": "x3000c0s19b3", + "Xname": "x3000c0s19b3n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "nid000003" + ], + "NID": 3, + "Role": "Compute" + } + }, + "x3000c0s19b4n0": { + "Parent": "x3000c0s19b4", + "Xname": "x3000c0s19b4n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "nid000004" + ], + "NID": 4, + "Role": "Compute" + } + }, + "x3000c0s19b999": { + "Parent": "x3000c0s19", + "Xname": "x3000c0s19b999", + "Type": "comptype_ncard", + "Class": "River", + "TypeString": "NodeBMC", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000" + }, + "x3000c0s1b0n0": { + "Parent": "x3000c0s1b0", + "Xname": "x3000c0s1b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-m001" + ], + "NID": 100001, + "Role": "Management", + "SubRole": "Master" + } + }, + "x3000c0s27b0n0": { + "Parent": "x3000c0s27b0", + "Xname": "x3000c0s27b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "uan01" + ], + "Role": "Application", + "SubRole": "UAN" + } + }, + "x3000c0s29b0n0": { + "Parent": "x3000c0s29b0", + "Xname": "x3000c0s29b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-w004" + ], + "NID": 100007, + "Role": "Management", + "SubRole": "Worker" + } + }, + "x3000c0s3b0n0": { + "Parent": "x3000c0s3b0", + "Xname": "x3000c0s3b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-m002" + ], + "NID": 100002, + "Role": "Management", + "SubRole": "Master" + } + }, + "x3000c0s5b0n0": { + "Parent": "x3000c0s5b0", + "Xname": "x3000c0s5b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-m003" + ], + "NID": 100003, + "Role": "Management", + "SubRole": "Master" + } + }, + "x3000c0s7b0n0": { + "Parent": "x3000c0s7b0", + "Xname": "x3000c0s7b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-w001" + ], + "NID": 100004, + "Role": "Management", + "SubRole": "Worker" + } + }, + "x3000c0s9b0n0": { + "Parent": "x3000c0s9b0", + "Xname": "x3000c0s9b0n0", + "Type": "comptype_node", + "Class": "River", + "TypeString": "Node", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "ncn-w002" + ], + "NID": 100005, + "Role": "Management", + "SubRole": "Worker" + } + }, + "x3000c0w22": { + "Parent": "x3000c0", + "Children": [ + "x3000c0w22j18", + "x3000c0w22j25", + "x3000c0w22j26", + "x3000c0w22j27", + "x3000c0w22j28", + "x3000c0w22j29", + "x3000c0w22j30", + "x3000c0w22j31", + "x3000c0w22j32", + "x3000c0w22j33", + "x3000c0w22j34", + "x3000c0w22j35", + "x3000c0w22j36", + "x3000c0w22j37", + "x3000c0w22j48" + ], + "Xname": "x3000c0w22", + "Type": "comptype_mgmt_switch", + "Class": "River", + "TypeString": "MgmtSwitch", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "Aliases": [ + "sw-leaf-bmc-001" + ], + "Brand": "Dell", + "IP4addr": "10.254.0.4", + "SNMPAuthPassword": "vault://hms-creds/x3000c0w22", + "SNMPAuthProtocol": "MD5", + "SNMPPrivPassword": "vault://hms-creds/x3000c0w22", + "SNMPPrivProtocol": "DES", + "SNMPUsername": "testuser" + } + }, + "x3000c0w22j18": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j18", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s29b0" + ], + "VendorName": "ethernet1/1/18" + } + }, + "x3000c0w22j25": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j25", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s7b0" + ], + "VendorName": "ethernet1/1/25" + } + }, + "x3000c0w22j26": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j26", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s3b0" + ], + "VendorName": "ethernet1/1/26" + } + }, + "x3000c0w22j27": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j27", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s5b0" + ], + "VendorName": "ethernet1/1/27" + } + }, + "x3000c0w22j28": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j28", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s9b0" + ], + "VendorName": "ethernet1/1/28" + } + }, + "x3000c0w22j29": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j29", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s11b0" + ], + "VendorName": "ethernet1/1/29" + } + }, + "x3000c0w22j30": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j30", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s13b0" + ], + "VendorName": "ethernet1/1/30" + } + }, + "x3000c0w22j31": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j31", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s15b0" + ], + "VendorName": "ethernet1/1/31" + } + }, + "x3000c0w22j32": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j32", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s17b0" + ], + "VendorName": "ethernet1/1/32" + } + }, + "x3000c0w22j33": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j33", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s19b1" + ], + "VendorName": "ethernet1/1/33" + } + }, + "x3000c0w22j34": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j34", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s19b2" + ], + "VendorName": "ethernet1/1/34" + } + }, + "x3000c0w22j35": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j35", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s19b3" + ], + "VendorName": "ethernet1/1/35" + } + }, + "x3000c0w22j36": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j36", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s19b4" + ], + "VendorName": "ethernet1/1/36" + } + }, + "x3000c0w22j37": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j37", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0s27b0" + ], + "VendorName": "ethernet1/1/37" + } + }, + "x3000c0w22j48": { + "Parent": "x3000c0w22", + "Xname": "x3000c0w22j48", + "Type": "comptype_mgmt_switch_connector", + "Class": "River", + "TypeString": "MgmtSwitchConnector", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.647642 +0000 +0000", + "ExtraProperties": { + "NodeNics": [ + "x3000c0r24b0" + ], + "VendorName": "ethernet1/1/48" + } + } + }, + "Networks": { + "BICAN": { + "Name": "BICAN", + "FullName": "SystemDefaultRoute points the network name of the default route", + "IPRanges": [ + "0.0.0.0/0" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "0.0.0.0/0", + "MTU": 9000, + "Subnets": [], + "SystemDefaultRoute": "CAN", + "VlanRange": [ + 0 + ] + } + }, + "CAN": { + "Name": "CAN", + "FullName": "Customer Access Network", + "IPRanges": [ + "10.102.3.128/26" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.102.3.128/26", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.102.3.160/27", + "FullName": "CAN Dynamic MetalLB", + "Gateway": "10.102.3.161", + "MetalLBPoolName": "customer-access", + "Name": "can_metallb_address_pool", + "VlanID": 6 + }, + { + "CIDR": "10.102.3.128/26", + "DHCPEnd": "10.102.3.159", + "DHCPStart": "10.102.3.144", + "FullName": "CAN Bootstrap DHCP Subnet", + "Gateway": "10.102.3.129", + "IPReservations": [ + { + "IPAddress": "10.102.3.130", + "Name": "can-switch-1" + }, + { + "IPAddress": "10.102.3.131", + "Name": "can-switch-2" + }, + { + "Comment": "k8s-virtual-ip", + "IPAddress": "10.102.3.132", + "Name": "kubeapi-vip" + }, + { + "Aliases": [ + "ncn-m001-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s1b0n0", + "IPAddress": "10.102.3.133", + "Name": "ncn-m001" + }, + { + "Aliases": [ + "ncn-m002-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s3b0n0", + "IPAddress": "10.102.3.134", + "Name": "ncn-m002" + }, + { + "Aliases": [ + "ncn-m003-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s5b0n0", + "IPAddress": "10.102.3.135", + "Name": "ncn-m003" + }, + { + "Aliases": [ + "ncn-w001-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s7b0n0", + "IPAddress": "10.102.3.136", + "Name": "ncn-w001" + }, + { + "Aliases": [ + "ncn-w002-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s9b0n0", + "IPAddress": "10.102.3.137", + "Name": "ncn-w002" + }, + { + "Aliases": [ + "ncn-w003-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s11b0n0", + "IPAddress": "10.102.3.138", + "Name": "ncn-w003" + }, + { + "Aliases": [ + "ncn-w004-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s29b0n0", + "IPAddress": "10.102.3.139", + "Name": "ncn-w004" + }, + { + "Aliases": [ + "ncn-s001-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s13b0n0", + "IPAddress": "10.102.3.140", + "Name": "ncn-s001" + }, + { + "Aliases": [ + "ncn-s002-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s15b0n0", + "IPAddress": "10.102.3.141", + "Name": "ncn-s002" + }, + { + "Aliases": [ + "ncn-s003-can", + "time-can", + "time-can.local" + ], + "Comment": "x3000c0s17b0n0", + "IPAddress": "10.102.3.142", + "Name": "ncn-s003" + }, + { + "Comment": "x3000c0s27b0n0", + "IPAddress": "10.102.3.143", + "Name": "uan01" + } + ], + "Name": "bootstrap_dhcp", + "VlanID": 6 + } + ], + "VlanRange": [ + 6 + ] + } + }, + "CMN": { + "Name": "CMN", + "FullName": "Customer Management Network", + "IPRanges": [ + "10.102.3.0/25" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.102.3.0/25", + "MTU": 9000, + "MyASN": 65532, + "PeerASN": 65533, + "Subnets": [ + { + "CIDR": "10.102.3.60/30", + "FullName": "CMN Static Pool MetalLB", + "Gateway": "10.102.3.61", + "IPReservations": [ + { + "Comment": "site to system lookups", + "IPAddress": "10.102.3.61", + "Name": "external-dns" + } + ], + "MetalLBPoolName": "customer-management-static", + "Name": "cmn_metallb_static_pool", + "VlanID": 7 + }, + { + "CIDR": "10.102.3.64/26", + "FullName": "CMN Dynamic MetalLB", + "Gateway": "10.102.3.65", + "MetalLBPoolName": "customer-management", + "Name": "cmn_metallb_address_pool", + "VlanID": 7 + }, + { + "CIDR": "10.102.3.0/25", + "FullName": "CMN Management Network Infrastructure", + "Gateway": "10.102.3.1", + "IPReservations": [ + { + "Comment": "x3000c0h23s1", + "IPAddress": "10.100.252.11", + "Name": "sw-spine-001" + }, + { + "Comment": "x3000c0h23s2", + "IPAddress": "10.102.3.3", + "Name": "sw-spine-002" + }, + { + "Comment": "x3000c0w22", + "IPAddress": "10.100.252.63", + "Name": "sw-leaf-bmc-001" + } + ], + "Name": "network_hardware", + "VlanID": 7 + }, + { + "CIDR": "10.102.3.16/25", + "DHCPEnd": "10.102.3.59", + "DHCPStart": "10.102.3.29", + "FullName": "CMN Bootstrap DHCP Subnet", + "Gateway": "10.102.3.1", + "IPReservations": [ + { + "Comment": "k8s-virtual-ip", + "IPAddress": "10.102.3.18", + "Name": "kubeapi-vip" + }, + { + "Aliases": [ + "ncn-m001-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s1b0n0", + "IPAddress": "10.102.3.19", + "Name": "ncn-m001" + }, + { + "Aliases": [ + "ncn-m002-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s3b0n0", + "IPAddress": "10.102.3.20", + "Name": "ncn-m002" + }, + { + "Aliases": [ + "ncn-m003-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s5b0n0", + "IPAddress": "10.102.3.21", + "Name": "ncn-m003" + }, + { + "Aliases": [ + "ncn-w001-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s7b0n0", + "IPAddress": "10.102.3.22", + "Name": "ncn-w001" + }, + { + "Aliases": [ + "ncn-w002-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s9b0n0", + "IPAddress": "10.102.3.23", + "Name": "ncn-w002" + }, + { + "Aliases": [ + "ncn-w003-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s11b0n0", + "IPAddress": "10.102.3.24", + "Name": "ncn-w003" + }, + { + "Aliases": [ + "ncn-w004-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s29b0n0", + "IPAddress": "10.102.3.25", + "Name": "ncn-w004" + }, + { + "Aliases": [ + "ncn-s001-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s13b0n0", + "IPAddress": "10.102.3.26", + "Name": "ncn-s001" + }, + { + "Aliases": [ + "ncn-s002-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s15b0n0", + "IPAddress": "10.102.3.27", + "Name": "ncn-s002" + }, + { + "Aliases": [ + "ncn-s003-cmn", + "time-cmn", + "time-cmn.local" + ], + "Comment": "x3000c0s17b0n0", + "IPAddress": "10.102.3.28", + "Name": "ncn-s003" + } + ], + "Name": "bootstrap_dhcp", + "VlanID": 7 + } + ], + "VlanRange": [ + 7 + ] + } + }, + "HMN": { + "Name": "HMN", + "FullName": "Hardware Management Network", + "IPRanges": [ + "10.254.0.0/17" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.254.0.0/17", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.254.0.0/17", + "FullName": "HMN Management Network Infrastructure", + "Gateway": "10.254.0.1", + "IPReservations": [ + { + "Comment": "x3000c0h23s1", + "IPAddress": "10.254.0.2", + "Name": "sw-spine-001" + }, + { + "Comment": "x3000c0h23s2", + "IPAddress": "10.254.0.3", + "Name": "sw-spine-002" + }, + { + "Comment": "x3000c0w22", + "IPAddress": "10.254.0.4", + "Name": "sw-leaf-bmc-001" + } + ], + "Name": "network_hardware", + "VlanID": 4 + }, + { + "CIDR": "10.254.1.0/17", + "DHCPEnd": "10.254.1.223", + "DHCPStart": "10.254.1.23", + "FullName": "HMN Bootstrap DHCP Subnet", + "Gateway": "10.254.0.1", + "IPReservations": [ + { + "Comment": "k8s-virtual-ip", + "IPAddress": "10.254.1.2", + "Name": "kubeapi-vip" + }, + { + "Aliases": [ + "ncn-m001-mgmt" + ], + "Comment": "x3000c0s1b0", + "IPAddress": "10.254.1.3", + "Name": "x3000c0s1b0" + }, + { + "Aliases": [ + "ncn-m001-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s1b0n0", + "IPAddress": "10.254.1.4", + "Name": "ncn-m001" + }, + { + "Aliases": [ + "ncn-m002-mgmt" + ], + "Comment": "x3000c0s3b0", + "IPAddress": "10.254.1.5", + "Name": "x3000c0s3b0" + }, + { + "Aliases": [ + "ncn-m002-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s3b0n0", + "IPAddress": "10.254.1.6", + "Name": "ncn-m002" + }, + { + "Aliases": [ + "ncn-m003-mgmt" + ], + "Comment": "x3000c0s5b0", + "IPAddress": "10.254.1.7", + "Name": "x3000c0s5b0" + }, + { + "Aliases": [ + "ncn-m003-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s5b0n0", + "IPAddress": "10.254.1.8", + "Name": "ncn-m003" + }, + { + "Aliases": [ + "ncn-w001-mgmt" + ], + "Comment": "x3000c0s7b0", + "IPAddress": "10.254.1.9", + "Name": "x3000c0s7b0" + }, + { + "Aliases": [ + "ncn-w001-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s7b0n0", + "IPAddress": "10.254.1.10", + "Name": "ncn-w001" + }, + { + "Aliases": [ + "ncn-w002-mgmt" + ], + "Comment": "x3000c0s9b0", + "IPAddress": "10.254.1.11", + "Name": "x3000c0s9b0" + }, + { + "Aliases": [ + "ncn-w002-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s9b0n0", + "IPAddress": "10.254.1.12", + "Name": "ncn-w002" + }, + { + "Aliases": [ + "ncn-w003-mgmt" + ], + "Comment": "x3000c0s11b0", + "IPAddress": "10.254.1.13", + "Name": "x3000c0s11b0" + }, + { + "Aliases": [ + "ncn-w003-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s11b0n0", + "IPAddress": "10.254.1.14", + "Name": "ncn-w003" + }, + { + "Aliases": [ + "ncn-w004-mgmt" + ], + "Comment": "x3000c0s29b0", + "IPAddress": "10.254.1.15", + "Name": "x3000c0s29b0" + }, + { + "Aliases": [ + "ncn-w004-hmn", + "time-hmn", + "time-hmn.local" + ], + "Comment": "x3000c0s29b0n0", + "IPAddress": "10.254.1.16", + "Name": "ncn-w004" + }, + { + "Aliases": [ + "ncn-s001-mgmt" + ], + "Comment": "x3000c0s13b0", + "IPAddress": "10.254.1.17", + "Name": "x3000c0s13b0" + }, + { + "Aliases": [ + "ncn-s001-hmn", + "time-hmn", + "time-hmn.local", + "rgw-vip.hmn" + ], + "Comment": "x3000c0s13b0n0", + "IPAddress": "10.254.1.18", + "Name": "ncn-s001" + }, + { + "Aliases": [ + "ncn-s002-mgmt" + ], + "Comment": "x3000c0s15b0", + "IPAddress": "10.254.1.19", + "Name": "x3000c0s15b0" + }, + { + "Aliases": [ + "ncn-s002-hmn", + "time-hmn", + "time-hmn.local", + "rgw-vip.hmn" + ], + "Comment": "x3000c0s15b0n0", + "IPAddress": "10.254.1.20", + "Name": "ncn-s002" + }, + { + "Aliases": [ + "ncn-s003-mgmt" + ], + "Comment": "x3000c0s17b0", + "IPAddress": "10.254.1.21", + "Name": "x3000c0s17b0" + }, + { + "Aliases": [ + "ncn-s003-hmn", + "time-hmn", + "time-hmn.local", + "rgw-vip.hmn" + ], + "Comment": "x3000c0s17b0n0", + "IPAddress": "10.254.1.22", + "Name": "ncn-s003" + } + ], + "Name": "bootstrap_dhcp", + "VlanID": 4 + } + ], + "VlanRange": [ + 4 + ] + } + }, + "HMNLB": { + "Name": "HMNLB", + "FullName": "Hardware Management Network LoadBalancers", + "IPRanges": [ + "10.94.100.0/24" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.94.100.0/24", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.94.100.0/24", + "FullName": "HMN MetalLB", + "Gateway": "10.94.100.1", + "IPReservations": [ + { + "Aliases": [ + "rsyslog-agg-service" + ], + "Comment": "rsyslog-agg-service", + "IPAddress": "10.94.100.72", + "Name": "rsyslog-aggregator" + }, + { + "Aliases": [ + "tftp-service" + ], + "Comment": "tftp-service", + "IPAddress": "10.94.100.60", + "Name": "cray-tftp" + }, + { + "Aliases": [ + "unbound" + ], + "Comment": "unbound", + "IPAddress": "10.94.100.225", + "Name": "unbound" + }, + { + "Aliases": [ + "docker_registry_service" + ], + "Comment": "docker_registry_service", + "IPAddress": "10.94.100.73", + "Name": "docker-registry" + }, + { + "IPAddress": "10.94.100.71", + "Name": "istio-ingressgateway" + } + ], + "MetalLBPoolName": "hardware-management", + "Name": "hmn_metallb_address_pool", + "VlanID": 4 + } + ], + "VlanRange": null + } + }, + "HMN_RVR": { + "Name": "HMN_RVR", + "FullName": "River Compute Hardware Management Network", + "IPRanges": [ + "10.107.0.0/17" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.107.0.0/17", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.107.0.0/22", + "DHCPEnd": "10.107.3.254", + "DHCPStart": "10.107.0.10", + "FullName": "", + "Gateway": "10.107.0.1", + "Name": "cabinet_3000", + "VlanID": 1513 + } + ], + "VlanRange": [ + 1513, + 1513 + ] + } + }, + "HSN": { + "Name": "HSN", + "FullName": "High Speed Network", + "IPRanges": [ + "10.253.0.0/16" + ], + "Type": "slingshot10", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.253.0.0/16", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.253.0.0/16", + "FullName": "HSN Base Subnet", + "Gateway": "10.253.0.1", + "Name": "hsn_base_subnet", + "VlanID": 613 + } + ], + "VlanRange": [ + 613, + 868 + ] + } + }, + "MTL": { + "Name": "MTL", + "FullName": "Provisioning Network (untagged)", + "IPRanges": [ + "10.1.1.0/16" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.1.1.0/16", + "Comment": "This network is only valid for the NCNs", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.1.0.0/16", + "FullName": "MTL Management Network Infrastructure", + "Gateway": "10.1.0.1", + "IPReservations": [ + { + "Comment": "x3000c0h23s1", + "IPAddress": "10.1.0.2", + "Name": "sw-spine-001" + }, + { + "Comment": "x3000c0h23s2", + "IPAddress": "10.1.0.3", + "Name": "sw-spine-002" + }, + { + "Comment": "x3000c0w22", + "IPAddress": "10.1.0.4", + "Name": "sw-leaf-bmc-001" + } + ], + "Name": "network_hardware", + "VlanID": 0 + }, + { + "CIDR": "10.1.1.0/16", + "DHCPEnd": "10.1.1.212", + "DHCPStart": "10.1.1.12", + "FullName": "MTL Bootstrap DHCP Subnet", + "Gateway": "10.1.0.1", + "IPReservations": [ + { + "Aliases": [ + "ncn-m001-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s1b0n0", + "IPAddress": "10.1.1.2", + "Name": "ncn-m001" + }, + { + "Aliases": [ + "ncn-m002-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s3b0n0", + "IPAddress": "10.1.1.3", + "Name": "ncn-m002" + }, + { + "Aliases": [ + "ncn-m003-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s5b0n0", + "IPAddress": "10.1.1.4", + "Name": "ncn-m003" + }, + { + "Aliases": [ + "ncn-w001-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s7b0n0", + "IPAddress": "10.1.1.5", + "Name": "ncn-w001" + }, + { + "Aliases": [ + "ncn-w002-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s9b0n0", + "IPAddress": "10.1.1.6", + "Name": "ncn-w002" + }, + { + "Aliases": [ + "ncn-w003-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s11b0n0", + "IPAddress": "10.1.1.7", + "Name": "ncn-w003" + }, + { + "Aliases": [ + "ncn-w004-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s29b0n0", + "IPAddress": "10.1.1.8", + "Name": "ncn-w004" + }, + { + "Aliases": [ + "ncn-s001-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s13b0n0", + "IPAddress": "10.1.1.9", + "Name": "ncn-s001" + }, + { + "Aliases": [ + "ncn-s002-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s15b0n0", + "IPAddress": "10.1.1.10", + "Name": "ncn-s002" + }, + { + "Aliases": [ + "ncn-s003-mtl", + "time-mtl", + "time-mtl.local" + ], + "Comment": "x3000c0s17b0n0", + "IPAddress": "10.1.1.11", + "Name": "ncn-s003" + } + ], + "Name": "bootstrap_dhcp", + "VlanID": 0 + } + ], + "VlanRange": [ + 0 + ] + } + }, + "NMN": { + "Name": "NMN", + "FullName": "Node Management Network", + "IPRanges": [ + "10.252.0.0/17" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.252.0.0/17", + "MTU": 9000, + "MyASN": 65531, + "PeerASN": 65533, + "Subnets": [ + { + "CIDR": "10.252.0.0/17", + "FullName": "NMN Management Network Infrastructure", + "Gateway": "10.252.0.1", + "IPReservations": [ + { + "Comment": "x3000c0h23s1", + "IPAddress": "10.252.0.2", + "Name": "sw-spine-001" + }, + { + "Comment": "x3000c0h23s2", + "IPAddress": "10.252.0.3", + "Name": "sw-spine-002" + }, + { + "Comment": "x3000c0w22", + "IPAddress": "10.252.0.4", + "Name": "sw-leaf-bmc-001" + } + ], + "Name": "network_hardware", + "VlanID": 2 + }, + { + "CIDR": "10.252.1.0/17", + "DHCPEnd": "10.252.1.214", + "DHCPStart": "10.252.1.14", + "FullName": "NMN Bootstrap DHCP Subnet", + "Gateway": "10.252.0.1", + "IPReservations": [ + { + "Aliases": [ + "kubeapi-vip.local" + ], + "Comment": "k8s-virtual-ip", + "IPAddress": "10.252.1.2", + "Name": "kubeapi-vip" + }, + { + "Aliases": [ + "rgw-vip.local" + ], + "Comment": "rgw-virtual-ip", + "IPAddress": "10.252.1.3", + "Name": "rgw-vip" + }, + { + "Aliases": [ + "ncn-m001-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s1b0n0", + "ncn-m001.local" + ], + "Comment": "x3000c0s1b0n0", + "IPAddress": "10.252.1.4", + "Name": "ncn-m001" + }, + { + "Aliases": [ + "ncn-m002-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s3b0n0", + "ncn-m002.local" + ], + "Comment": "x3000c0s3b0n0", + "IPAddress": "10.252.1.5", + "Name": "ncn-m002" + }, + { + "Aliases": [ + "ncn-m003-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s5b0n0", + "ncn-m003.local" + ], + "Comment": "x3000c0s5b0n0", + "IPAddress": "10.252.1.6", + "Name": "ncn-m003" + }, + { + "Aliases": [ + "ncn-w001-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s7b0n0", + "ncn-w001.local" + ], + "Comment": "x3000c0s7b0n0", + "IPAddress": "10.252.1.7", + "Name": "ncn-w001" + }, + { + "Aliases": [ + "ncn-w002-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s9b0n0", + "ncn-w002.local" + ], + "Comment": "x3000c0s9b0n0", + "IPAddress": "10.252.1.8", + "Name": "ncn-w002" + }, + { + "Aliases": [ + "ncn-w003-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s11b0n0", + "ncn-w003.local" + ], + "Comment": "x3000c0s11b0n0", + "IPAddress": "10.252.1.9", + "Name": "ncn-w003" + }, + { + "Aliases": [ + "ncn-w004-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s29b0n0", + "ncn-w004.local" + ], + "Comment": "x3000c0s29b0n0", + "IPAddress": "10.252.1.10", + "Name": "ncn-w004" + }, + { + "Aliases": [ + "ncn-s001-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s13b0n0", + "ncn-s001.local" + ], + "Comment": "x3000c0s13b0n0", + "IPAddress": "10.252.1.11", + "Name": "ncn-s001" + }, + { + "Aliases": [ + "ncn-s002-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s15b0n0", + "ncn-s002.local" + ], + "Comment": "x3000c0s15b0n0", + "IPAddress": "10.252.1.12", + "Name": "ncn-s002" + }, + { + "Aliases": [ + "ncn-s003-nmn", + "time-nmn", + "time-nmn.local", + "x3000c0s17b0n0", + "ncn-s003.local" + ], + "Comment": "x3000c0s17b0n0", + "IPAddress": "10.252.1.13", + "Name": "ncn-s003" + } + ], + "Name": "bootstrap_dhcp", + "VlanID": 2 + }, + { + "CIDR": "10.252.2.0/23", + "FullName": "NMN UAIs", + "Gateway": "10.252.0.1", + "IPReservations": [ + { + "Aliases": [ + "pbs-comm-service", + "pbs-comm-service-nmn", + "pbs_comm_service.local" + ], + "Comment": "pbs-comm-service,pbs-comm-service-nmn", + "IPAddress": "10.252.2.2", + "Name": "pbs_comm_service" + }, + { + "Aliases": [ + "pbs-service", + "pbs-service-nmn", + "pbs_service.local" + ], + "Comment": "pbs-service,pbs-service-nmn", + "IPAddress": "10.252.2.3", + "Name": "pbs_service" + }, + { + "Aliases": [ + "slurmctld-service", + "slurmctld-service-nmn", + "slurmctld_service.local" + ], + "Comment": "slurmctld-service,slurmctld-service-nmn", + "IPAddress": "10.252.2.4", + "Name": "slurmctld_service" + }, + { + "Aliases": [ + "slurmdbd-service", + "slurmdbd-service-nmn", + "slurmdbd_service.local" + ], + "Comment": "slurmdbd-service,slurmdbd-service-nmn", + "IPAddress": "10.252.2.5", + "Name": "slurmdbd_service" + }, + { + "Aliases": [ + "uai-nmn-blackhole", + "uai_nmn_blackhole.local" + ], + "Comment": "uai-nmn-blackhole", + "IPAddress": "10.252.2.6", + "Name": "uai_nmn_blackhole" + } + ], + "Name": "uai_macvlan", + "ReservationEnd": "10.252.3.254", + "ReservationStart": "10.252.2.10", + "VlanID": 2 + } + ], + "VlanRange": [ + 2 + ] + } + }, + "NMNLB": { + "Name": "NMNLB", + "FullName": "Node Management Network LoadBalancers", + "IPRanges": [ + "10.92.100.0/24" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.92.100.0/24", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.92.100.0/24", + "FullName": "NMN MetalLB", + "Gateway": "10.92.100.1", + "IPReservations": [ + { + "Aliases": [ + "api-gw-service", + "api-gw-service-nmn.local", + "packages", + "registry", + "spire.local", + "api_gw_service", + "registry.local", + "packages", + "packages.local", + "spire" + ], + "Comment": "api-gw-service,api-gw-service-nmn.local,packages,registry,spire.local,api_gw_service,registry.local,packages,packages.local,spire", + "IPAddress": "10.92.100.71", + "Name": "istio-ingressgateway" + }, + { + "Aliases": [ + "api-gw-service.local" + ], + "Comment": "api-gw-service.local", + "IPAddress": "10.92.100.81", + "Name": "istio-ingressgateway-local" + }, + { + "Aliases": [ + "rsyslog-agg-service" + ], + "Comment": "rsyslog-agg-service", + "IPAddress": "10.92.100.72", + "Name": "rsyslog-aggregator" + }, + { + "Aliases": [ + "tftp-service" + ], + "Comment": "tftp-service", + "IPAddress": "10.92.100.60", + "Name": "cray-tftp" + }, + { + "Aliases": [ + "unbound" + ], + "Comment": "unbound", + "IPAddress": "10.92.100.225", + "Name": "unbound" + }, + { + "Aliases": [ + "docker_registry_service" + ], + "Comment": "docker_registry_service", + "IPAddress": "10.92.100.73", + "Name": "docker-registry" + } + ], + "MetalLBPoolName": "node-management", + "Name": "nmn_metallb_address_pool", + "VlanID": 2 + } + ], + "VlanRange": null + } + }, + "NMN_RVR": { + "Name": "NMN_RVR", + "FullName": "River Compute Node Management Network", + "IPRanges": [ + "10.106.0.0/17" + ], + "Type": "ethernet", + "LastUpdated": 1676278084, + "LastUpdatedTime": "2023-02-13 08:48:04.699512 +0000 +0000", + "ExtraProperties": { + "CIDR": "10.106.0.0/17", + "MTU": 9000, + "Subnets": [ + { + "CIDR": "10.106.0.0/22", + "DHCPEnd": "10.106.3.254", + "DHCPStart": "10.106.0.10", + "FullName": "", + "Gateway": "10.106.0.1", + "Name": "cabinet_3000", + "VlanID": 1770 + } + ], + "VlanRange": [ + 1770, + 1770 + ] + } + } + } + } + \ No newline at end of file diff --git a/sw-leaf-bmc-001.cfg b/sw-leaf-bmc-001.cfg new file mode 100644 index 000000000..5283a5eb0 --- /dev/null +++ b/sw-leaf-bmc-001.cfg @@ -0,0 +1,851 @@ +ip vrf Customer +ip name-server 10.92.100.225 +hostname sw-leaf-bmc-001 + +rest api restconf +spanning-tree mode mst +interface vlan3000 + mode L3 + description cabinet_1000 + no shutdown + mtu 9216 + ip address 10.104.0.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.94.100.222 + ! + vrrp-group 30 + virtual-address 10.104.0.1 +interface vlan3001 + mode L3 + description cabinet_1001 + no shutdown + mtu 9216 + ip address 10.104.4.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.94.100.222 + ! + vrrp-group 31 + virtual-address 10.104.4.1 +interface vlan3002 + mode L3 + description cabinet_1002 + no shutdown + mtu 9216 + ip address 10.104.8.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.94.100.222 + ! + vrrp-group 32 + virtual-address 10.104.8.1 +interface vlan3003 + mode L3 + description cabinet_1003 + no shutdown + mtu 9216 + ip address 10.104.12.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.94.100.222 + ! + vrrp-group 33 + virtual-address 10.104.12.1 + priority 110 +interface vlan2000 + mode L3 + description cabinet_1000 + no shutdown + mtu 9216 + ip address 10.100.0.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.92.100.222 + ! + vrrp-group 20 + virtual-address 10.100.0.1 +interface vlan2001 + mode L3 + description cabinet_1001 + no shutdown + mtu 9216 + ip address 10.100.4.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.92.100.222 + ! + vrrp-group 21 + virtual-address 10.100.4.1 +interface vlan2002 + mode L3 + description cabinet_1002 + no shutdown + mtu 9216 + ip address 10.100.8.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.92.100.222 + ! + vrrp-group 22 + virtual-address 10.100.8.1 +interface vlan2003 + mode L3 + description cabinet_1003 + no shutdown + mtu 9216 + ip address 10.100.12.2/22 + ip ospf 1 area 0.0.0.0 + ip ospf passive + ip helper-address 10.92.100.222 + ! + vrrp-group 23 + virtual-address 10.100.12.1 + priority 110 +ntp server 10.252.1.10 +ntp server 10.252.1.11 +ntp server 10.252.1.12 +ip access-list nmn-hmn + seq 10 deny ip 10.252.0.0/17 10.254.0.0/17 + seq 20 deny ip 10.254.0.0/17 10.252.0.0/17 + seq 30 deny ip 10.252.0.0/17 10.104.0.0/17 + seq 40 deny ip 10.254.0.0/17 10.100.0.0/17 + seq 50 deny ip 10.100.0.0/17 10.254.0.0/17 + seq 60 deny ip 10.100.0.0/17 10.104.0.0/17 + seq 70 deny ip 10.104.0.0/17 10.252.0.0/17 + seq 80 deny ip 10.104.0.0/17 10.100.0.0/17 + seq 90 permit ip any any +ip access-list cmn-can + seq 10 deny ip 10.102.97.0/25 10.102.97.128/25 + seq 20 deny ip 10.102.97.128/25 10.102.97.0/25 + seq 30 permit ip any any +load-balancing ingress-port enable +no load-balancing mac-selection destination-mac +no load-balancing mac-selection ethertype +no load-balancing mac-selection source-mac +no load-balancing mac-selection vlan-id +no load-balancing tcp-udp-selection l4-destination-port +no load-balancing tcp-udp-selection l4-source-port +interface vlan1 + description MTL + no shutdown + mtu 9216 + ip address 10.1.0.6/16 + ip ospf 1 area 0.0.0.0 + ip ospf passive +interface vlan2 + description RIVER_NMN + no shutdown + mtu 9216 + ip address 10.252.0.6/17 + ip access-group nmn-hmn in + ip access-group nmn-hmn out + ip ospf 1 area 0.0.0.0 +interface vlan4 + description RIVER_HMN + no shutdown + mtu 9216 + ip address 10.254.0.6/17 + ip access-group nmn-hmn in + ip access-group nmn-hmn out + ip ospf 1 area 0.0.0.0 + ip ospf passive +interface vlan7 + description CMN + no shutdown + ip vrf forwarding Customer + mtu 9216 + ip address 10.100.252.28/25 + ip access-group cmn-can in + ip access-group cmn-can out + ip ospf 2 area 0.0.0.0 +interface loopback0 + no shutdown + mtu 9216 + ip address 10.2.0.6/32 + ip ospf 1 area 0.0.0.0 +spanning-tree mst configuration + name cray + revision 2 +line vty + ip access-class ssh +interface port-channel1 + description cmm-x1000-000:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 1 + spanning-tree guard root +interface ethernet1/1/1 + description cmm-x1000-000:1<==sw-cdu-001 + no shutdown + channel-group 1 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel2 + description cmm-x1000-001:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 2 + spanning-tree guard root +interface ethernet1/1/2 + description cmm-x1000-001:1<==sw-cdu-001 + no shutdown + channel-group 2 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel3 + description cmm-x1000-002:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 3 + spanning-tree guard root +interface ethernet1/1/3 + description cmm-x1000-002:1<==sw-cdu-001 + no shutdown + channel-group 3 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel4 + description cmm-x1000-003:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 4 + spanning-tree guard root +interface ethernet1/1/4 + description cmm-x1000-003:1<==sw-cdu-001 + no shutdown + channel-group 4 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel5 + description cmm-x1000-004:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 5 + spanning-tree guard root +interface ethernet1/1/5 + description cmm-x1000-004:1<==sw-cdu-001 + no shutdown + channel-group 5 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel6 + description cmm-x1000-005:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 6 + spanning-tree guard root +interface ethernet1/1/6 + description cmm-x1000-005:1<==sw-cdu-001 + no shutdown + channel-group 6 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel7 + description cmm-x1000-006:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 7 + spanning-tree guard root +interface ethernet1/1/7 + description cmm-x1000-006:1<==sw-cdu-001 + no shutdown + channel-group 7 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel8 + description cmm-x1000-007:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2000 + switchport trunk allowed vlan 3000 + mtu 9216 + vlt-port-channel 8 + spanning-tree guard root +interface ethernet1/1/8 + description cmm-x1000-007:1<==sw-cdu-001 + no shutdown + channel-group 8 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel11 + description cmm-x1001-000:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 11 + spanning-tree guard root +interface ethernet1/1/11 + description cmm-x1001-000:1<==sw-cdu-001 + no shutdown + channel-group 11 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel12 + description cmm-x1001-001:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 12 + spanning-tree guard root +interface ethernet1/1/12 + description cmm-x1001-001:1<==sw-cdu-001 + no shutdown + channel-group 12 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel13 + description cmm-x1001-002:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 13 + spanning-tree guard root +interface ethernet1/1/13 + description cmm-x1001-002:1<==sw-cdu-001 + no shutdown + channel-group 13 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel14 + description cmm-x1001-003:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 14 + spanning-tree guard root +interface ethernet1/1/14 + description cmm-x1001-003:1<==sw-cdu-001 + no shutdown + channel-group 14 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel15 + description cmm-x1001-004:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 15 + spanning-tree guard root +interface ethernet1/1/15 + description cmm-x1001-004:1<==sw-cdu-001 + no shutdown + channel-group 15 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel16 + description cmm-x1001-005:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 16 + spanning-tree guard root +interface ethernet1/1/16 + description cmm-x1001-005:1<==sw-cdu-001 + no shutdown + channel-group 16 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel17 + description cmm-x1001-006:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 17 + spanning-tree guard root +interface ethernet1/1/17 + description cmm-x1001-006:1<==sw-cdu-001 + no shutdown + channel-group 17 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel18 + description cmm-x1001-007:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2001 + switchport trunk allowed vlan 3001 + mtu 9216 + vlt-port-channel 18 + spanning-tree guard root +interface ethernet1/1/18 + description cmm-x1001-007:1<==sw-cdu-001 + no shutdown + channel-group 18 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel31 + description cmm-x1002-000:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 31 + spanning-tree guard root +interface ethernet1/1/31 + description cmm-x1002-000:1<==sw-cdu-001 + no shutdown + channel-group 31 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel32 + description cmm-x1002-001:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 32 + spanning-tree guard root +interface ethernet1/1/32 + description cmm-x1002-001:1<==sw-cdu-001 + no shutdown + channel-group 32 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel33 + description cmm-x1002-002:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 33 + spanning-tree guard root +interface ethernet1/1/33 + description cmm-x1002-002:1<==sw-cdu-001 + no shutdown + channel-group 33 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel34 + description cmm-x1002-003:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 34 + spanning-tree guard root +interface ethernet1/1/34 + description cmm-x1002-003:1<==sw-cdu-001 + no shutdown + channel-group 34 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel35 + description cmm-x1002-004:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 35 + spanning-tree guard root +interface ethernet1/1/35 + description cmm-x1002-004:1<==sw-cdu-001 + no shutdown + channel-group 35 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel36 + description cmm-x1002-005:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 36 + spanning-tree guard root +interface ethernet1/1/36 + description cmm-x1002-005:1<==sw-cdu-001 + no shutdown + channel-group 36 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel37 + description cmm-x1002-006:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 37 + spanning-tree guard root +interface ethernet1/1/37 + description cmm-x1002-006:1<==sw-cdu-001 + no shutdown + channel-group 37 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel38 + description cmm-x1002-007:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2002 + switchport trunk allowed vlan 3002 + mtu 9216 + vlt-port-channel 38 + spanning-tree guard root +interface ethernet1/1/38 + description cmm-x1002-007:1<==sw-cdu-001 + no shutdown + channel-group 38 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel41 + description cmm-x1003-000:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 41 + spanning-tree guard root +interface ethernet1/1/41 + description cmm-x1003-000:1<==sw-cdu-001 + no shutdown + channel-group 41 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel42 + description cmm-x1003-001:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 42 + spanning-tree guard root +interface ethernet1/1/42 + description cmm-x1003-001:1<==sw-cdu-001 + no shutdown + channel-group 42 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel43 + description cmm-x1003-002:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 43 + spanning-tree guard root +interface ethernet1/1/43 + description cmm-x1003-002:1<==sw-cdu-001 + no shutdown + channel-group 43 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel44 + description cmm-x1003-003:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 44 + spanning-tree guard root +interface ethernet1/1/44 + description cmm-x1003-003:1<==sw-cdu-001 + no shutdown + channel-group 44 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel45 + description cmm-x1003-004:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 45 + spanning-tree guard root +interface ethernet1/1/45 + description cmm-x1003-004:1<==sw-cdu-001 + no shutdown + channel-group 45 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel46 + description cmm-x1003-005:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 46 + spanning-tree guard root +interface ethernet1/1/46 + description cmm-x1003-005:1<==sw-cdu-001 + no shutdown + channel-group 46 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel47 + description cmm-x1003-006:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 47 + spanning-tree guard root +interface ethernet1/1/47 + description cmm-x1003-006:1<==sw-cdu-001 + no shutdown + channel-group 47 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface port-channel48 + description cmm-x1003-007:1<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 2003 + switchport trunk allowed vlan 3003 + mtu 9216 + vlt-port-channel 48 + spanning-tree guard root +interface ethernet1/1/48 + description cmm-x1003-007:1<==sw-cdu-001 + no shutdown + channel-group 48 + no switchport + mtu 9216 + flowcontrol receive on + flowcontrol transmit on +interface ethernet1/1/51 + description cec-x1000-000:1<==sw-cdu-001 + no shutdown + switchport access vlan 3000 + mtu 9216 + flowcontrol receive off + flowcontrol transmit off + spanning-tree bpduguard enable + spanning-tree port type edge +interface ethernet1/1/52 + description cec-x1001-000:1<==sw-cdu-001 + no shutdown + switchport access vlan 3001 + mtu 9216 + flowcontrol receive off + flowcontrol transmit off + spanning-tree bpduguard enable + spanning-tree port type edge +interface ethernet1/1/53 + description cec-x1002-000:1<==sw-cdu-001 + no shutdown + switchport access vlan 3002 + mtu 9216 + flowcontrol receive off + flowcontrol transmit off + spanning-tree bpduguard enable + spanning-tree port type edge +interface ethernet1/1/54 + description cec-x1003-000:1<==sw-cdu-001 + no shutdown + switchport access vlan 3003 + mtu 9216 + flowcontrol receive off + flowcontrol transmit off + spanning-tree bpduguard enable + spanning-tree port type edge +interface port-channel110 + description sw-spine-001:13<==sw-cdu-001 + no shutdown + switchport mode trunk + switchport access vlan 1 + switchport trunk allowed vlan 2,4,7 + mtu 9216 + vlt-port-channel 110 + ! +interface ethernet1/1/27 + no shutdown + channel-group 110 mode active + no switchport + mtu 9216 + flowcontrol receive off + flowcontrol transmit off +router ospf 1 + router-id 10.2.0.6 +! +router ospf 2 vrf Customer + router-id 10.2.0.6 +interface ethernet1/1/28 + no shutdown + channel-group 110 mode active + no switchport + mtu 9216 + flowcontrol receive off + flowcontrol transmit off +interface ethernet1/1/9 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/10 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/19 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/20 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/21 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/22 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/23 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/24 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/29 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/30 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/39 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/40 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/49 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/50 + shutdown + switchport access vlan 1 + flowcontrol receive on +interface ethernet1/1/25 + no shutdown + no switchport + flowcontrol receive off + flowcontrol transmit off +interface ethernet1/1/26 + no shutdown + no switchport + flowcontrol receive off + flowcontrol transmit off +vlt-domain 1 + backup destination 192.168.255.243 + discovery-interface ethernet1/1/25-1/1/26 + peer-routing + primary-priority 4096 + vlt-mac 00:11:22:aa:bb:cc diff --git a/sw-spine-001.cfg b/sw-spine-001.cfg new file mode 100644 index 000000000..309f9d762 --- /dev/null +++ b/sw-spine-001.cfg @@ -0,0 +1,361 @@ +# The following switch configurations were inserted into the plan-of-record configuration from custom_switch.yaml +# Custom configurations are merged into the generated configuration to maintainsite-specific behaviors and (less frequently) to override known issues. + +# interface ethernet 1/16 no switchport force +# interface ethernet 1/16 vrf forwarding Customer +# interface ethernet 1/16 ip address 172.24.253.89/30 primary +# ip route vrf Customer 0.0.0.0/0 172.24.253.90 + +hostname sw-spine-001 +no cli default prefix-modes enable +protocol mlag +protocol bgp +lacp +interface mlag-port-channel 1 +interface mlag-port-channel 2 +interface mlag-port-channel 3 +interface mlag-port-channel 4 +interface mlag-port-channel 5 +interface mlag-port-channel 7 +interface mlag-port-channel 8 +interface mlag-port-channel 9 +interface mlag-port-channel 10 +interface mlag-port-channel 151 +interface mlag-port-channel 152 +interface ethernet 1/13 speed 40G force +interface ethernet 1/14 speed 40G force +interface ethernet 1/1 speed 40G force +interface ethernet 1/2 speed 40G force +interface ethernet 1/3 speed 40G force +interface ethernet 1/4 speed 40G force +interface ethernet 1/5 speed 40G force +interface ethernet 1/10 speed 40G force +interface ethernet 1/7 speed 40G force +interface ethernet 1/8 speed 40G force +interface ethernet 1/9 speed 40G force +interface ethernet 1/11 speed 10G force +interface ethernet 1/12 speed 10G force +interface ethernet 1/1 mlag-channel-group 1 mode active +interface ethernet 1/2 mlag-channel-group 2 mode active +interface ethernet 1/3 mlag-channel-group 3 mode active +interface ethernet 1/4 mlag-channel-group 4 mode active +interface ethernet 1/5 mlag-channel-group 5 mode active +interface ethernet 1/7 mlag-channel-group 7 mode active +interface ethernet 1/8 mlag-channel-group 8 mode active +interface ethernet 1/9 mlag-channel-group 9 mode active +interface ethernet 1/10 mlag-channel-group 10 mode active +interface ethernet 1/11 mlag-channel-group 151 mode active +interface ethernet 1/12 mlag-channel-group 152 mode active +interface mlag-port-channel 1 switchport mode hybrid +interface mlag-port-channel 2 switchport mode hybrid +interface mlag-port-channel 3 switchport mode hybrid +interface mlag-port-channel 4 switchport mode hybrid +interface mlag-port-channel 5 switchport mode hybrid +interface mlag-port-channel 7 switchport mode hybrid +interface mlag-port-channel 8 switchport mode hybrid +interface mlag-port-channel 9 switchport mode hybrid +interface mlag-port-channel 10 switchport mode hybrid +interface mlag-port-channel 151 switchport mode hybrid +interface mlag-port-channel 152 switchport mode hybrid +interface ethernet 1/1 description "ncn-m001:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/2 description "ncn-m002:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/3 description "ncn-m003:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/4 description "ncn-w001:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/5 description "ncn-w002:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/7 description "ncn-s001:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/8 description "ncn-s002:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/9 description "ncn-s003:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/10 description "ncn-w003:pcie-slot1:1<==sw-spine-001" +interface ethernet 1/11 description "sw-leaf-bmc-001:52<==sw-spine-001" +interface ethernet 1/12 description "sw-leaf-bmc-002:52<==sw-spine-001" +interface ethernet 1/13 description "mlag-isl" +interface ethernet 1/14 description "mlag-isl" +interface mlag-port-channel 1 description "ncn-m001:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 2 description "ncn-m002:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 3 description "ncn-m003:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 4 description "ncn-w001:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 5 description "ncn-w002:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 7 description "ncn-s001:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 8 description "ncn-s002:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 9 description "ncn-s003:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 10 description "ncn-w003:pcie-slot1:1<==sw-spine-001" +interface mlag-port-channel 151 description "sw-leaf-bmc-001:52<==sw-spine-001" +interface mlag-port-channel 152 description "sw-leaf-bmc-002:52<==sw-spine-001" +banner motd " +############################################################################### +# CSM version: 1.3 +# CANU version: 1.6.28.post12 +############################################################################### +" +ip filter chain input rule append tail target drop dup-delete dest-port 22 in-intf vlan2 protocol tcp +ip filter enable +interface port-channel 256 +interface ethernet 1/13 channel-group 256 mode active +interface ethernet 1/14 channel-group 256 mode active +interface port-channel 256 description "mlag-isl" +interface port-channel 256 dcb priority-flow-control mode on force +port-channel load-balance ethernet source-destination-ip ingress-port +interface mlag-port-channel 1 no shutdown +interface ethernet 1/16 ip address 172.24.253.89/30 primary +interface mlag-port-channel 2 no shutdown +interface mlag-port-channel 3 no shutdown +interface mlag-port-channel 4 no shutdown +interface mlag-port-channel 5 no shutdown +interface mlag-port-channel 7 no shutdown +interface mlag-port-channel 8 no shutdown +interface mlag-port-channel 9 no shutdown +interface mlag-port-channel 10 no shutdown +interface mlag-port-channel 151 no shutdown +interface mlag-port-channel 152 no shutdown +interface mlag-port-channel 1 lacp-individual enable force +interface mlag-port-channel 2 lacp-individual enable force +interface mlag-port-channel 3 lacp-individual enable force +interface mlag-port-channel 4 lacp-individual enable force +interface mlag-port-channel 5 lacp-individual enable force +interface mlag-port-channel 7 lacp-individual enable force +interface mlag-port-channel 8 lacp-individual enable force +interface mlag-port-channel 9 lacp-individual enable force +interface mlag-port-channel 10 lacp-individual enable force +vlan 2 +vlan 4 +vlan 7 +vlan 4000 +vlan 2 name "RVR_NMN" +vlan 4 name "RVR_HMN" +vlan 7 name "CMN" +vlan 4000 name "MLAG" +vlan 6 +vlan 6 name "CAN" +interface mlag-port-channel 1 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 1 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 1 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 1 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 2 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 2 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 2 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 2 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 3 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 3 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 3 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 3 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 4 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 4 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 4 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 4 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 5 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 5 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 5 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 5 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 10 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 10 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 10 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 10 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 7 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 7 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 7 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 7 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 8 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 8 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 8 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 8 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 9 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 9 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 9 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 9 switchport hybrid allowed-vlan add 6 +interface mlag-port-channel 151 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 151 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 151 switchport hybrid allowed-vlan add 4 +interface mlag-port-channel 152 switchport hybrid allowed-vlan add 7 +interface mlag-port-channel 152 switchport hybrid allowed-vlan add 2 +interface mlag-port-channel 152 switchport hybrid allowed-vlan add 4 +web vrf default enable +vrf definition Customer +vrf definition Customer rd 7:7 +ip routing vrf Customer +ip routing vrf default +ip name-server vrf vrf-default 10.92.100.225 +no ldap vrf mgmt enable +no radius-server vrf mgmt enable +no snmp-server vrf mgmt enable +no tacacs-server vrf mgmt enable +vrf definition mgmt +interface ethernet 1/16 vrf forwarding Customer +interface loopback 0 +interface loopback 0 ip address 10.2.0.2/32 primary +interface vlan 6 vrf forwarding Customer +interface vlan 6 ip address 172.24.76.194/26 primary +no interface vlan 6 ip icmp redirect +interface vlan 6 mtu 9184 +interface vlan 1 +interface vlan 2 +interface vlan 4 +interface vlan 7 vrf forwarding Customer +interface vlan 10 +interface vlan 4000 +interface vlan 1 ip address 10.1.0.2/16 primary +interface vlan 2 ip address 10.252.0.2/17 primary +interface vlan 4 ip address 10.254.0.2/17 primary +interface vlan 7 ip address 172.24.76.130/26 primary +interface vlan 4000 ip address 192.168.255.253/30 primary +no interface vlan 1 ip icmp redirect +interface vlan 1 mtu 9184 +no interface vlan 2 ip icmp redirect +interface vlan 2 mtu 9184 +no interface vlan 4 ip icmp redirect +interface vlan 4 mtu 9184 +no interface vlan 7 ip icmp redirect +interface vlan 7 mtu 9184 +interface ethernet 1/16 no switchport force +ip load-sharing source-ip-port +ip load-sharing type consistent +ip route vrf Customer 0.0.0.0/0 172.24.253.90 +spanning-tree mode mst +spanning-tree priority 4096 +spanning-tree port type edge default +spanning-tree mst name cray +spanning-tree mst revision 2 +interface mlag-port-channel 151 spanning-tree port type network +interface mlag-port-channel 151 spanning-tree guard root +interface mlag-port-channel 152 spanning-tree port type network +interface mlag-port-channel 152 spanning-tree guard root +ipv4 access-list nmn-hmn +ipv4 access-list nmn-hmn bind-point rif +ipv4 access-list nmn-hmn seq-number 10 deny ip 10.252.0.0 mask 255.255.128.0 10.254.0.0 mask 255.255.128.0 +ipv4 access-list nmn-hmn seq-number 20 deny ip 10.254.0.0 mask 255.255.128.0 10.252.0.0 mask 255.255.128.0 +ipv4 access-list nmn-hmn seq-number 30 permit ip any any +ipv4 access-list cmn-can +ipv4 access-list cmn-can bind-point rif +ipv4 access-list cmn-can seq-number 10 deny ip 172.24.76.128 mask 255.255.255.192 172.24.76.192 mask 255.255.255.192 +ipv4 access-list cmn-can seq-number 20 deny ip 172.24.76.192 mask 255.255.255.192 172.24.76.128 mask 255.255.255.192 +ipv4 access-list cmn-can seq-number 30 permit ip any any +interface vlan 6 ipv4 port access-group cmn-can +interface vlan 2 ipv4 port access-group nmn-hmn +interface vlan 4 ipv4 port access-group nmn-hmn +interface vlan 7 ipv4 port access-group cmn-can +protocol ospf +router ospf 1 vrf default +router ospf 2 vrf Customer +router ospf 1 vrf default router-id 10.2.0.2 +router ospf 2 vrf Customer router-id 10.2.0.2 +router ospf 2 vrf Customer default-information originate +interface loopback 0 ip ospf area 0.0.0.0 +interface vlan 1 ip ospf area 0.0.0.0 +interface vlan 2 ip ospf area 0.0.0.0 +interface vlan 4 ip ospf area 0.0.0.0 +interface vlan 7 ip ospf area 0.0.0.0 +interface vlan 6 ip ospf area 0.0.0.0 +interface vlan 1 ip ospf passive-interface +interface vlan 4 ip ospf passive-interface +router ospf 1 vrf default redistribute bgp +ip dhcp relay instance 2 vrf default +ip dhcp relay instance 4 vrf default +ip dhcp relay instance 2 address 10.92.100.222 +ip dhcp relay instance 4 address 10.94.100.222 +interface vlan 1 ip dhcp relay instance 2 downstream +interface vlan 2 ip dhcp relay instance 2 downstream +interface vlan 4 ip dhcp relay instance 4 downstream +protocol magp +interface vlan 1 magp 1 +interface vlan 2 magp 2 +interface vlan 4 magp 3 +interface vlan 7 magp 4 +interface vlan 1 magp 1 ip virtual-router address 10.1.0.1 +interface vlan 2 magp 2 ip virtual-router address 10.252.0.1 +interface vlan 4 magp 3 ip virtual-router address 10.254.0.1 +interface vlan 7 magp 4 ip virtual-router address 172.24.76.129 +interface vlan 1 magp 1 ip virtual-router mac-address 00:00:5E:00:01:01 +interface vlan 2 magp 2 ip virtual-router mac-address 00:00:5E:00:01:02 +interface vlan 4 magp 3 ip virtual-router mac-address 00:00:5E:00:01:03 +interface vlan 7 magp 4 ip virtual-router mac-address 00:00:5E:00:01:04 +interface vlan 6 magp 5 +interface vlan 6 magp 5 ip virtual-router address 172.24.76.193 +interface vlan 6 magp 5 ip virtual-router mac-address 00:00:5E:00:01:05 +mlag-vip mlag-domain ip 192.168.255.242 /29 force +no mlag shutdown +mlag system-mac 00:00:5E:00:01:01 +interface port-channel 256 ipl 1 +interface vlan 4000 ipl 1 peer-address 192.168.255.254 +ip prefix-list pl-cmn +ip prefix-list pl-cmn bulk-mode +ip prefix-list pl-cmn seq 10 permit 172.24.76.128 /26 ge 26 +ip prefix-list pl-cmn commit +ip prefix-list pl-can +ip prefix-list pl-can bulk-mode +ip prefix-list pl-can seq 10 permit 172.24.76.192 /26 ge 26 +ip prefix-list pl-can commit +ip prefix-list pl-hmn +ip prefix-list pl-hmn bulk-mode +ip prefix-list pl-hmn seq 20 permit 10.94.100.0 /24 ge 24 +ip prefix-list pl-hmn commit +ip prefix-list pl-nmn +ip prefix-list pl-nmn bulk-mode +ip prefix-list pl-nmn seq 30 permit 10.92.100.0 /24 ge 24 +ip prefix-list pl-nmn commit +route-map ncn-w003-Customer permit 10 match ip address pl-cmn +route-map ncn-w003-Customer permit 20 match ip address pl-can +route-map ncn-w003-Customer permit 20 set ip next-hop 172.24.76.203 +route-map ncn-w003 permit 10 match ip address pl-hmn +route-map ncn-w003 permit 10 set ip next-hop 10.254.1.16 +route-map ncn-w003 permit 20 match ip address pl-nmn +route-map ncn-w003 permit 20 set ip next-hop 10.252.1.10 +route-map ncn-w002-Customer permit 10 match ip address pl-cmn +route-map ncn-w002-Customer permit 20 match ip address pl-can +route-map ncn-w002-Customer permit 20 set ip next-hop 172.24.76.204 +route-map ncn-w002 permit 10 match ip address pl-hmn +route-map ncn-w002 permit 10 set ip next-hop 10.254.1.18 +route-map ncn-w002 permit 20 match ip address pl-nmn +route-map ncn-w002 permit 20 set ip next-hop 10.252.1.11 +route-map ncn-w001-Customer permit 10 match ip address pl-cmn +route-map ncn-w001-Customer permit 20 match ip address pl-can +route-map ncn-w001-Customer permit 20 set ip next-hop 172.24.76.205 +route-map ncn-w001 permit 10 match ip address pl-hmn +route-map ncn-w001 permit 10 set ip next-hop 10.254.1.20 +route-map ncn-w001 permit 20 match ip address pl-nmn +route-map ncn-w001 permit 20 set ip next-hop 10.252.1.12 +router bgp 65533 vrf Customer +router bgp 65533 vrf default +router bgp 65533 vrf Customer router-id 10.2.0.2 force +router bgp 65533 vrf default router-id 10.2.0.2 force +router bgp 65533 vrf Customer distance 20 70 20 +router bgp 65533 vrf default distance 20 70 20 +router bgp 65533 vrf Customer maximum-paths ibgp 32 +router bgp 65533 vrf Customer maximum-paths 32 +router bgp 65533 vrf default maximum-paths ibgp 32 +router bgp 65533 vrf default maximum-paths 32 +router bgp 65533 vrf Customer neighbor 172.24.76.153 remote-as 65532 +router bgp 65533 vrf Customer neighbor 172.24.76.154 remote-as 65532 +router bgp 65533 vrf Customer neighbor 172.24.76.155 remote-as 65532 +router bgp 65533 vrf default neighbor 10.252.1.10 remote-as 65531 +router bgp 65533 vrf default neighbor 10.252.1.10 route-map ncn-w003 +router bgp 65533 vrf default neighbor 10.252.1.11 remote-as 65531 +router bgp 65533 vrf default neighbor 10.252.1.11 route-map ncn-w002 +router bgp 65533 vrf default neighbor 10.252.1.12 remote-as 65531 +router bgp 65533 vrf default neighbor 10.252.1.12 route-map ncn-w001 +router bgp 65533 vrf Customer neighbor 172.24.76.153 timers 1 3 +router bgp 65533 vrf Customer neighbor 172.24.76.154 timers 1 3 +router bgp 65533 vrf Customer neighbor 172.24.76.155 timers 1 3 +router bgp 65533 vrf default neighbor 10.252.1.10 timers 1 3 +router bgp 65533 vrf default neighbor 10.252.1.11 timers 1 3 +router bgp 65533 vrf default neighbor 10.252.1.12 timers 1 3 +router bgp 65533 vrf Customer neighbor 172.24.76.153 transport connection-mode passive +router bgp 65533 vrf Customer neighbor 172.24.76.153 route-map ncn-w003-Customer +router bgp 65533 vrf Customer neighbor 172.24.76.154 transport connection-mode passive +router bgp 65533 vrf Customer neighbor 172.24.76.154 route-map ncn-w002-Customer +router bgp 65533 vrf Customer neighbor 172.24.76.155 transport connection-mode passive +router bgp 65533 vrf Customer neighbor 172.24.76.155 route-map ncn-w001-Customer +router bgp 65533 vrf default neighbor 10.252.1.10 transport connection-mode passive +router bgp 65533 vrf default neighbor 10.252.1.11 transport connection-mode passive +router bgp 65533 vrf default neighbor 10.252.1.12 transport connection-mode passive +no ntp server 10.252.1.12 disable +ntp server 10.252.1.12 keyID 0 +no ntp server 10.252.1.12 trusted-enable +ntp server 10.252.1.12 version 4 +no ntp server 10.252.1.11 disable +ntp server 10.252.1.11 keyID 0 +no ntp server 10.252.1.11 trusted-enable +ntp server 10.252.1.11 version 4 +no ntp server 10.252.1.10 disable +ntp server 10.252.1.10 keyID 0 +no ntp server 10.252.1.10 trusted-enable +ntp server 10.252.1.10 version 4 +ntp vrf default enable \ No newline at end of file