diff --git a/docs/conf.py b/docs/conf.py index d9278b7a1..0f9382098 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -307,6 +307,7 @@ "get_arp_table_with_vrf": "get_arp_table", "get_route_to_longer": "get_route_to", "get_config_sanitized": "get_config", + "get_config_sanitized_filtered": "get_config", } diff --git a/napalm/base/constants.py b/napalm/base/constants.py index d505081ab..0cdb17214 100644 --- a/napalm/base/constants.py +++ b/napalm/base/constants.py @@ -100,3 +100,9 @@ r"^((tacacs|radius) server [^\n]+\n(\s+[^\n]+\n)*\s+key) [^\n]+$": r"\1 ", r"^(\s+ppp (chap|pap) password \d) .+$": r"\1 ", } + +EOS_SANITIZE_FILTERS = { + **CISCO_SANITIZE_FILTERS, + r"^(\s+aaa root secret \d) .+$": r"\1 ", + r"^(\s+username .+ (password|secret) \d) .+$": r"\1 ", +} diff --git a/napalm/base/test/getters.py b/napalm/base/test/getters.py index 4d79a9ddd..98dc945ad 100644 --- a/napalm/base/test/getters.py +++ b/napalm/base/test/getters.py @@ -541,6 +541,30 @@ def test_get_config_sanitized(self, test_case): return get_config + @wrap_test_cases + def test_get_config_sanitized_filtered(self, test_case): + """Test get_config with both sanitized=True and retrieve parameter.""" + return_config = {} + get_config = self.device.get_config(retrieve="running", sanitized=True) + assert isinstance(get_config, dict) + assert helpers.test_model(models.ConfigDict, get_config) + assert get_config["startup"] == "" + assert get_config["candidate"] == "" + assert get_config["running"] != "" + return_config["running"] = get_config["running"] + + get_config = self.device.get_config(retrieve="startup", sanitized=True) + assert isinstance(get_config, dict) + assert helpers.test_model(models.ConfigDict, get_config) + assert get_config["running"] == "" + assert get_config["candidate"] == "" + + return_config["startup"] = get_config["startup"] + + return_config["candidate"] = "" + + return return_config + @wrap_test_cases def test_get_network_instances(self, test_case): """Test get_network_instances method.""" diff --git a/napalm/eos/eos.py b/napalm/eos/eos.py index d4b4b0e8c..40b57a018 100644 --- a/napalm/eos/eos.py +++ b/napalm/eos/eos.py @@ -2085,7 +2085,7 @@ def get_config(self, retrieve="all", full=False, sanitized=False, format="text") startup_cfg = str(output[0]["output"]) if get_startup else "" if sanitized and startup_cfg: startup_cfg = napalm.base.helpers.sanitize_config( - startup_cfg, c.CISCO_SANITIZE_FILTERS + startup_cfg, c.EOS_SANITIZE_FILTERS ) return { "startup": startup_cfg, @@ -2094,17 +2094,28 @@ def get_config(self, retrieve="all", full=False, sanitized=False, format="text") } elif get_startup or get_running: if retrieve == "running": - commands = ["show {}-config{}".format(retrieve, run_full)] + commands = [ + "show {}-config{}{}".format(retrieve, run_full, run_sanitized) + ] elif retrieve == "startup": commands = ["show {}-config".format(retrieve)] output = self._run_commands(commands, encoding="text") + startup_cfg = str(output[0]["output"]) if get_startup else "" + if sanitized and get_startup and startup_cfg: + startup_cfg = napalm.base.helpers.sanitize_config( + startup_cfg, c.EOS_SANITIZE_FILTERS + ) return { - "startup": str(output[0]["output"]) if get_startup else "", + "startup": startup_cfg, "running": str(output[0]["output"]) if get_running else "", "candidate": "", } elif get_candidate: - commands = ["show session-config named {}".format(self.config_session)] + commands = [ + "show session-config named {}{}".format( + self.config_session, run_sanitized + ) + ] output = self._run_commands(commands, encoding="text") return {"startup": "", "running": "", "candidate": str(output[0]["output"])} elif retrieve == "candidate": diff --git a/test/eos/mocked_data/test_get_config_sanitized/normal/expected_result.json b/test/eos/mocked_data/test_get_config_sanitized/normal/expected_result.json index b72f884f5..79b0c78bc 100644 --- a/test/eos/mocked_data/test_get_config_sanitized/normal/expected_result.json +++ b/test/eos/mocked_data/test_get_config_sanitized/normal/expected_result.json @@ -1,5 +1,5 @@ { - "startup": "! Command: show startup-config\n! Startup-config last modified at Sun Sep 11 18:35:01 2016 by root\n! device: localhost (vEOS, EOS-4.15.2.1F)\n!\n! boot system flash:/vEOS-lab.swi\n!\nevent-handler dhclient\n trigger on-boot\n action bash sudo /mnt/flash/initialize_ma1.sh\n !\n transceiver qsfp default-mode 4x10G\n !\n spanning-tree mode mstp\n !\n aaa authorization exec default local\n !\n aaa root secret 5 $1$zr7sHZaW$WagNykw1d5wjy4ZhtMgUS/\n !\n username admin privilege 15 role network-admin secret 5 $1$VoQBHXed$4z2.EoAeoIY2SFme/Pz3Q/\n username vagrant privilege 15 role network-admin secret 5 $1$l/6gq.Qs$ifURvKWUYzLm0RqmRgr.W1\n !\n interface Ethernet1\n !\n interface Ethernet2\n !\n interface Management1\n ip address 10.0.2.15/24\n\t !\n\t no ip routing\n\t !\n\t management api http-commands\n\t no shutdown\n\t !\n\t !\n\t end\n", + "startup": "! Command: show startup-config\n! Startup-config last modified at Sun Sep 11 18:35:01 2016 by root\n! device: localhost (vEOS, EOS-4.15.2.1F)\n!\n! boot system flash:/vEOS-lab.swi\n!\nevent-handler dhclient\n trigger on-boot\n action bash sudo /mnt/flash/initialize_ma1.sh\n !\n transceiver qsfp default-mode 4x10G\n !\n spanning-tree mode mstp\n !\n aaa authorization exec default local\n !\n aaa root secret 5 \n !\n username admin privilege 15 role network-admin secret 5 \n username vagrant privilege 15 role network-admin secret 5 \n !\n interface Ethernet1\n !\n interface Ethernet2\n !\n interface Management1\n ip address 10.0.2.15/24\n\t !\n\t no ip routing\n\t !\n\t management api http-commands\n\t no shutdown\n\t !\n\t !\n\t end\n", "running": "! Command: show startup-config\n! Startup-config last modified at Sun Sep 11 18:35:01 2016 by root\n! device: localhost (vEOS, EOS-4.15.2.1F)\n!\n! boot system flash:/vEOS-lab.swi\n!\nevent-handler dhclient\n trigger on-boot\n action bash sudo /mnt/flash/initialize_ma1.sh\n !\n transceiver qsfp default-mode 4x10G\n !\n spanning-tree mode mstp\n !\n aaa authorization exec default local\n !\n aaa root secret 5 \n !\n username admin privilege 15 role network-admin secret 5 \n username vagrant privilege 15 role network-admin secret 5 \n !\n interface Ethernet1\n !\n interface Ethernet2\n !\n interface Management1\n ip address 10.0.2.15/24\n\t !\n\t no ip routing\n\t !\n\t management api http-commands\n\t no shutdown\n\t !\n\t !\n\t end\n", "candidate": "" } diff --git a/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..5bfb0fd32 --- /dev/null +++ b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "running": "! Command: show running-config\n!\n! device: localhost (vEOS, EOS-4.15.2.1F)\n!\n! boot system flash:/vEOS-lab.swi\n!\nevent-handler dhclient\n trigger on-boot\n action bash sudo /mnt/flash/initialize_ma1.sh\n !\n transceiver qsfp default-mode 4x10G\n !\n spanning-tree mode mstp\n !\n aaa authorization exec default local\n !\n aaa root secret 5 \n !\n username admin privilege 15 role network-admin secret 5 \n username vagrant privilege 15 role network-admin secret 5 \n !\n interface Ethernet1\n !\n interface Ethernet2\n !\n interface Management1\n ip address 10.0.2.15/24\n\t !\n\t no ip routing\n\t !\n\t management api http-commands\n\t no shutdown\n\t !\n\t !\n\t end\n", + "startup": "! Command: show startup-config\n! Startup-config last modified at Sun Sep 11 18:35:01 2016 by root\n! device: localhost (vEOS, EOS-4.15.2.1F)\n!\n! boot system flash:/vEOS-lab.swi\n!\nevent-handler dhclient\n trigger on-boot\n action bash sudo /mnt/flash/initialize_ma1.sh\n !\n transceiver qsfp default-mode 4x10G\n !\n spanning-tree mode mstp\n !\n aaa authorization exec default local\n !\n aaa root secret 5 \n !\n username admin privilege 15 role network-admin secret 5 \n username vagrant privilege 15 role network-admin secret 5 \n !\n interface Ethernet1\n !\n interface Ethernet2\n !\n interface Management1\n ip address 10.0.2.15/24\n\t !\n\t no ip routing\n\t !\n\t management api http-commands\n\t no shutdown\n\t !\n\t !\n\t end\n", + "candidate": "" +} diff --git a/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config_sanitized.text b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config_sanitized.text new file mode 100644 index 000000000..b4b126450 --- /dev/null +++ b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config_sanitized.text @@ -0,0 +1,35 @@ +! Command: show running-config +! +! device: localhost (vEOS, EOS-4.15.2.1F) +! +! boot system flash:/vEOS-lab.swi +! +event-handler dhclient + trigger on-boot + action bash sudo /mnt/flash/initialize_ma1.sh + ! + transceiver qsfp default-mode 4x10G + ! + spanning-tree mode mstp + ! + aaa authorization exec default local + ! + aaa root secret 5 + ! + username admin privilege 15 role network-admin secret 5 + username vagrant privilege 15 role network-admin secret 5 + ! + interface Ethernet1 + ! + interface Ethernet2 + ! + interface Management1 + ip address 10.0.2.15/24 + ! + no ip routing + ! + management api http-commands + no shutdown + ! + ! + end diff --git a/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.text b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.text new file mode 100644 index 000000000..a05d93a3d --- /dev/null +++ b/test/eos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.text @@ -0,0 +1,35 @@ +! Command: show startup-config +! Startup-config last modified at Sun Sep 11 18:35:01 2016 by root +! device: localhost (vEOS, EOS-4.15.2.1F) +! +! boot system flash:/vEOS-lab.swi +! +event-handler dhclient + trigger on-boot + action bash sudo /mnt/flash/initialize_ma1.sh + ! + transceiver qsfp default-mode 4x10G + ! + spanning-tree mode mstp + ! + aaa authorization exec default local + ! + aaa root secret 5 $1$zr7sHZaW$WagNykw1d5wjy4ZhtMgUS/ + ! + username admin privilege 15 role network-admin secret 5 $1$VoQBHXed$4z2.EoAeoIY2SFme/Pz3Q/ + username vagrant privilege 15 role network-admin secret 5 $1$l/6gq.Qs$ifURvKWUYzLm0RqmRgr.W1 + ! + interface Ethernet1 + ! + interface Ethernet2 + ! + interface Management1 + ip address 10.0.2.15/24 + ! + no ip routing + ! + management api http-commands + no shutdown + ! + ! + end diff --git a/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..b8f52d728 --- /dev/null +++ b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "startup": "!\n\n!\nversion 15.5\nservice timestamps debug datetime msec\nservice timestamps log datetime msec\nno platform punt-keepalive disable-kernel-core\nplatform console auto\n!\nhostname CSR1\n!\nboot-start-marker\nboot-end-marker\n!\n!\nenable password cisco\n!\naaa new-model\n!\n!\naaa authentication login default local\naaa authorization exec default local\n!\n!\n!\n!\n!\naaa session-id common\n!\nip vrf MGMT\n!\n!\n!\n!\n!\n!\n!\n!\n!\n\n\nip domain name example.local\n\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\nsubscriber templating\n!\nmultilink bundle-name authenticated\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\nlicense udi pid CSR1000V sn 9OSEGKJXRHE\nspanning-tree extend system-id\n!\nusername cisco privilege 15 password 0 \n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ninterface Loopback0\n ip address 1.1.1.1 255.255.255.255\n!\ninterface GigabitEthernet1\n ip vrf forwarding MGMT\n ip address 192.168.35.121 255.255.255.0\n negotiation auto\n!\ninterface GigabitEthernet2\n ip address 10.1.1.1 255.255.255.0\n negotiation auto\n!\ninterface GigabitEthernet3\n no ip address\n shutdown\n negotiation auto\n!\nrouter ospf 1\n redistribute connected subnets\n network 10.1.1.0 0.0.0.255 area 0\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol nd\n!\nno ip http server\nno ip http secure-server\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n !\n !\n !\n !\n!\n!\n!\n!\n!\nline con 0\nline vty 0 4\n!\n!\nend", + "running": "!\n\n!\nversion 15.5\nservice timestamps debug datetime msec\nservice timestamps log datetime msec\nno platform punt-keepalive disable-kernel-core\nplatform console auto\n!\nhostname CSR1\n!\nboot-start-marker\nboot-end-marker\n!\n!\nenable password cisco\n!\naaa new-model\n!\n!\naaa authentication login default local\naaa authorization exec default local\n!\n!\n!\n!\n!\naaa session-id common\n!\nip vrf MGMT\n!\n!\n!\n!\n!\n!\n!\n!\n!\n\n\nip domain name example.local\n\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\nsubscriber templating\n!\nmultilink bundle-name authenticated\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\nlicense udi pid CSR1000V sn 9OSEGKJXRHE\nspanning-tree extend system-id\n!\nusername cisco privilege 15 password 0 \n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ninterface Loopback0\n ip address 1.1.1.1 255.255.255.255\n!\ninterface GigabitEthernet1\n ip vrf forwarding MGMT\n ip address 192.168.35.121 255.255.255.0\n negotiation auto\n!\ninterface GigabitEthernet2\n ip address 10.1.1.1 255.255.255.0\n negotiation auto\n!\ninterface GigabitEthernet3\n no ip address\n shutdown\n negotiation auto\n!\nrouter ospf 1\n redistribute connected subnets\n network 10.1.1.0 0.0.0.255 area 0\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol nd\n!\nno ip http server\nno ip http secure-server\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n !\n !\n !\n !\n!\n!\n!\n!\n!\nline con 0\nline vty 0 4\n!\n!\nend", + "candidate": "" +} diff --git a/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt new file mode 100644 index 000000000..176e284ef --- /dev/null +++ b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt @@ -0,0 +1,151 @@ +Building configuration... + +Current configuration : 1366 bytes +! +! Last configuration change at 18:41:02 UTC Thu Nov 24 2016 +! +version 15.5 +service timestamps debug datetime msec +service timestamps log datetime msec +no platform punt-keepalive disable-kernel-core +platform console auto +! +hostname CSR1 +! +boot-start-marker +boot-end-marker +! +! +enable password cisco +! +aaa new-model +! +! +aaa authentication login default local +aaa authorization exec default local +! +! +! +! +! +aaa session-id common +! +ip vrf MGMT +! +! +! +! +! +! +! +! +! + + +ip domain name example.local + +! +! +! +! +! +! +! +! +! +! +subscriber templating +! +multilink bundle-name authenticated +! +! +! +! +! +! +! +! +! +! +! +! +! +license udi pid CSR1000V sn 9OSEGKJXRHE +spanning-tree extend system-id +! +username cisco privilege 15 password 0 cisco +! +redundancy +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +interface Loopback0 + ip address 1.1.1.1 255.255.255.255 +! +interface GigabitEthernet1 + ip vrf forwarding MGMT + ip address 192.168.35.121 255.255.255.0 + negotiation auto +! +interface GigabitEthernet2 + ip address 10.1.1.1 255.255.255.0 + negotiation auto +! +interface GigabitEthernet3 + no ip address + shutdown + negotiation auto +! +router ospf 1 + redistribute connected subnets + network 10.1.1.0 0.0.0.255 area 0 +! +! +virtual-service csr_mgmt +! +ip forward-protocol nd +! +no ip http server +no ip http secure-server +! +! +! +! +! +! +control-plane +! + ! + ! + ! + ! +! +! +! +! +! +line con 0 +line vty 0 4 +! +! +end diff --git a/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt new file mode 100644 index 000000000..813240554 --- /dev/null +++ b/test/ios/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt @@ -0,0 +1,148 @@ +! +! Last configuration change at 18:41:02 UTC Thu Nov 24 2016 +! +version 15.5 +service timestamps debug datetime msec +service timestamps log datetime msec +no platform punt-keepalive disable-kernel-core +platform console auto +! +hostname CSR1 +! +boot-start-marker +boot-end-marker +! +! +enable password cisco +! +aaa new-model +! +! +aaa authentication login default local +aaa authorization exec default local +! +! +! +! +! +aaa session-id common +! +ip vrf MGMT +! +! +! +! +! +! +! +! +! + + +ip domain name example.local + +! +! +! +! +! +! +! +! +! +! +subscriber templating +! +multilink bundle-name authenticated +! +! +! +! +! +! +! +! +! +! +! +! +! +license udi pid CSR1000V sn 9OSEGKJXRHE +spanning-tree extend system-id +! +username cisco privilege 15 password 0 cisco +! +redundancy +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +! +interface Loopback0 + ip address 1.1.1.1 255.255.255.255 +! +interface GigabitEthernet1 + ip vrf forwarding MGMT + ip address 192.168.35.121 255.255.255.0 + negotiation auto +! +interface GigabitEthernet2 + ip address 10.1.1.1 255.255.255.0 + negotiation auto +! +interface GigabitEthernet3 + no ip address + shutdown + negotiation auto +! +router ospf 1 + redistribute connected subnets + network 10.1.1.0 0.0.0.255 area 0 +! +! +virtual-service csr_mgmt +! +ip forward-protocol nd +! +no ip http server +no ip http secure-server +! +! +! +! +! +! +control-plane +! + ! + ! + ! + ! +! +! +! +! +! +line con 0 +line vty 0 4 +! +! +end diff --git a/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_configuration_merge__Configuration___CLI_.txt b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_configuration_merge__Configuration___CLI_.txt new file mode 100644 index 000000000..6d3398bde --- /dev/null +++ b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_configuration_merge__Configuration___CLI_.txt @@ -0,0 +1,49 @@ + + +Building configuration... +!! IOS XR Configuration version = 6.2.1.08I +!! Last configuration change at Wed Aug 17 16:49:00 2016 by vagrant +! +telnet vrf default ipv4 server max-servers 10 +username vagrant + group root-lr + group cisco-support + secret 5 $1$gZpA$ued8wLDDwikqTVKTEvUe2/ +! +tpa + address-family ipv4 + update-source MgmtEth0/RP0/CPU0/0 + ! +! +interface MgmtEth0/RP0/CPU0/0 + description testing parallel commits + ipv4 address dhcp +! +interface GigabitEthernet0/0/0/0 + shutdown +! +interface GigabitEthernet0/0/0/1 + shutdown +! +interface GigabitEthernet0/0/0/2 + shutdown +! +interface GigabitEthernet0/0/0/3 + shutdown +! +router static + address-family ipv4 unicast + 0.0.0.0/0 MgmtEth0/RP0/CPU0/0 10.0.2.2 + ! +! +grpc + port 57777 +! +xml agent tty + iteration on size 1 +! +ssh server v2 +ssh server vrf default +end + + diff --git a/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_running_config__Configuration___CLI_.txt b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_running_config__Configuration___CLI_.txt new file mode 100644 index 000000000..6d3398bde --- /dev/null +++ b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/_CLI__Configuration_show_running_config__Configuration___CLI_.txt @@ -0,0 +1,49 @@ + + +Building configuration... +!! IOS XR Configuration version = 6.2.1.08I +!! Last configuration change at Wed Aug 17 16:49:00 2016 by vagrant +! +telnet vrf default ipv4 server max-servers 10 +username vagrant + group root-lr + group cisco-support + secret 5 $1$gZpA$ued8wLDDwikqTVKTEvUe2/ +! +tpa + address-family ipv4 + update-source MgmtEth0/RP0/CPU0/0 + ! +! +interface MgmtEth0/RP0/CPU0/0 + description testing parallel commits + ipv4 address dhcp +! +interface GigabitEthernet0/0/0/0 + shutdown +! +interface GigabitEthernet0/0/0/1 + shutdown +! +interface GigabitEthernet0/0/0/2 + shutdown +! +interface GigabitEthernet0/0/0/3 + shutdown +! +router static + address-family ipv4 unicast + 0.0.0.0/0 MgmtEth0/RP0/CPU0/0 10.0.2.2 + ! +! +grpc + port 57777 +! +xml agent tty + iteration on size 1 +! +ssh server v2 +ssh server vrf default +end + + diff --git a/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..d73696deb --- /dev/null +++ b/test/iosxr/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "startup": "", + "running": "\n\n\n\n!! Last configuration change at Wed Aug 17 16:49:00 2016 by vagrant\n!\ntelnet vrf default ipv4 server max-servers 10\nusername vagrant\n group root-lr\n group cisco-support\n secret \n!\ntpa\n address-family ipv4\n update-source MgmtEth0/RP0/CPU0/0\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n description testing parallel commits\n ipv4 address dhcp\n!\ninterface GigabitEthernet0/0/0/0\n shutdown\n!\ninterface GigabitEthernet0/0/0/1\n shutdown\n!\ninterface GigabitEthernet0/0/0/2\n shutdown\n!\ninterface GigabitEthernet0/0/0/3\n shutdown\n!\nrouter static\n address-family ipv4 unicast\n 0.0.0.0/0 MgmtEth0/RP0/CPU0/0 10.0.2.2\n !\n!\ngrpc\n port 57777\n!\nxml agent tty\n iteration on size 1\n!\nssh server v2\nssh server vrf default\nend\n\n\n", + "candidate": "" +} diff --git a/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..edcde10c4 --- /dev/null +++ b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "startup": "", + "running": "\nversion 18.1;\nsystem {\n host-name some-switch;\n domain-name example.com;\n time-zone UTC;\n authentication-order [ password radius ];\n root-authentication {\n encrypted-password ;\n }\n radius-server {\n 10.0.0.1 {\n secret ;\n timeout 3;\n retry 1;\n }\n }\n login {\n user test-user {\n uid 1717;\n class admin;\n authentication {\n encrypted-password ;\n }\n }\n }\n }\n services {\n ssh {\n protocol-version v2;\n }\n netconf {\n ssh;\n }\n }\n ntp {\n server 10.17.0.1;\n }\n}\nsnmp {\n location napalm;\n contact \"contact@napalm-automation.net\";\n community ;\n community {\n authorization read-only;\n }\n}\n", + "candidate": "" +} diff --git a/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_candidate__format_text.xml b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_candidate__format_text.xml new file mode 100644 index 000000000..0cfaee11d --- /dev/null +++ b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_candidate__format_text.xml @@ -0,0 +1,48 @@ + +version 18.1; +system { + host-name some-switch; + domain-name example.com; + time-zone UTC; + authentication-order [ password radius ]; + root-authentication { + encrypted-password "$1$kasfbiuw98p43hnfwe."; + } + radius-server { + 10.0.0.1 { + secret "$9$sdnfh2p9f8whefi2p98fehwuinoief98p2hif3beuis98ehfoi2"; + timeout 3; + retry 1; + } + } + login { + user test-user { + uid 1717; + class admin; + authentication { + encrypted-password "$1$xMvNFGd6$HKlqUxgVJMkxMeDhQMFtR/"; + } + } + } + } + services { + ssh { + protocol-version v2; + } + netconf { + ssh; + } + } + ntp { + server 10.17.0.1; + } +} +snmp { + location napalm; + contact "contact@napalm-automation.net"; + community public; + community secure { + authorization read-only; + } +} + diff --git a/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_committed__format_text.xml b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_committed__format_text.xml new file mode 100644 index 000000000..0cfaee11d --- /dev/null +++ b/test/junos/mocked_data/test_get_config_sanitized_filtered/normal/get_config__database_committed__format_text.xml @@ -0,0 +1,48 @@ + +version 18.1; +system { + host-name some-switch; + domain-name example.com; + time-zone UTC; + authentication-order [ password radius ]; + root-authentication { + encrypted-password "$1$kasfbiuw98p43hnfwe."; + } + radius-server { + 10.0.0.1 { + secret "$9$sdnfh2p9f8whefi2p98fehwuinoief98p2hif3beuis98ehfoi2"; + timeout 3; + retry 1; + } + } + login { + user test-user { + uid 1717; + class admin; + authentication { + encrypted-password "$1$xMvNFGd6$HKlqUxgVJMkxMeDhQMFtR/"; + } + } + } + } + services { + ssh { + protocol-version v2; + } + netconf { + ssh; + } + } + ntp { + server 10.17.0.1; + } +} +snmp { + location napalm; + contact "contact@napalm-automation.net"; + community public; + community secure { + authorization read-only; + } +} + diff --git a/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..526925873 --- /dev/null +++ b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "running": "version 7.3(1)D1(1)\npower redundancy-mode redundant\n\nhostname nxos-spine1\nvdc nxos-spine1 id 1\n limit-resource module-type m1 m1xl m2xl f2e\n allocate interface Ethernet2/1-48\n allocate interface Ethernet3/1-48\n allocate interface Ethernet4/1-48\n limit-resource vlan minimum 16 maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource port-channel minimum 0 maximum 768\n limit-resource u4route-mem minimum 96 maximum 96\n limit-resource u6route-mem minimum 24 maximum 24\n limit-resource m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum 8 maximum 8\n\nfeature scp-server\ncfs eth distribute\nfeature interface-vlan\nfeature hsrp\nfeature vpc\nfeature nxapi", + "startup": "version 7.3(1)D1(1)\npower redundancy-mode redundant\n\nhostname nxos-spine1\nvdc nxos-spine1 id 1\n limit-resource module-type m1 m1xl m2xl f2e\n allocate interface Ethernet2/1-48\n allocate interface Ethernet3/1-48\n allocate interface Ethernet4/1-48\n limit-resource vlan minimum 16 maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource port-channel minimum 0 maximum 768\n limit-resource u4route-mem minimum 96 maximum 96\n limit-resource u6route-mem minimum 24 maximum 24\n limit-resource m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum 8 maximum 8\n\nfeature scp-server\ncfs eth distribute\nfeature interface-vlan\nfeature hsrp\nfeature vpc\nfeature nxapi", + "candidate": "" +} diff --git a/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_running-config.json b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_running-config.json new file mode 100644 index 000000000..2545e0031 --- /dev/null +++ b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_running-config.json @@ -0,0 +1,26 @@ +!Command: show running-config +!Time: Thu Dec 15 18:05:42 2016 + +version 7.3(1)D1(1) +power redundancy-mode redundant + +hostname nxos-spine1 +vdc nxos-spine1 id 1 + limit-resource module-type m1 m1xl m2xl f2e + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + allocate interface Ethernet4/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature scp-server +cfs eth distribute +feature interface-vlan +feature hsrp +feature vpc +feature nxapi \ No newline at end of file diff --git a/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup-config.json b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup-config.json new file mode 100644 index 000000000..2545e0031 --- /dev/null +++ b/test/nxos/mocked_data/test_get_config_sanitized_filtered/normal/show_startup-config.json @@ -0,0 +1,26 @@ +!Command: show running-config +!Time: Thu Dec 15 18:05:42 2016 + +version 7.3(1)D1(1) +power redundancy-mode redundant + +hostname nxos-spine1 +vdc nxos-spine1 id 1 + limit-resource module-type m1 m1xl m2xl f2e + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + allocate interface Ethernet4/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature scp-server +cfs eth distribute +feature interface-vlan +feature hsrp +feature vpc +feature nxapi \ No newline at end of file diff --git a/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json new file mode 100644 index 000000000..5d7fd25e4 --- /dev/null +++ b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/expected_result.json @@ -0,0 +1,5 @@ +{ + "startup": "!\nversion 7.3(1)D1(1)\npower redundancy-mode redundant\nlicense grace-period\nhostname nxos1\nvdc nxos1 id 1\n limit-resource module-type m1 m1xl m2xl f2e \n allocate interface Ethernet2/1-48\n allocate interface Ethernet3/1-48\n allocate interface Ethernet4/1-48\n limit-resource vlan minimum 16 maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource port-channel minimum 0 maximum 768\n limit-resource u4route-mem minimum 96 maximum 96\n limit-resource u6route-mem minimum 24 maximum 24\n limit-resource m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum 8 maximum 8\nfeature telnet\nfeature scp-server\ncfs eth distribute\nfeature bgp\nfeature interface-vlan\nfeature hsrp\nfeature vpc\nfeature lldp\nfeature nxapi\nusername admin password 5 \nusername pyclass password 5 \nusername pyclass passphrase lifetime 99999 warntime 14 gracetime 3\nno password strength-check\nip domain-lookup\nip domain-name madeupdomain.com\nip name-server 8.8.8.8 8.8.4.4\nvlan dot1Q tag native\nsystem default switchport\nsystem jumbomtu 0\nno logging event trunk-status enable\ncopp profile strict\nsnmp-server contact Test\nsnmp-server location Test\nsnmp-server user pyclass network-admin auth md5 priv localizedkey\nsnmp-server user admin auth md5 priv localizedkey engineID 128:0:0:9:3:0:12:41:209:213:60 engineID 128:0:0:9:3:0:12:41:209:213:60\nrmon event 1 log description FATAL(1) owner PMON@FATAL\nrmon event 2 log description CRITICAL(2) owner PMON@CRITICAL\nrmon event 3 log description ERROR(3) owner PMON@ERROR\nrmon event 4 log description WARNING(4) owner PMON@WARNING\nrmon event 5 log description INFORMATION(5) owner PMON@INFO\nsnmp-server enable traps link\nsnmp-server community \nntp server 130.126.24.24\nntp server 152.2.21.1\nvlan 1,301-304,550-552,559\nvlan 301\n name BLUE_DIAMOND\nvlan 302\n name RED_DIAMOND\nvlan 303\n name GREEN_DIAMOND\nvlan 304\n name YELLOW_DIAMOND\nvlan 550\n name BLACK\nvlan 551\n name ORANGE\nvlan 552\n name PINK\nvlan 559\n name BROWN\nvrf context management\n ip route 0.0.0.0/0 10.0.0.2\ninterface mgmt0\n vrf member management\n ip address 10.0.0.71/24\ninterface Vlan1\ninterface Ethernet2/1\n no switchport\n mac-address 2cc2.605e.5de8\n ip address 10.10.10.10/24\n no shutdown\ninterface Ethernet2/2\n no switchport\n mac-address 2cc2.605e.5de8\n ip address 10.100.100.1/24\n ipv6 address 2001::db8:1010:200c:1/64\n no shutdown\ninterface Ethernet2/3\n no switchport\n mac-address 2cc2.605e.5de8\n no shutdown\ninterface Ethernet2/4\n no switchport\n mac-address 2cc2.605e.5de8\n ip address 10.100.17.1/24\n no shutdown\ninterface Ethernet2/5\n no switchport\n mac-address 2cc2.605e.5de8\n no shutdown\ninterface Ethernet2/6\n no switchport\n mac-address 2cc2.605e.5de8\n no shutdown\ninterface Ethernet2/7\n no switchport\n mac-address 2cc2.605e.5de8\n no shutdown\ninterface Ethernet2/8\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/9\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/10\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/11\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/12\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/13\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/14\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/15\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/16\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/17\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/18\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/19\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/20\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/21\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/22\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/23\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/24\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/25\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/26\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/27\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/28\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/29\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/30\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/31\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/32\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/33\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/34\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/35\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/36\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/37\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/38\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/39\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/40\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/41\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/42\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/43\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/44\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/45\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/46\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/47\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet2/48\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/1\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/2\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/3\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/4\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/5\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/6\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/7\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/8\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/9\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/10\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/11\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/12\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/13\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/14\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/15\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/16\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/17\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/18\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/19\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/20\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/21\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/22\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/23\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/24\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/25\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/26\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/27\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/28\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/29\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/30\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/31\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/32\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/33\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/34\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/35\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/36\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/37\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/38\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/39\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/40\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/41\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/42\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/43\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/44\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/45\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/46\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/47\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet3/48\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/1\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/2\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/3\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/4\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/5\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/6\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/7\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/8\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/9\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/10\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/11\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/12\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/13\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/14\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/15\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/16\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/17\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/18\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/19\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/20\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/21\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/22\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/23\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/24\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/25\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/26\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/27\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/28\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/29\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/30\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/31\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/32\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/33\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/34\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/35\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/36\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/37\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/38\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/39\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/40\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/41\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/42\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/43\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/44\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/45\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/46\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/47\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface Ethernet4/48\n shutdown\n no switchport\n mac-address 2cc2.605e.5de8\ninterface loopback0\n ip address 1.1.2.225/32\n ipv6 address 2001:db8::225/64\ninterface loopback55\n ip address 1.1.1.37/24\n ipv6 address 2001:db8::37/32\nline console\nline vty\nboot kickstart bootflash://sup-1/titanium-d1-kickstart.7.3.1.D1.0.10.bin\nboot system bootflash://sup-1/titanium-d1.7.3.1.D1.0.10.bin \nrouter bgp 22\n neighbor 10.100.17.2 remote-as 22\n address-family ipv4 unicast\nno system default switchport shutdown\nnxapi https port 8443\nnxapi sandbox\nlogging module 4\nlogging monitor 4\nno logging console\nlogging history size 400", + "running": "version 7.3(1)D1(1)\npower redundancy-mode redundant\nlicense grace-period\nhostname nxos1\nvdc nxos1 id 1\n limit-resource module-type m1 m1xl m2xl f2e \n allocate interface Ethernet2/1-48\n allocate interface Ethernet3/1-48\n allocate interface Ethernet4/1-48\n limit-resource vlan minimum 16 maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource port-channel minimum 0 maximum 768\n limit-resource u4route-mem minimum 96 maximum 96\n limit-resource u6route-mem minimum 24 maximum 24\n limit-resource m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum 8 maximum 8\nfeature telnet\nfeature scp-server\ncfs eth distribute\nfeature bgp\nfeature interface-vlan\nfeature hsrp\nfeature vpc\nfeature lldp\nfeature nxapi\nusername admin password 5 \nusername pyclass password 5 \nusername pyclass passphrase lifetime 99999 warntime 14 gracetime 3\nno password strength-check\nip domain-lookup\nip domain-name madeupdomain.com\nip name-server 8.8.8.8 8.8.4.4\nvlan dot1Q tag native\nsystem default switchport\nsystem jumbomtu 0\nno logging event trunk-status enable\ncopp profile strict\nsnmp-server contact Kirk Byers\nsnmp-server location Freemont, CA\nsnmp-server user pyclass network-admin auth md5 priv localizedkey\nsnmp-server user admin auth md5 priv localizedkey engineID 128:0:0:9:3:0:12:41:209:213:60 engineID 128:0:0:9:3:0:12:41:209:213:60\nrmon event 1 log description FATAL(1) owner PMON@FATAL\nrmon event 2 log description CRITICAL(2) owner PMON@CRITICAL\nrmon event 3 log description ERROR(3) owner PMON@ERROR\nrmon event 4 log description WARNING(4) owner PMON@WARNING\nrmon event 5 log description INFORMATION(5) owner PMON@INFO\nsnmp-server enable traps link\nsnmp-server community \nntp server 130.126.24.24\nntp server 152.2.21.1\nvlan 1,301-304,550-552,559\nvlan 301\n name BLUE_DIAMOND\nvlan 302\n name RED_DIAMOND\nvlan 303\n name GREEN_DIAMOND\nvlan 304\n name YELLOW_DIAMOND\nvlan 550\n name BLACK\nvlan 551\n name ORANGE\nvlan 552\n name PINK\nvlan 559\n name BROWN\nvrf context management\n ip route 0.0.0.0/0 10.0.0.2\ninterface mgmt0\n vrf member management\n ip address 10.0.0.71/24\ninterface Vlan1\ninterface Ethernet2/1\n no switchport\n mac-address 2cc2.604f.feb2\n ip address 10.10.10.10/24\n no shutdown\ninterface Ethernet2/2\n no switchport\n mac-address 2cc2.604f.feb2\n ip address 10.100.100.1/24\n ipv6 address 2001::db8:1010:200c:1/64\n no shutdown\ninterface Ethernet2/3\n no switchport\n mac-address 2cc2.604f.feb2\n no shutdown\ninterface Ethernet2/4\n no switchport\n mac-address 2cc2.604f.feb2\n ip address 10.100.17.1/24\n no shutdown\ninterface Ethernet2/5\n no switchport\n mac-address 2cc2.604f.feb2\n no shutdown\ninterface Ethernet2/6\n no switchport\n mac-address 2cc2.604f.feb2\n no shutdown\ninterface Ethernet2/7\n no switchport\n mac-address 2cc2.604f.feb2\n no shutdown\ninterface Ethernet2/8\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/9\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/10\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/11\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/12\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/13\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/14\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/15\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/16\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/17\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/18\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/19\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/20\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/21\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/22\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/23\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/24\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/25\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/26\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/27\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/28\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/29\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/30\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/31\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/32\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/33\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/34\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/35\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/36\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/37\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/38\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/39\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/40\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/41\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/42\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/43\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/44\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/45\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/46\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/47\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet2/48\n shutdown\n no switchport\n mac-address 2cc2.604f.feb2\ninterface Ethernet3/1\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/2\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/3\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/4\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/5\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/6\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/7\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/8\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/9\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/10\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/11\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/12\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/13\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/14\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/15\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/16\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/17\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/18\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/19\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/20\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/21\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/22\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/23\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/24\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/25\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/26\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/27\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/28\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/29\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/30\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/31\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/32\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/33\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/34\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/35\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/36\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/37\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/38\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/39\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/40\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/41\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/42\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/43\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/44\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/45\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/46\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/47\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet3/48\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/1\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/2\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/3\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/4\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/5\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/6\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/7\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/8\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/9\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/10\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/11\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/12\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/13\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/14\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/15\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/16\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/17\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/18\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/19\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/20\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/21\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/22\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/23\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/24\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/25\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/26\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/27\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/28\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/29\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/30\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/31\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/32\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/33\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/34\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/35\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/36\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/37\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/38\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/39\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/40\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/41\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/42\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/43\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/44\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/45\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/46\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/47\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface Ethernet4/48\n shutdown\n no switchport\n mac-address 000c.29d1.d56b\ninterface loopback0\n ip address 1.1.2.225/32\n ipv6 address 2001:db8::225/64\ninterface loopback55\n ip address 1.1.1.37/24\n ipv6 address 2001:db8::37/32\nline console\nline vty\nboot kickstart bootflash://sup-1/titanium-d1-kickstart.7.3.1.D1.0.10.bin\nboot system bootflash://sup-1/titanium-d1.7.3.1.D1.0.10.bin \nrouter bgp 22\n neighbor 10.100.17.2 remote-as 22\n address-family ipv4 unicast\nno system default switchport shutdown\nnxapi https port 8443\nnxapi sandbox\nlogging module 4\nlogging monitor 4\nno logging console\nlogging history size 400", + "candidate": "" +} diff --git a/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt new file mode 100644 index 000000000..8a011a6cd --- /dev/null +++ b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_running_config.txt @@ -0,0 +1,675 @@ +!Command: show running-config +!Time: Sun Aug 6 16:43:18 2017 +version 7.3(1)D1(1) +power redundancy-mode redundant +license grace-period +hostname nxos1 +vdc nxos1 id 1 + limit-resource module-type m1 m1xl m2xl f2e + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + allocate interface Ethernet4/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 +feature telnet +feature scp-server +cfs eth distribute +feature bgp +feature interface-vlan +feature hsrp +feature vpc +feature lldp +feature nxapi +username admin password 5 $5$aH4ttsPk$kNH7qXBaegskBUekuymPzaL5Q0Vh/mQVSdw4tQ0AcU7 role network-admin +username pyclass password 5 $5$tGpa9bmJ$7I3Bg.0yqiweZ09vmj.gb7Q2antjGVs9J0nWSawvP/4 role network-admin +username pyclass passphrase lifetime 99999 warntime 14 gracetime 3 +no password strength-check +ip domain-lookup +ip domain-name madeupdomain.com +ip name-server 8.8.8.8 8.8.4.4 +vlan dot1Q tag native +system default switchport +system jumbomtu 0 +no logging event trunk-status enable +copp profile strict +snmp-server contact Kirk Byers +snmp-server location Freemont, CA +snmp-server user pyclass network-admin auth md5 0xd1e3bf7019f3a9c3ee4dccd381f0e4f3 priv 0xd1e3bf7019f3a9c3ee4dccd381f0e4f3 localizedkey +snmp-server user admin auth md5 0x9e902c388e9b4c616e7c7c98d1079325 priv 0x9e902c388e9b4c616e7c7c98d1079325 localizedkey engineID 128:0:0:9:3:0:12:41:209:213:60 +rmon event 1 log description FATAL(1) owner PMON@FATAL +rmon event 2 log description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log description ERROR(3) owner PMON@ERROR +rmon event 4 log description WARNING(4) owner PMON@WARNING +rmon event 5 log description INFORMATION(5) owner PMON@INFO +snmp-server enable traps link +snmp-server community bogus123 group network-operator +ntp server 130.126.24.24 +ntp server 152.2.21.1 +vlan 1,301-304,550-552,559 +vlan 301 + name BLUE_DIAMOND +vlan 302 + name RED_DIAMOND +vlan 303 + name GREEN_DIAMOND +vlan 304 + name YELLOW_DIAMOND +vlan 550 + name BLACK +vlan 551 + name ORANGE +vlan 552 + name PINK +vlan 559 + name BROWN +vrf context management + ip route 0.0.0.0/0 10.0.0.2 +interface mgmt0 + vrf member management + ip address 10.0.0.71/24 +interface Vlan1 +interface Ethernet2/1 + no switchport + mac-address 2cc2.604f.feb2 + ip address 10.10.10.10/24 + no shutdown +interface Ethernet2/2 + no switchport + mac-address 2cc2.604f.feb2 + ip address 10.100.100.1/24 + ipv6 address 2001::db8:1010:200c:1/64 + no shutdown +interface Ethernet2/3 + no switchport + mac-address 2cc2.604f.feb2 + no shutdown +interface Ethernet2/4 + no switchport + mac-address 2cc2.604f.feb2 + ip address 10.100.17.1/24 + no shutdown +interface Ethernet2/5 + no switchport + mac-address 2cc2.604f.feb2 + no shutdown +interface Ethernet2/6 + no switchport + mac-address 2cc2.604f.feb2 + no shutdown +interface Ethernet2/7 + no switchport + mac-address 2cc2.604f.feb2 + no shutdown +interface Ethernet2/8 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/9 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/10 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/11 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/12 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/13 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/14 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/15 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/16 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/17 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/18 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/19 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/20 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/21 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/22 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/23 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/24 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/25 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/26 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/27 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/28 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/29 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/30 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/31 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/32 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/33 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/34 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/35 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/36 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/37 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/38 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/39 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/40 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/41 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/42 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/43 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/44 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/45 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/46 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/47 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet2/48 + shutdown + no switchport + mac-address 2cc2.604f.feb2 +interface Ethernet3/1 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/2 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/3 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/4 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/5 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/6 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/7 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/8 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/9 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/10 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/11 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/12 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/13 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/14 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/15 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/16 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/17 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/18 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/19 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/20 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/21 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/22 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/23 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/24 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/25 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/26 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/27 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/28 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/29 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/30 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/31 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/32 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/33 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/34 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/35 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/36 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/37 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/38 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/39 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/40 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/41 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/42 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/43 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/44 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/45 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/46 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/47 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet3/48 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/1 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/2 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/3 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/4 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/5 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/6 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/7 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/8 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/9 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/10 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/11 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/12 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/13 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/14 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/15 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/16 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/17 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/18 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/19 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/20 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/21 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/22 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/23 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/24 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/25 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/26 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/27 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/28 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/29 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/30 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/31 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/32 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/33 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/34 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/35 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/36 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/37 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/38 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/39 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/40 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/41 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/42 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/43 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/44 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/45 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/46 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/47 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface Ethernet4/48 + shutdown + no switchport + mac-address 000c.29d1.d56b +interface loopback0 + ip address 1.1.2.225/32 + ipv6 address 2001:db8::225/64 +interface loopback55 + ip address 1.1.1.37/24 + ipv6 address 2001:db8::37/32 +line console +line vty +boot kickstart bootflash://sup-1/titanium-d1-kickstart.7.3.1.D1.0.10.bin +boot system bootflash://sup-1/titanium-d1.7.3.1.D1.0.10.bin +router bgp 22 + neighbor 10.100.17.2 remote-as 22 + address-family ipv4 unicast +no system default switchport shutdown +nxapi https port 8443 +nxapi sandbox +logging module 4 +logging monitor 4 +no logging console +logging history size 400 diff --git a/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt new file mode 100644 index 000000000..e7a23d430 --- /dev/null +++ b/test/nxos_ssh/mocked_data/test_get_config_sanitized_filtered/normal/show_startup_config.txt @@ -0,0 +1,676 @@ +!Command: show startup-config +!Time: Sun Aug 6 17:36:54 2017 +!Startup config saved at: Sun Aug 6 15:32:43 2017 +version 7.3(1)D1(1) +power redundancy-mode redundant +license grace-period +hostname nxos1 +vdc nxos1 id 1 + limit-resource module-type m1 m1xl m2xl f2e + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + allocate interface Ethernet4/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 +feature telnet +feature scp-server +cfs eth distribute +feature bgp +feature interface-vlan +feature hsrp +feature vpc +feature lldp +feature nxapi +username admin password 5 $5$aH4ttsPk$kNH7qXBaegskBUekuymPzaL5Q0Vh/mQVSdw4tQ0AcU7 role network-admin +username pyclass password 5 $5$tGpa9bmJ$7I3Bg.0yqiweZ09vmj.gb7Q2antjGVs9J0nWSawvP/4 role network-admin +username pyclass passphrase lifetime 99999 warntime 14 gracetime 3 +no password strength-check +ip domain-lookup +ip domain-name madeupdomain.com +ip name-server 8.8.8.8 8.8.4.4 +vlan dot1Q tag native +system default switchport +system jumbomtu 0 +no logging event trunk-status enable +copp profile strict +snmp-server contact Test +snmp-server location Test +snmp-server user pyclass network-admin auth md5 0xd1e3bf7019f3a9c3ee4dccd381f0e4f3 priv 0xd1e3bf7019f3a9c3ee4dccd381f0e4f3 localizedkey +snmp-server user admin auth md5 0x9e902c388e9b4c616e7c7c98d1079325 priv 0x9e902c388e9b4c616e7c7c98d1079325 localizedkey engineID 128:0:0:9:3:0:12:41:209:213:60 +rmon event 1 log description FATAL(1) owner PMON@FATAL +rmon event 2 log description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log description ERROR(3) owner PMON@ERROR +rmon event 4 log description WARNING(4) owner PMON@WARNING +rmon event 5 log description INFORMATION(5) owner PMON@INFO +snmp-server enable traps link +snmp-server community networktocode group network-operator +ntp server 130.126.24.24 +ntp server 152.2.21.1 +vlan 1,301-304,550-552,559 +vlan 301 + name BLUE_DIAMOND +vlan 302 + name RED_DIAMOND +vlan 303 + name GREEN_DIAMOND +vlan 304 + name YELLOW_DIAMOND +vlan 550 + name BLACK +vlan 551 + name ORANGE +vlan 552 + name PINK +vlan 559 + name BROWN +vrf context management + ip route 0.0.0.0/0 10.0.0.2 +interface mgmt0 + vrf member management + ip address 10.0.0.71/24 +interface Vlan1 +interface Ethernet2/1 + no switchport + mac-address 2cc2.605e.5de8 + ip address 10.10.10.10/24 + no shutdown +interface Ethernet2/2 + no switchport + mac-address 2cc2.605e.5de8 + ip address 10.100.100.1/24 + ipv6 address 2001::db8:1010:200c:1/64 + no shutdown +interface Ethernet2/3 + no switchport + mac-address 2cc2.605e.5de8 + no shutdown +interface Ethernet2/4 + no switchport + mac-address 2cc2.605e.5de8 + ip address 10.100.17.1/24 + no shutdown +interface Ethernet2/5 + no switchport + mac-address 2cc2.605e.5de8 + no shutdown +interface Ethernet2/6 + no switchport + mac-address 2cc2.605e.5de8 + no shutdown +interface Ethernet2/7 + no switchport + mac-address 2cc2.605e.5de8 + no shutdown +interface Ethernet2/8 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/9 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/10 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/11 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/12 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/13 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/14 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/15 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/16 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/17 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/18 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/19 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/20 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/21 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/22 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/23 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/24 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/25 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/26 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/27 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/28 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/29 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/30 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/31 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/32 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/33 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/34 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/35 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/36 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/37 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/38 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/39 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/40 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/41 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/42 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/43 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/44 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/45 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/46 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/47 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet2/48 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/1 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/2 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/3 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/4 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/5 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/6 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/7 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/8 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/9 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/10 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/11 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/12 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/13 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/14 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/15 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/16 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/17 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/18 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/19 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/20 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/21 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/22 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/23 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/24 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/25 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/26 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/27 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/28 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/29 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/30 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/31 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/32 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/33 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/34 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/35 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/36 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/37 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/38 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/39 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/40 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/41 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/42 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/43 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/44 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/45 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/46 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/47 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet3/48 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/1 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/2 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/3 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/4 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/5 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/6 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/7 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/8 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/9 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/10 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/11 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/12 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/13 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/14 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/15 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/16 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/17 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/18 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/19 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/20 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/21 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/22 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/23 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/24 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/25 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/26 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/27 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/28 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/29 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/30 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/31 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/32 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/33 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/34 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/35 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/36 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/37 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/38 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/39 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/40 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/41 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/42 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/43 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/44 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/45 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/46 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/47 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface Ethernet4/48 + shutdown + no switchport + mac-address 2cc2.605e.5de8 +interface loopback0 + ip address 1.1.2.225/32 + ipv6 address 2001:db8::225/64 +interface loopback55 + ip address 1.1.1.37/24 + ipv6 address 2001:db8::37/32 +line console +line vty +boot kickstart bootflash://sup-1/titanium-d1-kickstart.7.3.1.D1.0.10.bin +boot system bootflash://sup-1/titanium-d1.7.3.1.D1.0.10.bin +router bgp 22 + neighbor 10.100.17.2 remote-as 22 + address-family ipv4 unicast +no system default switchport shutdown +nxapi https port 8443 +nxapi sandbox +logging module 4 +logging monitor 4 +no logging console +logging history size 400