From 0e481d4467965da9ede01584c541d66439cda5f9 Mon Sep 17 00:00:00 2001 From: julmanglano Date: Tue, 23 Jun 2026 13:35:03 +0200 Subject: [PATCH 1/2] Add paloalto_panos show lldp neighbors all --- ntc_templates/templates/index | 1 + ...alto_panos_show_lldp_neighbors_all.textfsm | 56 ++++ ...paloalto_panos_show_lldp_neighbors_all.raw | 275 +++++++++++++++++ ...paloalto_panos_show_lldp_neighbors_all.yml | 218 +++++++++++++ ...aloalto_panos_show_lldp_neighbors_all2.raw | 291 ++++++++++++++++++ ...aloalto_panos_show_lldp_neighbors_all2.yml | 218 +++++++++++++ 6 files changed, 1059 insertions(+) create mode 100644 ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.raw create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.yml create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.raw create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index f1b5de5b87..1af4f9ca02 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -964,6 +964,7 @@ paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] paloalto_panos_test_security-policy-match.textfsm, .*, paloalto_panos, test security-policy-match.* paloalto_panos_show_interface_management.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] man[[agement]] paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] hard[[ware]] +paloalto_panos_show_lldp_neighbors_all.textfsm, .*, paloalto_panos, sh[[ow]] ll[[dp]] n[[eighbors]] all paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]] paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]] paloalto_panos_show_routing_resource.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] res[[ource]] diff --git a/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm b/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm new file mode 100644 index 0000000000..1dc5e830f5 --- /dev/null +++ b/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm @@ -0,0 +1,56 @@ +Value Required LOCAL_INTERFACE (\S+) +Value INDEX (\d+) +Value LOCAL_PORT_ID (\S+) +Value NEIGHBOR_CHASSIS_TYPE (\S.*\S) +Value CHASSIS_ID (\S+) +Value PORT_TYPE (\S.*\S) +Value NEIGHBOR_INTERFACE (\S+) +Value NEIGHBOR_INTERFACE_DESCRIPTION (\S.*\S) +Value TTL (\d+) +Value NEIGHBOR_NAME (\S+) +Value NEIGHBOR_DESCRIPTION (\S.*\S) +Value CAPABILITIES_SUPPORTED (\S.*\S) +Value CAPABILITIES (\S.*\S) +Value MGMT_ADDRESS_TYPE (\S+) +Value MGMT_ADDRESS (\S+) +Value INTERFACE_NUMBER (\d+) +Value INTERFACE_TYPE (\S+) +Value OID (\S+) + +Start + ^\s*Local\s+information:\s*$$ -> Record + ^\s*Index\s+${INDEX}\s*$$ + ^\s*Local\s+interface:\s+${LOCAL_INTERFACE}\s*$$ + ^\s*Local\s+Port\s+ID:\s+${LOCAL_PORT_ID}\s*$$ + ^\s*Neighbor\s+information:\s*$$ + ^\s*Chassis\s+type:\s+${NEIGHBOR_CHASSIS_TYPE}\s*$$ + ^\s*Chassis\s+ID:\s+${CHASSIS_ID}\s*$$ + ^\s*Port\s+type:\s+${PORT_TYPE}\s*$$ + ^\s*Port\s+ID:\s+${NEIGHBOR_INTERFACE}\s*$$ + ^\s*Port\s+description:\s+${NEIGHBOR_INTERFACE_DESCRIPTION}\s*$$ + ^\s*Port\s+description:\s*$$ + ^\s*TTL:\s+${TTL}\s*$$ + ^\s*System\s+name:\s+${NEIGHBOR_NAME}\s*$$ + ^\s*System\s+name:\s*$$ + ^\s*System\s+description:\s+${NEIGHBOR_DESCRIPTION}\s*$$ -> SysDescr + ^\s*System\s+description:\s*$$ + ^\s*System\s+capabilities:\s*$$ + ^\s*Supported:\s+${CAPABILITIES_SUPPORTED}\s*$$ + ^\s*Supported:\s*$$ + ^\s*Enabled:\s+${CAPABILITIES}\s*$$ + ^\s*Enabled:\s*$$ + ^\s*Management\s+address\s+type:\s+${MGMT_ADDRESS_TYPE}\s*$$ + ^\s*Management\s+address:\s+${MGMT_ADDRESS}\s*$$ + ^\s*Interface\s+number:\s+${INTERFACE_NUMBER}\s*$$ + ^\s*Interface\s+type:\s+${INTERFACE_TYPE}\s*$$ + ^\s*oid:\s+${OID}\s*$$ + ^\s*oid:\s*$$ + ^\s*$$ + ^. -> Error + +# multi-line System description (e.g. HPE Comware platforms emit a 3-line description) +SysDescr + ^\s*System\s+capabilities:\s*$$ -> Start + ^\s*\S.*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.raw b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.raw new file mode 100644 index 0000000000..0285e1001d --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.raw @@ -0,0 +1,275 @@ +Local information: +Index 26 +Local interface: ethernet1/11 +Local Port ID: 11 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 8c:36:7a:aa:bb:cc +Port type: Interface name +Port ID: ethernet1/12 +Port description: TRANSIT_INTERFACE_VIA_LOOP_CABLE +TTL: 105 +System name: FIREWALL-1 +System description: Palo Alto Networks PA-3400 series firewall +System capabilities: +Supported: O, P, B, R, +Enabled: O, R, + +Local information: +Index 27 +Local interface: ethernet1/12 +Local Port ID: 12 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 8c:36:7a:aa:bb:cc +Port type: Interface name +Port ID: ethernet1/11 +Port description: +TTL: 105 +System name: +System description: +System capabilities: +Supported: +Enabled: + +Local information: +Index 30 +Local interface: ethernet1/15 +Local Port ID: 15 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:aa:bb:cc +Port type: Interface name +Port ID: 1/1/4 +Port description: UPLINK_TO_FIREWALL-2_A +TTL: 119 +System name: SWITCH-1 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 32 +Local interface: ethernet1/17 +Local Port ID: 17 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:dd:ee:ff +Port type: Interface name +Port ID: 1/1/4 +Port description: UPLINK_TO_FIREWALL-2_A - 1/17 +TTL: 117 +System name: SWITCH-2 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 34 +Local interface: ethernet1/19 +Local Port ID: 19 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:aa:bb:cc +Port type: Interface name +Port ID: 1/1/6 +Port description: UPLINK_TO_FIREWALL-2_B +TTL: 119 +System name: SWITCH-1 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 35 +Local interface: ethernet1/20 +Local Port ID: 20 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:dd:ee:ff +Port type: Interface name +Port ID: 1/1/6 +Port description: UPLINK_TO_FIREWALL-2_B - 1/1/19 +TTL: 117 +System name: SWITCH-2 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 36 +Local interface: ethernet1/21 +Local Port ID: 21 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:aa:bb:cc +Port type: Interface name +Port ID: 1/1/5 +Port description: UPLINK_TO_FIREWALL-2_C +TTL: 119 +System name: SWITCH-1 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 37 +Local interface: ethernet1/22 +Local Port ID: 22 +Neighbor information: + +Chassis type: MAC address +Chassis ID: bc:d7:a5:dd:ee:ff +Port type: Interface name +Port ID: 1/1/5 +Port description: UPLINK_TO_FIREWALL-2_C - 1/22 +TTL: 117 +System name: SWITCH-2 +System description: Aruba JL635A GL.10.13.1050 +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 33554532 +Interface type: Ifindex +oid: 1.3.6.1.2.1.31.1.1.1.1.33554532. + + +Local information: +Index 28 +Local interface: ethernet1/13 +Local Port ID: 13 +Neighbor information: + +Chassis type: MAC address +Chassis ID: f4:03:43:aa:bb:cc +Port type: Locally assigned +Port ID: 23 +Port description: 1/23 +TTL: 101 +System name: SWITCH-3 +System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.30 +Interface number: 0 +Interface type: Ifindex +oid: + + +Local information: +Index 29 +Local interface: ethernet1/14 +Local Port ID: 14 +Neighbor information: + +Chassis type: MAC address +Chassis ID: f4:03:43:aa:bb:cc +Port type: Locally assigned +Port ID: 22 +Port description: 1/22 +TTL: 101 +System name: SWITCH-3 +System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.30 +Interface number: 0 +Interface type: Ifindex +oid: + + +Local information: +Index 23 +Local interface: ethernet1/8 +Local Port ID: 8 +Neighbor information: + +Chassis type: MAC address +Chassis ID: f4:03:43:aa:bb:cc +Port type: Locally assigned +Port ID: 5 +Port description: 1/5 +TTL: 101 +System name: SWITCH-3 +System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.30 +Interface number: 0 +Interface type: Ifindex +oid: + + +Local information: +Index 31 +Local interface: ethernet1/16 +Local Port ID: 16 +Neighbor information: + +Chassis type: MAC address +Chassis ID: f4:03:43:aa:bb:cc +Port type: Locally assigned +Port ID: 21 +Port description: 1/21 +TTL: 101 +System name: SWITCH-3 +System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.30 +Interface number: 0 +Interface type: Ifindex +oid: + diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.yml b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.yml new file mode 100644 index 0000000000..df3bfc73c8 --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all.yml @@ -0,0 +1,218 @@ +--- +parsed_sample: + - capabilities: "O, R," + capabilities_supported: "O, P, B, R," + chassis_id: "8c:36:7a:aa:bb:cc" + index: "26" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/11" + local_port_id: "11" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "MAC address" + neighbor_description: "Palo Alto Networks PA-3400 series firewall" + neighbor_interface: "ethernet1/12" + neighbor_interface_description: "TRANSIT_INTERFACE_VIA_LOOP_CABLE" + neighbor_name: "FIREWALL-1" + oid: "" + port_type: "Interface name" + ttl: "105" + - capabilities: "" + capabilities_supported: "" + chassis_id: "8c:36:7a:aa:bb:cc" + index: "27" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/12" + local_port_id: "12" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "MAC address" + neighbor_description: "" + neighbor_interface: "ethernet1/11" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "Interface name" + ttl: "105" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:aa:bb:cc" + index: "30" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/15" + local_port_id: "15" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/4" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_A" + neighbor_name: "SWITCH-1" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "119" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:dd:ee:ff" + index: "32" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/17" + local_port_id: "17" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/4" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_A - 1/17" + neighbor_name: "SWITCH-2" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "117" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:aa:bb:cc" + index: "34" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/19" + local_port_id: "19" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/6" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_B" + neighbor_name: "SWITCH-1" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "119" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:dd:ee:ff" + index: "35" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/20" + local_port_id: "20" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/6" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_B - 1/1/19" + neighbor_name: "SWITCH-2" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "117" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:aa:bb:cc" + index: "36" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/21" + local_port_id: "21" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/5" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_C" + neighbor_name: "SWITCH-1" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "119" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "bc:d7:a5:dd:ee:ff" + index: "37" + interface_number: "33554532" + interface_type: "Ifindex" + local_interface: "ethernet1/22" + local_port_id: "22" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL635A GL.10.13.1050" + neighbor_interface: "1/1/5" + neighbor_interface_description: "UPLINK_TO_FIREWALL-2_C - 1/22" + neighbor_name: "SWITCH-2" + oid: "1.3.6.1.2.1.31.1.1.1.1.33554532." + port_type: "Interface name" + ttl: "117" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "f4:03:43:aa:bb:cc" + index: "28" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/13" + local_port_id: "13" + mgmt_address: "192.0.2.30" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))" + neighbor_interface: "23" + neighbor_interface_description: "1/23" + neighbor_name: "SWITCH-3" + oid: "" + port_type: "Locally assigned" + ttl: "101" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "f4:03:43:aa:bb:cc" + index: "29" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/14" + local_port_id: "14" + mgmt_address: "192.0.2.30" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))" + neighbor_interface: "22" + neighbor_interface_description: "1/22" + neighbor_name: "SWITCH-3" + oid: "" + port_type: "Locally assigned" + ttl: "101" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "f4:03:43:aa:bb:cc" + index: "23" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/8" + local_port_id: "8" + mgmt_address: "192.0.2.30" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))" + neighbor_interface: "5" + neighbor_interface_description: "1/5" + neighbor_name: "SWITCH-3" + oid: "" + port_type: "Locally assigned" + ttl: "101" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "f4:03:43:aa:bb:cc" + index: "31" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/16" + local_port_id: "16" + mgmt_address: "192.0.2.30" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))" + neighbor_interface: "21" + neighbor_interface_description: "1/21" + neighbor_name: "SWITCH-3" + oid: "" + port_type: "Locally assigned" + ttl: "101" diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.raw b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.raw new file mode 100644 index 0000000000..7dc20b5c4e --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.raw @@ -0,0 +1,291 @@ +Local information: +Index 30 +Local interface: ethernet1/15 +Local Port ID: 15 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/2/0/8 +Port description: Ten-GigabitEthernet1/2/0/8 Interface +TTL: 97 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 18690 +Interface type: Ifindex +oid: + + +Local information: +Index 28 +Local interface: ethernet1/13 +Local Port ID: 13 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/2/0/7 +Port description: Ten-GigabitEthernet1/2/0/7 Interface +TTL: 93 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.11 +Interface number: 18685 +Interface type: Ifindex +oid: + + +Local information: +Index 29 +Local interface: ethernet1/14 +Local Port ID: 14 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/3/0/7 +Port description: Ten-GigabitEthernet1/3/0/7 Interface +TTL: 120 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.11 +Interface number: 18685 +Interface type: Ifindex +oid: + + +Local information: +Index 26 +Local interface: ethernet1/11 +Local Port ID: 11 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 8c:36:7a:aa:bb:cc +Port type: Interface name +Port ID: ethernet1/12 +Port description: TRANSIT_INTERFACE_VIA_LOOP_CABLE +TTL: 120 +System name: FIREWALL-1 +System description: Palo Alto Networks PA-3400 series firewall +System capabilities: +Supported: O, P, B, R, +Enabled: O, R, + +Local information: +Index 27 +Local interface: ethernet1/12 +Local Port ID: 12 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 8c:36:7a:aa:bb:cc +Port type: Interface name +Port ID: ethernet1/11 +Port description: TRANSIT_INTERFACE_VIA_LOOP_CABLE +TTL: 120 +System name: FIREWALL-1 +System description: Palo Alto Networks PA-3400 series firewall +System capabilities: +Supported: O, P, B, R, +Enabled: O, R, + +Local information: +Index 23 +Local interface: ethernet1/8 +Local Port ID: 8 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: GigabitEthernet1/5/0/47 +Port description: "UPLINK_TO_FIREWALL-2" +TTL: 117 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.12 +Interface number: 18801 +Interface type: Ifindex +oid: + + +Local information: +Index 31 +Local interface: ethernet1/16 +Local Port ID: 16 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/3/0/8 +Port description: Ten-GigabitEthernet1/3/0/8 Interface +TTL: 91 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 18690 +Interface type: Ifindex +oid: + + +Local information: +Index 32 +Local interface: ethernet1/17 +Local Port ID: 17 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/2/0/9 +Port description: Ten-GigabitEthernet1/2/0/9 Interface +TTL: 99 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.13 +Interface number: 18823 +Interface type: Ifindex +oid: + + +Local information: +Index 33 +Local interface: ethernet1/18 +Local Port ID: 18 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: Ten-GigabitEthernet1/3/0/9 +Port description: Ten-GigabitEthernet1/3/0/9 Interface +TTL: 95 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.13 +Interface number: 18823 +Interface type: Ifindex +oid: + + +Local information: +Index 22 +Local interface: ethernet1/7 +Local Port ID: 7 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 78:48:59:aa:bb:cc +Port type: Interface name +Port ID: GigabitEthernet1/4/0/47 +Port description: "UPLINK_TO_FIREWALL-2" +TTL: 102 +System name: SWITCH-1 +System description: HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08 +HP 10504 +Copyright (c) 2010-2021 Hewlett Packard Enterprise Development LP +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.12 +Interface number: 18801 +Interface type: Ifindex +oid: + + +Local information: +Index 16 +Local interface: ethernet1/1 +Local Port ID: 1 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 14:02:ec:aa:bb:cc +Port type: Locally assigned +Port ID: 4 +Port description: 1/4 +TTL: 109 +System name: SWITCH-2 +System description: HP J9726A 2920-24G Switch, revision WB.16.10.0015, ROM WB.16.03 (/ws/swbuildm/rel_ajanta_arenal_qaoff/code/build/anm(swbuildm_rel_ajanta_arenal_qaoff_rel_ajanta_arenal)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: Ifindex +oid: + + +Local information: +Index 17 +Local interface: ethernet1/2 +Local Port ID: 2 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 14:02:ec:aa:bb:cc +Port type: Locally assigned +Port ID: 5 +Port description: 1/5 +TTL: 109 +System name: SWITCH-2 +System description: HP J9726A 2920-24G Switch, revision WB.16.10.0015, ROM WB.16.03 (/ws/swbuildm/rel_ajanta_arenal_qaoff/code/build/anm(swbuildm_rel_ajanta_arenal_qaoff_rel_ajanta_arenal)) +System capabilities: +Supported: B, R, +Enabled: B, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: Ifindex +oid: + diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.yml b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.yml new file mode 100644 index 0000000000..107c0069dd --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all2.yml @@ -0,0 +1,218 @@ +--- +parsed_sample: + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "30" + interface_number: "18690" + interface_type: "Ifindex" + local_interface: "ethernet1/15" + local_port_id: "15" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/2/0/8" + neighbor_interface_description: "Ten-GigabitEthernet1/2/0/8 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "97" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "28" + interface_number: "18685" + interface_type: "Ifindex" + local_interface: "ethernet1/13" + local_port_id: "13" + mgmt_address: "192.0.2.11" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/2/0/7" + neighbor_interface_description: "Ten-GigabitEthernet1/2/0/7 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "93" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "29" + interface_number: "18685" + interface_type: "Ifindex" + local_interface: "ethernet1/14" + local_port_id: "14" + mgmt_address: "192.0.2.11" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/3/0/7" + neighbor_interface_description: "Ten-GigabitEthernet1/3/0/7 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "120" + - capabilities: "O, R," + capabilities_supported: "O, P, B, R," + chassis_id: "8c:36:7a:aa:bb:cc" + index: "26" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/11" + local_port_id: "11" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "MAC address" + neighbor_description: "Palo Alto Networks PA-3400 series firewall" + neighbor_interface: "ethernet1/12" + neighbor_interface_description: "TRANSIT_INTERFACE_VIA_LOOP_CABLE" + neighbor_name: "FIREWALL-1" + oid: "" + port_type: "Interface name" + ttl: "120" + - capabilities: "O, R," + capabilities_supported: "O, P, B, R," + chassis_id: "8c:36:7a:aa:bb:cc" + index: "27" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/12" + local_port_id: "12" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "MAC address" + neighbor_description: "Palo Alto Networks PA-3400 series firewall" + neighbor_interface: "ethernet1/11" + neighbor_interface_description: "TRANSIT_INTERFACE_VIA_LOOP_CABLE" + neighbor_name: "FIREWALL-1" + oid: "" + port_type: "Interface name" + ttl: "120" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "23" + interface_number: "18801" + interface_type: "Ifindex" + local_interface: "ethernet1/8" + local_port_id: "8" + mgmt_address: "192.0.2.12" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "GigabitEthernet1/5/0/47" + neighbor_interface_description: "\"UPLINK_TO_FIREWALL-2\"" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "117" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "31" + interface_number: "18690" + interface_type: "Ifindex" + local_interface: "ethernet1/16" + local_port_id: "16" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/3/0/8" + neighbor_interface_description: "Ten-GigabitEthernet1/3/0/8 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "91" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "32" + interface_number: "18823" + interface_type: "Ifindex" + local_interface: "ethernet1/17" + local_port_id: "17" + mgmt_address: "192.0.2.13" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/2/0/9" + neighbor_interface_description: "Ten-GigabitEthernet1/2/0/9 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "99" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "33" + interface_number: "18823" + interface_type: "Ifindex" + local_interface: "ethernet1/18" + local_port_id: "18" + mgmt_address: "192.0.2.13" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "Ten-GigabitEthernet1/3/0/9" + neighbor_interface_description: "Ten-GigabitEthernet1/3/0/9 Interface" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "95" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "78:48:59:aa:bb:cc" + index: "22" + interface_number: "18801" + interface_type: "Ifindex" + local_interface: "ethernet1/7" + local_port_id: "7" + mgmt_address: "192.0.2.12" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HPE Comware Platform Software, Software Version 7.1.070, Release 7596P08" + neighbor_interface: "GigabitEthernet1/4/0/47" + neighbor_interface_description: "\"UPLINK_TO_FIREWALL-2\"" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "102" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "14:02:ec:aa:bb:cc" + index: "16" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/1" + local_port_id: "1" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HP J9726A 2920-24G Switch, revision WB.16.10.0015, ROM WB.16.03 (/ws/swbuildm/rel_ajanta_arenal_qaoff/code/build/anm(swbuildm_rel_ajanta_arenal_qaoff_rel_ajanta_arenal))" + neighbor_interface: "4" + neighbor_interface_description: "1/4" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Locally assigned" + ttl: "109" + - capabilities: "B," + capabilities_supported: "B, R," + chassis_id: "14:02:ec:aa:bb:cc" + index: "17" + interface_number: "0" + interface_type: "Ifindex" + local_interface: "ethernet1/2" + local_port_id: "2" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "HP J9726A 2920-24G Switch, revision WB.16.10.0015, ROM WB.16.03 (/ws/swbuildm/rel_ajanta_arenal_qaoff/code/build/anm(swbuildm_rel_ajanta_arenal_qaoff_rel_ajanta_arenal))" + neighbor_interface: "5" + neighbor_interface_description: "1/5" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Locally assigned" + ttl: "109" From 147855743f8ec553e7d934db3012333f1b8808e6 Mon Sep 17 00:00:00 2001 From: julmanglano Date: Tue, 23 Jun 2026 13:52:42 +0200 Subject: [PATCH 2/2] Broaden INTERFACE_TYPE and add fixtures for multi-token + no-neighbor cases --- ...alto_panos_show_lldp_neighbors_all.textfsm | 2 +- ...aloalto_panos_show_lldp_neighbors_all3.raw | 161 ++++++++++++++++++ ...aloalto_panos_show_lldp_neighbors_all3.yml | 110 ++++++++++++ ...aloalto_panos_show_lldp_neighbors_all4.raw | 36 ++++ ...aloalto_panos_show_lldp_neighbors_all4.yml | 110 ++++++++++++ 5 files changed, 418 insertions(+), 1 deletion(-) create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.raw create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.yml create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.raw create mode 100644 tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.yml diff --git a/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm b/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm index 1dc5e830f5..8e77764767 100644 --- a/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm +++ b/ntc_templates/templates/paloalto_panos_show_lldp_neighbors_all.textfsm @@ -14,7 +14,7 @@ Value CAPABILITIES (\S.*\S) Value MGMT_ADDRESS_TYPE (\S+) Value MGMT_ADDRESS (\S+) Value INTERFACE_NUMBER (\d+) -Value INTERFACE_TYPE (\S+) +Value INTERFACE_TYPE (\S.*\S) Value OID (\S+) Start diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.raw b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.raw new file mode 100644 index 0000000000..e37dc1604c --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.raw @@ -0,0 +1,161 @@ +Local information: +Index 16 +Local interface: ethernet1/1 +Local Port ID: 1 +Neighbor information: + +Chassis type: MAC address +Chassis ID: e4:1f:7b:aa:bb:cc +Port type: Interface name +Port ID: Gi1/0/47 +Port description: to FIREWALL-1 - Ethernet1/1 +TTL: 108 +System name: SWITCH-1 +System description: Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.6.4, RELEASE SOFTWARE (fc1) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Sun 14-Aug-22 07:06 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.10 +Interface number: 123 +Interface type: System Port Number +oid: + + +Local information: +Index 17 +Local interface: ethernet1/2 +Local Port ID: 2 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 00:72:78:aa:bb:cc +Port type: Interface name +Port ID: Gi0/2 +Port description: VLAN_9_FIREWALL +TTL: 92 +System name: SWITCH-2 +System description: Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Thu 22-Sep-22 09:00 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: System Port Number +oid: + + +Local information: +Index 18 +Local interface: ethernet1/3 +Local Port ID: 3 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 00:72:78:aa:bb:cc +Port type: Interface name +Port ID: Gi0/10 +Port description: to FIREWALL-1 port e1/3 +TTL: 98 +System name: SWITCH-2 +System description: Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Thu 22-Sep-22 09:00 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: System Port Number +oid: + + +Local information: +Index 19 +Local interface: ethernet1/4 +Local Port ID: 4 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 00:72:78:aa:bb:cc +Port type: Interface name +Port ID: Gi0/9 +Port description: to FIREWALL-1 port e1/4 +TTL: 120 +System name: SWITCH-2 +System description: Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Thu 22-Sep-22 09:00 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: System Port Number +oid: + + +Local information: +Index 21 +Local interface: ethernet1/6 +Local Port ID: 6 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 00:72:78:dd:ee:ff +Port type: Interface name +Port ID: Gi0/5 +Port description: to FIREWALL-1 port e1/6 +TTL: 96 +System name: SWITCH-3.example.com +System description: Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Thu 22-Sep-22 09:00 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.21 +Interface number: 0 +Interface type: System Port Number +oid: + + +Local information: +Index 20 +Local interface: ethernet1/5 +Local Port ID: 5 +Neighbor information: + +Chassis type: MAC address +Chassis ID: 00:72:78:aa:bb:cc +Port type: Interface name +Port ID: Gi0/5 +Port description: to FIREWALL-1 port e1/5 +TTL: 118 +System name: SWITCH-2 +System description: Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2022 by Cisco Systems, Inc. +Compiled Thu 22-Sep-22 09:00 by mcpre +System capabilities: +Supported: B, R, +Enabled: B, R, +Management address type: ipv4 +Management address: 192.0.2.20 +Interface number: 0 +Interface type: System Port Number +oid: + diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.yml b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.yml new file mode 100644 index 0000000000..fd89ddfe88 --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all3.yml @@ -0,0 +1,110 @@ +--- +parsed_sample: + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "e4:1f:7b:aa:bb:cc" + index: "16" + interface_number: "123" + interface_type: "System Port Number" + local_interface: "ethernet1/1" + local_port_id: "1" + mgmt_address: "192.0.2.10" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.6.4, RELEASE SOFTWARE (fc1)" + neighbor_interface: "Gi1/0/47" + neighbor_interface_description: "to FIREWALL-1 - Ethernet1/1" + neighbor_name: "SWITCH-1" + oid: "" + port_type: "Interface name" + ttl: "108" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "00:72:78:aa:bb:cc" + index: "17" + interface_number: "0" + interface_type: "System Port Number" + local_interface: "ethernet1/2" + local_port_id: "2" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10)" + neighbor_interface: "Gi0/2" + neighbor_interface_description: "VLAN_9_FIREWALL" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Interface name" + ttl: "92" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "00:72:78:aa:bb:cc" + index: "18" + interface_number: "0" + interface_type: "System Port Number" + local_interface: "ethernet1/3" + local_port_id: "3" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10)" + neighbor_interface: "Gi0/10" + neighbor_interface_description: "to FIREWALL-1 port e1/3" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Interface name" + ttl: "98" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "00:72:78:aa:bb:cc" + index: "19" + interface_number: "0" + interface_type: "System Port Number" + local_interface: "ethernet1/4" + local_port_id: "4" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10)" + neighbor_interface: "Gi0/9" + neighbor_interface_description: "to FIREWALL-1 port e1/4" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Interface name" + ttl: "120" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "00:72:78:dd:ee:ff" + index: "21" + interface_number: "0" + interface_type: "System Port Number" + local_interface: "ethernet1/6" + local_port_id: "6" + mgmt_address: "192.0.2.21" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10)" + neighbor_interface: "Gi0/5" + neighbor_interface_description: "to FIREWALL-1 port e1/6" + neighbor_name: "SWITCH-3.example.com" + oid: "" + port_type: "Interface name" + ttl: "96" + - capabilities: "B, R," + capabilities_supported: "B, R," + chassis_id: "00:72:78:aa:bb:cc" + index: "20" + interface_number: "0" + interface_type: "System Port Number" + local_interface: "ethernet1/5" + local_port_id: "5" + mgmt_address: "192.0.2.20" + mgmt_address_type: "ipv4" + neighbor_chassis_type: "MAC address" + neighbor_description: "Cisco IOS Software, C3560CX Software (C3560CX-UNIVERSALK9-M), Version 15.2(7)E7, RELEASE SOFTWARE (fc10)" + neighbor_interface: "Gi0/5" + neighbor_interface_description: "to FIREWALL-1 port e1/5" + neighbor_name: "SWITCH-2" + oid: "" + port_type: "Interface name" + ttl: "118" diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.raw b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.raw new file mode 100644 index 0000000000..4eb67f3f61 --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.raw @@ -0,0 +1,36 @@ +Local information: +Index 28 +Local interface: ethernet1/13 +Local Port ID: 13 +Neighbor information: + +Local information: +Index 29 +Local interface: ethernet1/14 +Local Port ID: 14 +Neighbor information: + +Local information: +Index 32 +Local interface: ethernet1/17 +Local Port ID: 17 +Neighbor information: + +Local information: +Index 16 +Local interface: ethernet1/1 +Local Port ID: 1 +Neighbor information: + +Local information: +Index 17 +Local interface: ethernet1/2 +Local Port ID: 2 +Neighbor information: + +Local information: +Index 33 +Local interface: ethernet1/18 +Local Port ID: 18 +Neighbor information: + diff --git a/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.yml b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.yml new file mode 100644 index 0000000000..6f1ba650d1 --- /dev/null +++ b/tests/paloalto_panos/show_lldp_neighbors_all/paloalto_panos_show_lldp_neighbors_all4.yml @@ -0,0 +1,110 @@ +--- +parsed_sample: + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "28" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/13" + local_port_id: "13" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "29" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/14" + local_port_id: "14" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "32" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/17" + local_port_id: "17" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "16" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/1" + local_port_id: "1" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "17" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/2" + local_port_id: "2" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "" + index: "33" + interface_number: "" + interface_type: "" + local_interface: "ethernet1/18" + local_port_id: "18" + mgmt_address: "" + mgmt_address_type: "" + neighbor_chassis_type: "" + neighbor_description: "" + neighbor_interface: "" + neighbor_interface_description: "" + neighbor_name: "" + oid: "" + port_type: "" + ttl: ""