diff --git a/docs/dev/data_model.md b/docs/dev/data_model.md index b760a73d5d..9732ab41f2 100644 --- a/docs/dev/data_model.md +++ b/docs/dev/data_model.md @@ -18,33 +18,43 @@ Example: Imagine the extra programming logic needed to consume structured data w # Common Capture Groups -| Capture Group | Usage Description | -|---------------------------|:------------------| -| `BIA` | use this if the template already has MAC_ADDRESS in use for the active MAC address | -| `BUNDLE_NAME` | virtual interface name for etherchannel, LACP, LAG, or port-channel interfaces | -| `BUNDLE_PROTOCOL` | virtual interface protocol type (LACP, PAgP) for etherchannel or port-channel interfaces | -| `BUNDLE_PROTOCOL_STATE` | virtual interface protocol state for etherchannel or port-channel interfaces | -| `BUNDLE_STATUS` | virtual interface status for etherchannel, LACP, LAG, or port-channel interfaces | -| `DESCRIPTION` | often used for port or interface descriptions | -| `GATEWAY` | gateway address for a subnet | -| `INTERFACE` | full word instead of IFACE, INTF, INTFC, etc | -| `IP_ADDRESS` | for a single IP address, often IPv4 | -| `IP_ADDRESSES` | for lists of IPv4 addresses, but in the case of some templates there may be a mix of IP protocol versions | -| `IP_HELPER` | for lists DHCP IP helper addresses | -| `IP_VERSION` | Internet Protocol (IP) version in the case of multiple versions appearing in output (use where necessary) | -| `IPV6_ADDRESS` | for a single IPv6 address | -| `IPV6_ADDRESSES` | for lists of IPv6 addresses | -| `IPV6_GATEWAY` | for IPv6 gateway address | -| `LOCAL_IP_ADDRESS` | local IP address in the case of First Hop Redundancy Protocols (FHRP) -| `MAC_ADDRESS` | instead of MAC or MACADDR | -| `MEMBER_INTERFACE` | list of physical member interface names that are bundled to make an etherchannel, LACP, LAG, or port-channel interface | -| `MEMBER_INTERFACE_STATUS` | list of member interface statuses for an etherchannel, LACP, LAG, or port-channel interface | -| `MGMT_IP_ADDRESS` | instead of MGMT_IP or MGMT_ADDRESS or MANAGEMENT_IP or REMOTE_MANAGEMENT_ADDRESS | -| `NEIGHBOR_ID` | for router IDs remote to the system being parsed | -| `NETMASK` | for IPv4 dotted quad masks | -| `NETWORK` | for network numbers or subnet address (without the mask or prefix/slash notation); in place of ROUTE | -| `PREFIX_LENGTH` | instead of PREFIX or CIDR for the numbers of a slash notation or CIDR mask | -| `PROTOCOL` | instead of PROTO | -| `ROUTER_ID` | for local router IDs (local to the device being parsed) | -| `VLAN_ID` | instead of VLAN or TAG | -| `VLAN_NAME` | VLAN name or description | +| Capture Group | Usage Description | +|----------------------------------|:------------------| +| `BIA` | use this if the template already has MAC_ADDRESS in use for the active MAC address | +| `BUNDLE_NAME` | virtual interface name for etherchannel, LACP, LAG, or port-channel interfaces | +| `BUNDLE_PROTOCOL` | virtual interface protocol type (LACP, PAgP) for etherchannel or port-channel interfaces | +| `BUNDLE_PROTOCOL_STATE` | virtual interface protocol state for etherchannel or port-channel interfaces | +| `BUNDLE_STATUS` | virtual interface status for etherchannel, LACP, LAG, or port-channel interfaces | +| `CAPABILITIES` | often represents active/operational neighbor capabilities shared via CDP or LLDP | +| `CAPABILITIES_SUPPORTED` | often represents supported neighbor capabilities shared via CDP or LLDP | +| `CHASSIS_ID` | often represents CDP or LLDP neighbor chassis ID | +| `DESCRIPTION` | often used for port or interface descriptions | +| `GATEWAY` | gateway address for a subnet | +| `INTERFACE` | full word instead of IFACE, INTF, INTFC, etc | +| `IP_ADDRESS` | for a single IP address, often IPv4 | +| `IP_ADDRESSES` | for lists of IPv4 addresses, but in the case of some templates there may be a mix of IP protocol versions | +| `IP_HELPER` | for lists DHCP IP helper addresses | +| `IP_VERSION` | Internet Protocol (IP) version in the case of multiple versions appearing in output (use where necessary) | +| `IPV6_ADDRESS` | for a single IPv6 address | +| `IPV6_ADDRESSES` | for lists of IPv6 addresses | +| `IPV6_GATEWAY` | for IPv6 gateway address | +| `LOCAL_INTERFACE` | often represents local interface or port for CDP or LLDP | +| `LOCAL_IP_ADDRESS` | local IP address in the case of First Hop Redundancy Protocols (FHRP) | +| `MAC_ADDRESS` | instead of MAC or MACADDR | +| `MEMBER_INTERFACE` | list of physical member interface names that are bundled to make an etherchannel, LACP, LAG, or port-channel interface | +| `MEMBER_INTERFACE_STATUS` | list of member interface statuses for an etherchannel, LACP, LAG, or port-channel interface | +| `MGMT_ADDRESS` | management address, used when data could be an Ethernet MAC address or an IP address (ex: CDP or LLDP templates) | +| `MGMT_IP_ADDRESS` | instead of MGMT_IP or MGMT_ADDRESS or MANAGEMENT_IP or REMOTE_MANAGEMENT_ADDRESS | +| `NEIGHBOR_DESCRIPTION` | often represents CDP or LLDP neighbor or system name description | +| `NEIGHBOR_ID` | for router IDs remote to the system being parsed | +| `NEIGHBOR_INTERFACE` | often represents neighbor or remote interface or port for CDP or LLDP | +| `NEIGHBOR_INTERFACE_DESCRIPTION` | represents CDP or LLDP neighbor (remote host) interface or port descriptions (Note: see NEIGHBOR_INTERFACE) | +| `NEIGHBOR_NAME` | often represents neighbor name for CDP or LLDP | +| `NETMASK` | for IPv4 dotted quad masks | +| `NETWORK` | for network numbers or subnet address (without the mask or prefix/slash notation); in place of ROUTE | +| `PLATFORM` | often represents CDP or LLDP neighbor's platform or model name/number | +| `PREFIX_LENGTH` | instead of PREFIX or CIDR for the numbers of a slash notation or CIDR mask | +| `PROTOCOL` | instead of PROTO | +| `ROUTER_ID` | for local router IDs (local to the device being parsed) | +| `VLAN_ID` | instead of VLAN or TAG | +| `VLAN_NAME` | VLAN name or description | diff --git a/ntc_templates/templates/arista_eos_show_lldp_neighbors.textfsm b/ntc_templates/templates/arista_eos_show_lldp_neighbors.textfsm index f8d2e00a1e..729d4e2382 100644 --- a/ntc_templates/templates/arista_eos_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/arista_eos_show_lldp_neighbors.textfsm @@ -1,4 +1,4 @@ -Value NEIGHBOR (\S+) +Value NEIGHBOR_NAME (\S+) Value LOCAL_INTERFACE (\S+) Value NEIGHBOR_INTERFACE (\S+) @@ -6,5 +6,5 @@ Start ^Port.*TTL -> LLDP LLDP - ^${LOCAL_INTERFACE}\s+${NEIGHBOR}\s+${NEIGHBOR_INTERFACE}\s+.* -> Record + ^${LOCAL_INTERFACE}\s+${NEIGHBOR_NAME}\s+${NEIGHBOR_INTERFACE}\s+.* -> Record diff --git a/ntc_templates/templates/arista_eos_show_lldp_neighbors_detail.textfsm b/ntc_templates/templates/arista_eos_show_lldp_neighbors_detail.textfsm index 0425d376b8..3876a18237 100644 --- a/ntc_templates/templates/arista_eos_show_lldp_neighbors_detail.textfsm +++ b/ntc_templates/templates/arista_eos_show_lldp_neighbors_detail.textfsm @@ -1,23 +1,23 @@ -Value Required DEST_HOST (\S+) -Value SYSTEM_ID (.+?) +Value Required NEIGHBOR_NAME (\S+) +Value CHASSIS_ID (.+?) Value MGMT_ADDRESS (.+?) -Value PLATFORM_VERSION (.+?) -Value REMOTE_PORT (.+?) -Value Filldown LOCAL_PORT (\S+?) -Value Filldown NEIGH_COUNT ([1-9]\d*) +Value NEIGHBOR_DESCRIPTION (.+?) +Value NEIGHBOR_INTERFACE (.+?) +Value Filldown LOCAL_INTERFACE (\S+?) +Value Filldown NEIGHBOR_COUNT ([1-9]\d*) Value AGE (.+?) Start - ^\S+\s+${LOCAL_PORT}\s+\S+\s+${NEIGH_COUNT}.* + ^\S+\s+${LOCAL_INTERFACE}\s+\S+\s+${NEIGHBOR_COUNT}.* ^.*age\s+${AGE}$$ -> Interface Interface - ^\s+Chassis ID\s+:\s+${SYSTEM_ID}$$ + ^\s+Chassis ID\s+:\s+${CHASSIS_ID}$$ ^\s+-\s+Port ID type -> Port_ID - ^\s+-\s+\S+\s+Name:\s+\"${DEST_HOST}\" - ^.*System Description:\s+\"${PLATFORM_VERSION}(\"|$$) + ^\s+-\s+\S+\s+Name:\s+\"${NEIGHBOR_NAME}\" + ^.*System Description:\s+\"${NEIGHBOR_DESCRIPTION}(\"|$$) ^\s+\S+\s+Address\s+:\s+${MGMT_ADDRESS}$$ ^\s*$$ -> Record Start Port_ID - ^\s+Port ID\s+:(\s+\"|\s+)${REMOTE_PORT}(\"|$$) -> Interface + ^\s+Port ID\s+:(\s+\"|\s+)${NEIGHBOR_INTERFACE}(\"|$$) -> Interface diff --git a/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm b/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm index 3c67334b12..2200351ae7 100644 --- a/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm @@ -1,26 +1,26 @@ -Value Required LOCAL_PORT (\S+) +Value Required LOCAL_INTERFACE (\S+) Value Required CHASSIS_ID (\S+) -Value CHASSIS_NAME (\S+) -Value CHASSIS_DESC (.+) +Value NEIGHBOR_NAME (\S+) +Value NEIGHBOR_DESCRIPTION (.+) +Value CAPABILITIES_SUPPORTED (.+) Value CAPABILITIES (.+) -Value CAPABILITIES_ENABLED (.+) -Value MGMT_ADDR (\S+) -Value PORT_ID (\S+) -Value PORT_DESC (\S+) +Value MGMT_ADDRESS (\S+) +Value NEIGHBOR_PORT_ID (\S+) +Value NEIGHBOR_INTERFACE (\S+) Start - ^Port\s*:\s*${LOCAL_PORT} - ^Neighbor\s*Chassis-Name\s*:\s*${CHASSIS_NAME} - ^Neighbor\s+System-Name\s*:\s*${CHASSIS_NAME} - ^Neighbor\s*Chassis-Description\s*:\s*${CHASSIS_DESC} - ^Neighbor\s+System-Description\s*:\s*${CHASSIS_DESC} + ^Port\s*:\s*${LOCAL_INTERFACE} + ^Neighbor\s*Chassis-Name\s*:\s*${NEIGHBOR_NAME} + ^Neighbor\s+System-Name\s*:\s*${NEIGHBOR_NAME} + ^Neighbor\s*Chassis-Description\s*:\s*${NEIGHBOR_DESCRIPTION} + ^Neighbor\s+System-Description\s*:\s*${NEIGHBOR_DESCRIPTION} ^Neighbor\s*Chassis-ID\s*:\s*${CHASSIS_ID} - ^Neighbor\s*Management-Address\s*:\s*${MGMT_ADDR} - ^Chassis\s*Capabilities\s*Available\s*:\s*${CAPABILITIES} - ^Chassis\s*Capabilities\s*Enabled\s*:\s*${CAPABILITIES_ENABLED} - ^Neighbor\s*Port-ID\s*:\s*${PORT_ID} - ^Neighbor\s*Port-Desc\s*:\s*${PORT_DESC} + ^Neighbor\s*Management-Address\s*:\s*${MGMT_ADDRESS} + ^Chassis\s*Capabilities\s*Available\s*:\s*${CAPABILITIES_SUPPORTED} + ^Chassis\s*Capabilities\s*Enabled\s*:\s*${CAPABILITIES} + ^Neighbor\s*Port-ID\s*:\s*${NEIGHBOR_PORT_ID} + ^Neighbor\s*Port-Desc\s*:\s*${NEIGHBOR_INTERFACE} ^-+$$ -> Record ^Neighbor\.* ^TTL\.* diff --git a/ntc_templates/templates/broadcom_icos_show_isdp_neighbors.textfsm b/ntc_templates/templates/broadcom_icos_show_isdp_neighbors.textfsm index 8c468de32d..9729d9dc33 100644 --- a/ntc_templates/templates/broadcom_icos_show_isdp_neighbors.textfsm +++ b/ntc_templates/templates/broadcom_icos_show_isdp_neighbors.textfsm @@ -1,9 +1,9 @@ -Value ID (\S+) -Value INTERFACE (\S+) +Value NEIGHBOR_NAME (\S+) +Value LOCAL_INTERFACE (\S+) Value HOLDTIME (\S+) -Value CAPABILITY ([\w]{1}(?:\s[\w]){0,2}) +Value CAPABILITIES ([\w]{1}(?:\s[\w]){0,2}) Value PLATFORM ((\S+\s\S+)|(\S+)) -Value PORT (.+) +Value NEIGHBOR_INTERFACE (.+) Start # Captures show isdp neighbors for: @@ -13,6 +13,6 @@ Start ^\s+\S+\s+- ^\s*Device\s+ID\s+Intf\s+Holdtime\s+Capability\s+Platform\s+Port\s+ID$$ ^-+ - ^\s*${ID}\s+${INTERFACE}\s+${HOLDTIME}\s+${CAPABILITY}\s+${PLATFORM}\s+${PORT} -> Record + ^\s*${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITIES}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE} -> Record ^\s*$$ - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/ntc_templates/templates/broadcom_icos_show_lldp_remote-device_all.textfsm b/ntc_templates/templates/broadcom_icos_show_lldp_remote-device_all.textfsm index f4f7283733..07736aa581 100644 --- a/ntc_templates/templates/broadcom_icos_show_lldp_remote-device_all.textfsm +++ b/ntc_templates/templates/broadcom_icos_show_lldp_remote-device_all.textfsm @@ -1,8 +1,8 @@ Value LOCAL_INTERFACE (\S+) Value REMOTE_ID (\S+) Value CHASSIS_ID (\S+) -Value PORT_ID (\S+) -Value SYSTEM_NAME (\S+) +Value NEIGHBOR_INTERFACE (\S+) +Value NEIGHBOR_NAME (\S+) Start # Captures show lldp remote-device all for: @@ -12,8 +12,8 @@ Start ^Local ^\s*Interface\s+RemID\s+Chassis\s+ID\s+Port\s+ID\s+System\s+Name$$ ^-+ - ^\s*${LOCAL_INTERFACE}\s+${REMOTE_ID}\s+${CHASSIS_ID}\s+${PORT_ID}\s+${SYSTEM_NAME} -> Record + ^\s*${LOCAL_INTERFACE}\s+${REMOTE_ID}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME} -> Record # Match records that only include the interface value ^\s*${LOCAL_INTERFACE} -> Record ^\s*$$ - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors.textfsm b/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors.textfsm index efd604cf2e..7808fbc51d 100644 --- a/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors.textfsm @@ -1,6 +1,6 @@ -Value Required NEIGHBOR (\S+) +Value Required NEIGHBOR_NAME (\S+) Value Required LOCAL_INTERFACE (\S+) -Value Required HOLD_TIME (\d+) +Value Required HOLDTIME (\d+) Value Required CAPABILITIES (\S+) Value Required NEIGHBOR_INTERFACE (\S+) @@ -8,7 +8,7 @@ Start ^Capability.* ^\s+\(.* ^Device\s+ID\s+Local\s+Intf\s+Hold-time\s+Capability\s+Port\s+ID\s*$$ - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+${HOLD_TIME}\s+${CAPABILITIES}\s+${NEIGHBOR_INTERFACE} -> Record + ^${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITIES}\s+${NEIGHBOR_INTERFACE} -> Record ^Total.* ^\s*$$ ^. -> Error diff --git a/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors_detail.textfsm b/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors_detail.textfsm index ae6c3da7d9..50027dd641 100644 --- a/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors_detail.textfsm +++ b/ntc_templates/templates/brocade_fastiron_show_lldp_neighbors_detail.textfsm @@ -1,24 +1,24 @@ -Value Filldown interface ([0-9\/]+) -Value Required neimac (\w+\.\w+\.\w+) -Value ttlsecs (\d+) -Value neihostnametid (.+) -Value neiinterface ([a-zA-Z0-9\/\s]+) -Value neipvid (\d+|none) -Value neimgmtip (\d+\.\d+\.\d+\.\d+) -Value neilacpindex (\d+) -Value neimaxframesize (\d+) -Value neiopmau ([a-zA-Z0-9\-]+) -Value neicapabilities (.+) +Value Filldown LOCAL_INTERFACE ([0-9\/]+) +Value Required NEIGHBOR_PORT_ID (\w+\.\w+\.\w+) +Value HOLDTIME (\d+) +Value NEIGHBOR_NAME (.+) +Value NEIGHBOR_INTERFACE ([a-zA-Z0-9\/\s]+) +Value VLAN_ID (\d+|none) +Value MGMT_ADDRESS (\d+\.\d+\.\d+\.\d+) +Value NEIGHBOR_LACP_INDEX (\d+) +Value NEIGHBOR_MAX_FRAME_SIZE (\d+) +Value NEIGHBOR_MAU ([a-zA-Z0-9\-]+) +Value CAPABILITIES (.+) Start ^\w -> Continue.Record - ^Local\s+port:\s+${interface} - ^\s+\+\s+System\s+name\s+:\s+"${neihostnametid}" - ^\s+\+\s+Port\s+description\s+:\s+"${neiinterface}" - ^\s+Enabled\s+capabilities\s*:\s+${neicapabilities} - ^\s+\+\s+Port\s+VLAN\s+ID:\s+${neipvid} - ^\s+\+\s+Management\s+address\s+\(IPv4\):\s+${neimgmtip} - ^\s+\+\s+Link\s+aggregation:\s+aggregated\s+\(aggregated\s+port\s+ifIndex:\s+${neilacpindex}\) - ^\s+\+\s+Maximum\s+frame\s+size:\s+${neimaxframesize} - ^\s+Operational\s+MAU\s+type\s+:\s+${neiopmau} - ^\s+Neighbor:\s+${neimac},\s+TTL\s+${ttlsecs} + ^Local\s+port:\s+${LOCAL_INTERFACE} + ^\s+\+\s+System\s+name\s+:\s+"${NEIGHBOR_NAME}" + ^\s+\+\s+Port\s+description\s+:\s+"${NEIGHBOR_INTERFACE}" + ^\s+Enabled\s+capabilities\s*:\s+${CAPABILITIES} + ^\s+\+\s+Port\s+VLAN\s+ID:\s+${VLAN_ID} + ^\s+\+\s+Management\s+address\s+\(IPv4\):\s+${MGMT_ADDRESS} + ^\s+\+\s+Link\s+aggregation:\s+aggregated\s+\(aggregated\s+port\s+ifIndex:\s+${NEIGHBOR_LACP_INDEX}\) + ^\s+\+\s+Maximum\s+frame\s+size:\s+${NEIGHBOR_MAX_FRAME_SIZE} + ^\s+Operational\s+MAU\s+type\s+:\s+${NEIGHBOR_MAU} + ^\s+Neighbor:\s+${NEIGHBOR_PORT_ID},\s+TTL\s+${HOLDTIME} diff --git a/ntc_templates/templates/brocade_netiron_show_lldp_neighbors_detail.textfsm b/ntc_templates/templates/brocade_netiron_show_lldp_neighbors_detail.textfsm index ae6c3da7d9..50027dd641 100644 --- a/ntc_templates/templates/brocade_netiron_show_lldp_neighbors_detail.textfsm +++ b/ntc_templates/templates/brocade_netiron_show_lldp_neighbors_detail.textfsm @@ -1,24 +1,24 @@ -Value Filldown interface ([0-9\/]+) -Value Required neimac (\w+\.\w+\.\w+) -Value ttlsecs (\d+) -Value neihostnametid (.+) -Value neiinterface ([a-zA-Z0-9\/\s]+) -Value neipvid (\d+|none) -Value neimgmtip (\d+\.\d+\.\d+\.\d+) -Value neilacpindex (\d+) -Value neimaxframesize (\d+) -Value neiopmau ([a-zA-Z0-9\-]+) -Value neicapabilities (.+) +Value Filldown LOCAL_INTERFACE ([0-9\/]+) +Value Required NEIGHBOR_PORT_ID (\w+\.\w+\.\w+) +Value HOLDTIME (\d+) +Value NEIGHBOR_NAME (.+) +Value NEIGHBOR_INTERFACE ([a-zA-Z0-9\/\s]+) +Value VLAN_ID (\d+|none) +Value MGMT_ADDRESS (\d+\.\d+\.\d+\.\d+) +Value NEIGHBOR_LACP_INDEX (\d+) +Value NEIGHBOR_MAX_FRAME_SIZE (\d+) +Value NEIGHBOR_MAU ([a-zA-Z0-9\-]+) +Value CAPABILITIES (.+) Start ^\w -> Continue.Record - ^Local\s+port:\s+${interface} - ^\s+\+\s+System\s+name\s+:\s+"${neihostnametid}" - ^\s+\+\s+Port\s+description\s+:\s+"${neiinterface}" - ^\s+Enabled\s+capabilities\s*:\s+${neicapabilities} - ^\s+\+\s+Port\s+VLAN\s+ID:\s+${neipvid} - ^\s+\+\s+Management\s+address\s+\(IPv4\):\s+${neimgmtip} - ^\s+\+\s+Link\s+aggregation:\s+aggregated\s+\(aggregated\s+port\s+ifIndex:\s+${neilacpindex}\) - ^\s+\+\s+Maximum\s+frame\s+size:\s+${neimaxframesize} - ^\s+Operational\s+MAU\s+type\s+:\s+${neiopmau} - ^\s+Neighbor:\s+${neimac},\s+TTL\s+${ttlsecs} + ^Local\s+port:\s+${LOCAL_INTERFACE} + ^\s+\+\s+System\s+name\s+:\s+"${NEIGHBOR_NAME}" + ^\s+\+\s+Port\s+description\s+:\s+"${NEIGHBOR_INTERFACE}" + ^\s+Enabled\s+capabilities\s*:\s+${CAPABILITIES} + ^\s+\+\s+Port\s+VLAN\s+ID:\s+${VLAN_ID} + ^\s+\+\s+Management\s+address\s+\(IPv4\):\s+${MGMT_ADDRESS} + ^\s+\+\s+Link\s+aggregation:\s+aggregated\s+\(aggregated\s+port\s+ifIndex:\s+${NEIGHBOR_LACP_INDEX}\) + ^\s+\+\s+Maximum\s+frame\s+size:\s+${NEIGHBOR_MAX_FRAME_SIZE} + ^\s+Operational\s+MAU\s+type\s+:\s+${NEIGHBOR_MAU} + ^\s+Neighbor:\s+${NEIGHBOR_PORT_ID},\s+TTL\s+${HOLDTIME} diff --git a/ntc_templates/templates/cisco_ios_show_cdp_neighbors.textfsm b/ntc_templates/templates/cisco_ios_show_cdp_neighbors.textfsm index 98b3cff9f1..aca097d787 100644 --- a/ntc_templates/templates/cisco_ios_show_cdp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_ios_show_cdp_neighbors.textfsm @@ -1,6 +1,6 @@ -Value Required NEIGHBOR (\S+) +Value Required NEIGHBOR_NAME (\S+) Value LOCAL_INTERFACE (\S+(?:\s\S+)?) -Value CAPABILITY ((?:\w\s)*\w) +Value CAPABILITIES ((?:\w\s)*\w) Value PLATFORM ((?:[IiPp]{2}\s)?\S+) Value NEIGHBOR_INTERFACE (.+?) @@ -11,6 +11,6 @@ Start ^Time\s+source\s+is CDP - ^${NEIGHBOR}$$ - ^\s*${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record + ^${NEIGHBOR_NAME}$$ + ^\s*${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITIES}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record + ^${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITIES}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record diff --git a/ntc_templates/templates/cisco_ios_show_cdp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_ios_show_cdp_neighbors_detail.textfsm index 95c72275df..44eb21adc0 100644 --- a/ntc_templates/templates/cisco_ios_show_cdp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_ios_show_cdp_neighbors_detail.textfsm @@ -1,27 +1,27 @@ -Value Required DESTINATION_HOST (\S+) -Value MANAGEMENT_IP (\d+\.\d+\.\d+\.\d+|\w+\.\w+\.\w+) +Value Required NEIGHBOR_NAME (\S+) +Value MGMT_ADDRESS (\d+\.\d+\.\d+\.\d+|\w+\.\w+\.\w+) Value PLATFORM (.*) -Value REMOTE_PORT (.*) -Value LOCAL_PORT (.*) -Value SOFTWARE_VERSION (.*$) +Value NEIGHBOR_INTERFACE (.*) +Value LOCAL_INTERFACE (.*) +Value NEIGHBOR_DESCRIPTION (.*$) Value CAPABILITIES (.+?) Start - ^Device ID: ${DESTINATION_HOST} + ^Device ID: ${NEIGHBOR_NAME} ^Entry address\(es\)\s*:\s* -> ParseIP ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES}\s+$$ ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES}$$ - ^Interface: ${LOCAL_PORT}, Port ID \(outgoing port\): ${REMOTE_PORT} + ^Interface: ${LOCAL_INTERFACE}, Port ID \(outgoing port\): ${NEIGHBOR_INTERFACE} ^Version : -> GetVersion # Capture time-stamp if vty line has command time-stamping turned on ^Load\s+for\s+ ^Time\s+source\s+is ParseIP - ^.*IP address: ${MANAGEMENT_IP} -> Start + ^.*IP address: ${MGMT_ADDRESS} -> Start ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES}\s+$$ -> Start ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES}$$ -> Start ^.* -> Start GetVersion - ^${SOFTWARE_VERSION} -> Record Start + ^${NEIGHBOR_DESCRIPTION} -> Record Start diff --git a/ntc_templates/templates/cisco_ios_show_lldp_neighbors.textfsm b/ntc_templates/templates/cisco_ios_show_lldp_neighbors.textfsm index f2b8010053..d1c7910a53 100644 --- a/ntc_templates/templates/cisco_ios_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_ios_show_lldp_neighbors.textfsm @@ -1,4 +1,4 @@ -Value Required NEIGHBOR (.{0,20}(? Record - ^${NEIGHBOR} + ^${NEIGHBOR_NAME}\s*${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITIES}\s+${NEIGHBOR_INTERFACE} -> Record + ^${NEIGHBOR_NAME} ^\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITIES}\s+${NEIGHBOR_INTERFACE} -> Record diff --git a/ntc_templates/templates/cisco_ios_show_lldp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_ios_show_lldp_neighbors_detail.textfsm index 730bdcd957..ed032f6737 100644 --- a/ntc_templates/templates/cisco_ios_show_lldp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_ios_show_lldp_neighbors_detail.textfsm @@ -2,10 +2,10 @@ Value LOCAL_INTERFACE (\S+) Value CHASSIS_ID ([^:]+) Value NEIGHBOR_PORT_ID (.*) Value NEIGHBOR_INTERFACE (.*) -Value NEIGHBOR (.+?) -Value SYSTEM_DESCRIPTION (.*) +Value NEIGHBOR_NAME (.+?) +Value NEIGHBOR_DESCRIPTION (.*) Value CAPABILITIES (.*) -Value MANAGEMENT_IP (\S+) +Value MGMT_ADDRESS (\S+) Value VLAN_ID (\d+) Value MAC_ADDRESS ([0-9a-fA-F]{4}\.[0-9a-fA-F]{4}\.[0-9a-fA-F]{4}) Value SERIAL (\S+) @@ -13,7 +13,7 @@ Value MANUFACTURER (.*) Value HW_REVISION (\S+) Value FW_REVISION (\S+) Value SW_REVISION (\S+) -Value MODEL (.*) +Value PLATFORM (.*) Value POWER_PAIR (\S+) Value POWER_CLASS (\d+) Value POWER_DEVICE_TYPE (\S+) @@ -31,7 +31,7 @@ Start ^Port\s+Description:\s+${NEIGHBOR_INTERFACE}\s*$$ ^System\s+Name(\s+-\s+not\s+advertised)\s*$$ ^System\s+Name:?\s*$$ - ^System\s+Name(:\s+${NEIGHBOR})\s*$$ + ^System\s+Name(:\s+${NEIGHBOR_NAME})\s*$$ ^System\s+Description -> GetDescription ^Time ^System\s+Capabilities @@ -39,7 +39,7 @@ Start ^Management\s+Addresses ^\s+OID ^\s+[\d+\.]{8,} - ^.*IP:\s+${MANAGEMENT_IP}\s*$$ + ^.*IP:\s+${MGMT_ADDRESS}\s*$$ ^Auto\s+Negotiation ^Physical\s+media # Removed \(\s+\) from the template - The line 'Other/unknown' would not be captured @@ -69,7 +69,7 @@ Start ^.*$$ -> Error GetDescription - ^${SYSTEM_DESCRIPTION} -> IgnoreDescription + ^${NEIGHBOR_DESCRIPTION} -> IgnoreDescription IgnoreDescription ^Time\s+remaining -> Start @@ -89,7 +89,7 @@ PowerMDI Med ^\s+Serial\s+number:\s+${SERIAL}\s*$$ ^\s+Manufacturer:\s+${MANUFACTURER}\s*$$ - ^\s+Model:\s+${MODEL}\s*$$ + ^\s+Model:\s+${PLATFORM}\s*$$ ^\s+H/W revision:\s+${HW_REVISION}\s*$$ ^\s+F/W revision:\s+${FW_REVISION}\s*$$ ^\s+S/W revision:\s+${SW_REVISION}\s*$$ diff --git a/ntc_templates/templates/cisco_nxos_show_cdp_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_cdp_neighbors.textfsm index 4b4eb21e4d..2ce7341397 100644 --- a/ntc_templates/templates/cisco_nxos_show_cdp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_cdp_neighbors.textfsm @@ -1,7 +1,7 @@ -Value Required,Filldown NEIGHBOR (\S+) +Value Required,Filldown NEIGHBOR_NAME (\S+) Value Required LOCAL_INTERFACE (\S+) Value HOLDTIME (\d+) -Value CAPABILITY ([\S+\s+]+?) +Value CAPABILITIES ([\S+\s+]+?) Value PLATFORM (\S+) Value NEIGHBOR_INTERFACE (\S+) @@ -9,8 +9,8 @@ Start ^Device.*ID -> CDP CDP - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record - ^${NEIGHBOR}\s*$$ - ^\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record + ^${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITIES}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record + ^${NEIGHBOR_NAME}\s*$$ + ^\s+${LOCAL_INTERFACE}\s+${HOLDTIME}\s+${CAPABILITIES}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record diff --git a/ntc_templates/templates/cisco_nxos_show_cdp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_nxos_show_cdp_neighbors_detail.textfsm index 645e08985f..a8d605bde1 100644 --- a/ntc_templates/templates/cisco_nxos_show_cdp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_cdp_neighbors_detail.textfsm @@ -1,28 +1,28 @@ -Value Required DEST_HOST (.*) -Value SYSNAME (.*) -Value MGMT_IP (.*) +Value Required CHASSIS_ID (.*) +Value NEIGHBOR_NAME (.*) +Value MGMT_ADDRESS (.*) Value PLATFORM (.*) -Value REMOTE_PORT (.*) -Value LOCAL_PORT (.*) -Value VERSION (.*) +Value NEIGHBOR_INTERFACE (.*) +Value LOCAL_INTERFACE (.*) +Value NEIGHBOR_DESCRIPTION (.*) Value INTERFACE_IP (.*) Value CAPABILITIES (.*[^\s]) Start ^Device ID -> Continue.Record - ^Device ID:${DEST_HOST} - ^System Name: ${SYSNAME} + ^Device ID:${CHASSIS_ID} + ^System Name: ${NEIGHBOR_NAME} ^Interface address\(es\):\s*(^[1-9]\d*|$$) -> GetInterfaceIP ^Mgmt address\(es\): -> GetIP ^Platform: ${PLATFORM}, Capabilities: ${CAPABILITIES}\s*$$ - ^Interface: ${LOCAL_PORT}, Port ID \(outgoing port\): ${REMOTE_PORT} + ^Interface: ${LOCAL_INTERFACE}, Port ID \(outgoing port\): ${NEIGHBOR_INTERFACE} ^Version: -> GetVersion GetIP - ^.*IP.+Address: ${MGMT_IP} -> Start + ^.*IP.+Address: ${MGMT_ADDRESS} -> Start GetInterfaceIP ^.*IP.+Address: ${INTERFACE_IP} -> Start GetVersion - ^${VERSION} -> Start + ^${NEIGHBOR_DESCRIPTION} -> Start diff --git a/ntc_templates/templates/cisco_nxos_show_lldp_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_lldp_neighbors.textfsm index 679175d93b..83fdf3987d 100644 --- a/ntc_templates/templates/cisco_nxos_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_lldp_neighbors.textfsm @@ -1,4 +1,4 @@ -Value NEIGHBOR (\S+) +Value NEIGHBOR_NAME (\S+) Value LOCAL_INTERFACE (\S+) Value NEIGHBOR_INTERFACE (\S+) Value CAPABILITIES (\w+) @@ -7,6 +7,6 @@ Start ^Device.*ID -> LLDP LLDP - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s+)?${NEIGHBOR_INTERFACE} -> Record - ^${NEIGHBOR}\s*$$ - ^\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s+)?${NEIGHBOR_INTERFACE} -> Record + ^${NEIGHBOR_NAME}$$ + ^${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s)+\s+${NEIGHBOR_INTERFACE} -> Record + ^\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s)+\s+${NEIGHBOR_INTERFACE} -> Record diff --git a/ntc_templates/templates/cisco_nxos_show_lldp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_nxos_show_lldp_neighbors_detail.textfsm index 05d086b9f5..d101d2da0d 100644 --- a/ntc_templates/templates/cisco_nxos_show_lldp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_lldp_neighbors_detail.textfsm @@ -1,9 +1,9 @@ -Value Required NEIGHBOR (\S+) +Value Required NEIGHBOR_NAME (\S+) Value Required LOCAL_INTERFACE (\S+) Value Required NEIGHBOR_INTERFACE (\S+) Value CHASSIS_ID (\w+?\.\w+?\.\w+?) Value MGMT_ADDRESS (\d+?\.\d+?\.\d+?\.\d+?|\w+?\.\w+?\.\w+?) -Value SYSTEM_DESCRIPTION (.*) +Value NEIGHBOR_DESCRIPTION (.*) Value CAPABILITIES (.*) Value VLAN_ID ([0-9]+) @@ -12,8 +12,8 @@ Start ^[Cc]hassis\s[idID]{2}\:\s${CHASSIS_ID}$$ ^[Pp]ort\s[idID]{2}\:\s${NEIGHBOR_INTERFACE}$$ ^[Ll]ocal\s[Pp]ort\s[idID]{2}\:\s${LOCAL_INTERFACE}$$ - ^[Ss]ystem\s[Nn]ame\:\s${NEIGHBOR}$$ - ^[Ss]ystem\s[Dd]escription\:\s${SYSTEM_DESCRIPTION}$$ + ^[Ss]ystem\s[Nn]ame\:\s${NEIGHBOR_NAME}$$ + ^[Ss]ystem\s[Dd]escription\:\s${NEIGHBOR_DESCRIPTION}$$ ^[Ee]nabled\s[Cc]apabilities\:\s${CAPABILITIES}$$ ^[Mm]anagement\s[Aa]ddress\:\s${MGMT_ADDRESS}$$ ^[Vv]lan\s[idID]{2}\:\s${VLAN_ID}$$ -> Record diff --git a/ntc_templates/templates/cisco_s300_show_lldp_neighbors.textfsm b/ntc_templates/templates/cisco_s300_show_lldp_neighbors.textfsm index d163045cfc..61ee90770f 100644 --- a/ntc_templates/templates/cisco_s300_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_s300_show_lldp_neighbors.textfsm @@ -1,7 +1,7 @@ -Value NEIGHBOR (\S+) +Value NEIGHBOR_NAME (\S+) Value LOCAL_INTERFACE (\S+) Value NEIGHBOR_INTERFACE (\S+) -Value DEVICE_ID (([0-9a-f]{2}[:-]){5}([0-9a-f]{2})) +Value CHASSIS_ID (([0-9a-f]{2}[:-]){5}([0-9a-f]{2})) Start ^System\s+capability\s+legend @@ -12,6 +12,6 @@ Start Begin ^-+ - ^${LOCAL_INTERFACE}\s+${DEVICE_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR}.+ -> Record + ^${LOCAL_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME}.+ -> Record ^\s*$$ ^. -> Error diff --git a/ntc_templates/templates/cisco_wlc_ssh_show_cdp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_wlc_ssh_show_cdp_neighbors_detail.textfsm index 7b1b8ac54f..1ddf9c411a 100644 --- a/ntc_templates/templates/cisco_wlc_ssh_show_cdp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_wlc_ssh_show_cdp_neighbors_detail.textfsm @@ -1,22 +1,22 @@ -Value Required DESTINATION_HOST (\S+) -Value MANAGEMENT_IP (\d+\.\d+\.\d+\.\d+|\w+\.\w+\.\w+) +Value Required CHASSIS_ID (\S+) +Value MGMT_ADDRESS (\d+\.\d+\.\d+\.\d+|\w+\.\w+\.\w+) Value PLATFORM (.*) -Value REMOTE_PORT (.*) -Value LOCAL_PORT (.*) -Value SOFTWARE_VERSION (.*$) +Value NEIGHBOR_INTERFACE (.*) +Value LOCAL_INTERFACE (.*) +Value NEIGHBOR_DESCRIPTION (.*$) Value CAPABILITIES (.*) Start - ^Device ID: ${DESTINATION_HOST} + ^Device ID: ${CHASSIS_ID} ^Entry address\(es\)\s*:\s* -> ParseIP ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES} - ^Interface: ${LOCAL_PORT}, Port ID \(outgoing port\): ${REMOTE_PORT} + ^Interface: ${LOCAL_INTERFACE}, Port ID \(outgoing port\): ${NEIGHBOR_INTERFACE} ^Version : -> GetVersion ParseIP - ^.*IP address: ${MANAGEMENT_IP} -> Start + ^.*IP address: ${MGMT_ADDRESS} -> Start ^Platform\s*:\s*${PLATFORM}\s*,\s*Capabilities\s*:\s*${CAPABILITIES} -> Start ^.* -> Start GetVersion - ^${SOFTWARE_VERSION} -> Record Start + ^${NEIGHBOR_DESCRIPTION} -> Record Start diff --git a/ntc_templates/templates/cisco_xr_show_cdp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_xr_show_cdp_neighbors_detail.textfsm index 1ea80985d4..e7b57118f0 100644 --- a/ntc_templates/templates/cisco_xr_show_cdp_neighbors_detail.textfsm +++ b/ntc_templates/templates/cisco_xr_show_cdp_neighbors_detail.textfsm @@ -1,24 +1,24 @@ -Value Required DEST_HOST (\S+) -Value SYSNAME (.*) -Value MGMT_IP (.*) +Value Required CHASSIS_ID (\S+) +Value NEIGHBOR_NAME (.*) +Value MGMT_ADDRESS (.*) Value PLATFORM (.*) -Value REMOTE_PORT (.*) -Value LOCAL_PORT (.*) -Value VERSION (.*) +Value NEIGHBOR_INTERFACE (.*) +Value LOCAL_INTERFACE (.*) +Value NEIGHBOR_DESCRIPTION (.*) Value CAPABILITIES (.*) Start - ^Device ID: ${DEST_HOST} - ^SysName : ${SYSNAME} + ^Device ID: ${CHASSIS_ID} + ^SysName : ${NEIGHBOR_NAME} ^Entry address\(es\): -> GetIP ^Platform: ${PLATFORM}, Capabilities: ${CAPABILITIES} - ^Interface: ${LOCAL_PORT} - ^Port ID \(outgoing port\): ${REMOTE_PORT} + ^Interface: ${LOCAL_INTERFACE} + ^Port ID \(outgoing port\): ${NEIGHBOR_INTERFACE} ^Version : -> GetVersion GetIP - ^.*IP.+address: ${MGMT_IP} -> Start + ^.*IP.+address: ${MGMT_ADDRESS} -> Start GetVersion - ^${VERSION} -> Record Start + ^${NEIGHBOR_DESCRIPTION} -> Record Start diff --git a/ntc_templates/templates/cisco_xr_show_lldp_neighbors.textfsm b/ntc_templates/templates/cisco_xr_show_lldp_neighbors.textfsm index c480c1b206..6e0a5bb750 100644 --- a/ntc_templates/templates/cisco_xr_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_xr_show_lldp_neighbors.textfsm @@ -1,4 +1,4 @@ -Value Required NEIGHBOR (\S+) +Value Required NEIGHBOR_NAME (\S+) Value Required LOCAL_INTERFACE (\S+) Value Required NEIGHBOR_INTERFACE (\S+) @@ -6,8 +6,8 @@ Start ^Device.*ID -> LLDP LLDP - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+(.+?)\s+${NEIGHBOR_INTERFACE}$$ -> Record - ^${NEIGHBOR} + ^${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+\d+\s+(.+?)\s+${NEIGHBOR_INTERFACE}$$ -> Record + ^${NEIGHBOR_NAME} ^\s+${LOCAL_INTERFACE}\s+\d+\s+(.*?)\s+${NEIGHBOR_INTERFACE} -> Record ^Total entries ^\s+$$ diff --git a/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_list.textfsm b/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_list.textfsm index 5d5f280818..e16343caee 100644 --- a/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_list.textfsm +++ b/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_list.textfsm @@ -1,7 +1,7 @@ Value Required LOCAL_INTERFACE (\S+) Value Required CHASSIS_ID (\S+) Value Required NEIGHBOR_INTERFACE ((\S+)|(Port\s\d+)) -Value Required NEIGHBOR (\S+) +Value Required NEIGHBOR_NAME (\S+) Start ^.*Nearest\s+nontpmr\s+bridge\s+neighbor @@ -12,11 +12,11 @@ Start ^. -> Error Format1 - ^\s*${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record Format1 + ^\s*${NEIGHBOR_NAME}\s+${LOCAL_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record Format1 # Dropping long hostnames ^\s*\S+\s*$$ ^. -> Error Format2 - ^\s*${LOCAL_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR}\s*$$ -> Record Format2 + ^\s*${LOCAL_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME}\s*$$ -> Record Format2 ^. -> Error diff --git a/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_verbose.textfsm b/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_verbose.textfsm index eab2e609f2..00330c0141 100644 --- a/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_verbose.textfsm +++ b/ntc_templates/templates/hp_comware_display_lldp_neighbor-information_verbose.textfsm @@ -1,9 +1,9 @@ Value Required LOCAL_INTERFACE (\S+) Value CHASSIS_ID (\S+) -Value NEIGHBOR_PORT_ID (.*) Value NEIGHBOR_INTERFACE (.*) -Value NEIGHBOR (\S+) -Value MANAGEMENT_IP (\S+) +Value NEIGHBOR_INTERFACE_DESCRIPTION (.*) +Value NEIGHBOR_NAME (\S+) +Value MGMT_ADDRESS (\S+) Value VLAN_ID (\d+) Start @@ -15,11 +15,11 @@ Start ^\s+Chassis\s+type\s+:.* ^\s+Chassis\s+ID\s+:\s+${CHASSIS_ID} ^\s+Port\s+ID\s+type\s+:.* - ^\s+Port\s+ID\s+:\s+${NEIGHBOR_PORT_ID} + ^\s+Port\s+ID\s+:\s+${NEIGHBOR_INTERFACE} ^\s+Time\s+to\s+live\d+:.* - ^\s+Port\s+description\s+:\s+${NEIGHBOR_INTERFACE} - ^\s+System\s+name\s+:\s+${NEIGHBOR} - ^\s+Management\s+address\s+:\s+${MANAGEMENT_IP} + ^\s+Port\s+description\s+:\s+${NEIGHBOR_INTERFACE_DESCRIPTION} + ^\s+System\s+name\s+:\s+${NEIGHBOR_NAME} + ^\s+Management\s+address\s+:\s+${MGMT_ADDRESS} ^\s+Management\s+address\s+interface\s+type ^\s+Management\s+address\s+interface\s+ID ^\s+Management\s+address\s+OID diff --git a/ntc_templates/templates/hp_procurve_show_cdp_neighbors_detail.textfsm b/ntc_templates/templates/hp_procurve_show_cdp_neighbors_detail.textfsm index 9f67c53697..44047db369 100644 --- a/ntc_templates/templates/hp_procurve_show_cdp_neighbors_detail.textfsm +++ b/ntc_templates/templates/hp_procurve_show_cdp_neighbors_detail.textfsm @@ -1,21 +1,21 @@ -Value Required LOCAL_PORT (.+?) -Value NEIGHBOR_ID (.+?) -Value NEIGHBOR_ADDRESS (.+?) -Value NEIGHBOR_PLATFORM (.+?) -Value NEIGHBOR_CAPABILITY (.+?) -Value NEIGHBOR_PORT (.+?) -Value NEIGHBOR_VERSION (.+?) +Value Required LOCAL_INTERFACE (.+?) +Value CHASSIS_ID (.+?) +Value MGMT_ADDRESS (.+?) +Value PLATFORM (.+?) +Value CAPABILITIES (.+?) +Value NEIGHBOR_INTERFACE (.+?) +Value NEIGHBOR_DESCRIPTION (.+?) Start ^\s*CDP\s+neighbors\s+information - ^\s*Port\s*:\s*${LOCAL_PORT}\s*$$ - ^\s*Device\s+ID\s*:\s*${NEIGHBOR_ID}\s*$$ + ^\s*Port\s*:\s*${LOCAL_INTERFACE}\s*$$ + ^\s*Device\s+ID\s*:\s*${CHASSIS_ID}\s*$$ ^\s*Address\s+Type - ^\s*Address\s*:\s*${NEIGHBOR_ADDRESS}\s*$$ - ^\s*Platform\s*:\s*${NEIGHBOR_PLATFORM}\s*$$ - ^\s*Capability\s*:\s*${NEIGHBOR_CAPABILITY}\s*$$ - ^\s*Device\s+Port\s*:\s*${NEIGHBOR_PORT}\s*$$ - ^\s*Version\s*:\s*${NEIGHBOR_VERSION}\s*$$ -> Record + ^\s*Address\s*:\s*${MGMT_ADDRESS}\s*$$ + ^\s*Platform\s*:\s*${PLATFORM}\s*$$ + ^\s*Capability\s*:\s*${CAPABILITIES}\s*$$ + ^\s*Device\s+Port\s*:\s*${NEIGHBOR_INTERFACE}\s*$$ + ^\s*Version\s*:\s*${NEIGHBOR_DESCRIPTION}\s*$$ -> Record ^\s*$$ ^\s*---- - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device.textfsm b/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device.textfsm index d2c5e956a2..1fab4b128b 100644 --- a/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device.textfsm +++ b/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device.textfsm @@ -1,8 +1,8 @@ -Value Required LOCAL_PORT (\S+) -Value NEIGHBOR_CHASSIS_ID ((?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) -Value NEIGHBOR_PORTID ((?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) -Value NEIGHBOR_DESCR (\S+|.*?) -Value NEIGHBOR_SYSNAME (\S+) +Value Required LOCAL_INTERFACE (\S+) +Value CHASSIS_ID ((?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) +Value NEIGHBOR_INTERFACE ((?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) +Value NEIGHBOR_DESCRIPTION (\S+|.*?) +Value NEIGHBOR_NAME (\S+) Start ^\s*LLDP\sRemote\sDevices\sInformation\s*$$ @@ -12,9 +12,9 @@ Start ^. -> Error LLDP - ^\s+${LOCAL_PORT}\s+\|\s${NEIGHBOR_CHASSIS_ID}\s+${NEIGHBOR_PORTID}\s*$$ -> Record - ^\s+${LOCAL_PORT}\s+\|\s${NEIGHBOR_CHASSIS_ID}\s+${NEIGHBOR_PORTID}\s+${NEIGHBOR_SYSNAME}\s*$$ -> Record - ^\s+${LOCAL_PORT}\s+\|\s${NEIGHBOR_CHASSIS_ID}\s+${NEIGHBOR_PORTID}\s+${NEIGHBOR_DESCR}\s+${NEIGHBOR_SYSNAME}\s*$$ -> Record + ^\s+${LOCAL_INTERFACE}\s+\|\s${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s*$$ -> Record + ^\s+${LOCAL_INTERFACE}\s+\|\s${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME}\s*$$ -> Record + ^\s+${LOCAL_INTERFACE}\s+\|\s${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_DESCRIPTION}\s+${NEIGHBOR_NAME}\s*$$ -> Record ^\S+\#\s*$$ ^\s*$$ ^. -> Error diff --git a/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm b/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm index 8d9cbe51ec..46ececcc4f 100644 --- a/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm +++ b/ntc_templates/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm @@ -1,15 +1,15 @@ -Value Required LOCAL_PORT (\S+) +Value Required LOCAL_INTERFACE (\S+) Value NEIGHBOR_CHASSIS_TYPE (\S+) -Value NEIGHBOR_CHASSIS_ID ([a-f0-9]{6}-[a-f0-9]{6}|(?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) +Value CHASSIS_ID ([a-f0-9]{6}-[a-f0-9]{6}|(?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) Value PORT_TYPE (\S+) -Value NEIGHBOR_PORTID (.*?) -Value NEIGHBOR_SYSNAME (.*?) -Value SYSTEM_DESCR (.*?) -Value PORT_DESCR (\S+|.*?) -Value PVID (\d+|.*?) -Value SYSTEM_CAPABILITIES_SUPPORTED (.*?) -Value SYSTEM_CAPABILITIES_ENABLED (.*?) -Value REMOTE_MANAGEMENT_ADDRESS (\S+|.*?) +Value NEIGHBOR_INTERFACE (.*?) +Value NEIGHBOR_NAME (.*?) +Value NEIGHBOR_DESCRIPTION (.*?) +Value NEIGHBOR_INTERFACE_DESCRIPTION (\S+|.*?) +Value VLAN_ID (\d+|.*?) +Value CAPABILITIES_SUPPORTED (.*?) +Value CAPABILITIES (.*?) +Value MGMT_ADDRESS (\S+|.*?) Start ^\s*$$ @@ -17,20 +17,21 @@ Start ^. -> Error LLDP - ^\s+Local\sPort\s+:\s${LOCAL_PORT}\s*$$ + ^\s+Local\sPort\s+:\s${LOCAL_INTERFACE}\s*$$ ^\s+ChassisType\s+:\s${NEIGHBOR_CHASSIS_TYPE}\s*$$ - ^\s+ChassisId\s+:\s${NEIGHBOR_CHASSIS_ID}\s*$$ + ^\s+ChassisId\s+:\s${CHASSIS_ID}\s*$$ ^\s+PortType\s+:\s${PORT_TYPE}\s*$$ - ^\s+PortId\s+:\s${NEIGHBOR_PORTID}\s*$$ - ^\s+SysName\s+:\s${NEIGHBOR_SYSNAME}\s*$$ - ^\s+System\sDescr\s:\s${SYSTEM_DESCR}\s*$$ - ^\s+PortDescr\s+:\s${PORT_DESCR}\s*$$ - ^\s+Pvid\s+:\s${PVID}\s*$$ - ^\s+System\s+Capabilities\s+Supported\s+:\s${SYSTEM_CAPABILITIES_SUPPORTED}\s*$$ - ^\s+System\s+Capabilities\s+Enabled\s+:\s${SYSTEM_CAPABILITIES_ENABLED}\s*$$ + ^\s+PortId\s+:\s${NEIGHBOR_INTERFACE}\s*$$ + ^\s+SysName\s+:\s${NEIGHBOR_NAME}\s*$$ + ^\s+System\sDescr\s:\s${NEIGHBOR_DESCRIPTION}\s*$$ + ^\s+PortDescr\s+:\s${NEIGHBOR_INTERFACE_DESCRIPTION}\s*$$ +# Port VLAN ID + ^\s+Pvid\s+:\s${VLAN_ID}\s*$$ + ^\s+System\s+Capabilities\s+Supported\s+:\s${CAPABILITIES_SUPPORTED}\s*$$ + ^\s+System\s+Capabilities\s+Enabled\s+:\s${CAPABILITIES}\s*$$ ^\s+Remote\s+Management\s+Address\s*$$ ^\s+Type.*$$ - ^\s+Address\s:\s${REMOTE_MANAGEMENT_ADDRESS} + ^\s+Address\s:\s${MGMT_ADDRESS} ^\s+Poe\s+Plus\s+Information\s+Detail\s*$$ ^\s+Poe\s+Device\s+Type.* ^\s+Power\s+Source.* diff --git a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm b/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm index ee91906e92..5bf9228860 100644 --- a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm +++ b/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm @@ -1,13 +1,13 @@ Value Required LOCAL_INTERFACE (\S+) Value CHASSIS_ID (.+?) -Value MANUFACTURER_NAME (.*?) -Value MODEL_NAME (.*?) +Value MANUFACTURER (.*?) +Value PLATFORM (.*?) Value NEIGHBOR_PORT_ID (.*?) Value NEIGHBOR_INTERFACE (.*?) -Value NEIGHBOR (.+?) -Value List SYSTEM_DESCRIPTION (.*) +Value NEIGHBOR_NAME (.+?) +Value List NEIGHBOR_DESCRIPTION (.*) Value CAPABILITIES (.*?) -Value MANAGEMENT_IP (\S+) +Value MGMT_ADDRESS (\S+) Value VLAN_ID (\d+) Value SERIAL (\S+) @@ -20,12 +20,12 @@ Start ^Port\s+ID\s+type ^Port\s+ID\s+:${NEIGHBOR_PORT_ID}\s*$$ ^Port\s+description\s+:${NEIGHBOR_INTERFACE}\s*$$ - ^System\s+name\s+:${NEIGHBOR}\s*$$ - ^System\s+description\s+:${SYSTEM_DESCRIPTION} -> SystemDescription + ^System\s+name\s+:${NEIGHBOR_NAME}\s*$$ + ^System\s+description\s+:${NEIGHBOR_DESCRIPTION} -> SystemDescription ^System\s+capabilities\s+supported ^System\s+capabilities\s+enabled\s+:${CAPABILITIES}\s*$$ ^Management\s+address\s+type - ^Management\s+address\s*(value\s*)?:\s*${MANAGEMENT_IP} + ^Management\s+address\s*(value\s*)?:\s*${MGMT_ADDRESS} ^Expired\s+time ^Port\s+VLAN\s+ID\(PVID\)\s+:${VLAN_ID} ^VLAN\s+name\s+of\s+VLAN @@ -44,11 +44,11 @@ Start ^. -> Error SystemDescription - ^${SYSTEM_DESCRIPTION} -> IgnoreDescription + ^${NEIGHBOR_DESCRIPTION} -> IgnoreDescription IgnoreDescription ^System\s+capabilities\s+supported -> Start - ^${SYSTEM_DESCRIPTION} + ^${NEIGHBOR_DESCRIPTION} ^\s*$$ ^.*$$ -> Error @@ -58,8 +58,8 @@ MED ^FirmwareRev ^SoftwareRev ^SerialNum\s+:${SERIAL} - ^Manufacturer\s+name\s+:${MANUFACTURER_NAME}\s*$$ - ^Model\s+name\s+:${MODEL_NAME}\s*$$ + ^Manufacturer\s+name\s+:${MANUFACTURER}\s*$$ + ^Model\s+name\s+:${PLATFORM}\s*$$ ^Asset\s+tracking ^Media\s+policy\s+type ^Unknown\s+Policy diff --git a/ntc_templates/templates/ipinfusion_ocnos_show_lldp_table.textfsm b/ntc_templates/templates/ipinfusion_ocnos_show_lldp_table.textfsm index fdab3aab9f..f39a22d3f9 100644 --- a/ntc_templates/templates/ipinfusion_ocnos_show_lldp_table.textfsm +++ b/ntc_templates/templates/ipinfusion_ocnos_show_lldp_table.textfsm @@ -1,8 +1,8 @@ Value LOCAL_INTERFACE (\S+) -Value NEIGHBOR (\S+) +Value NEIGHBOR_NAME (\S+) Value NEIGHBOR_INTERFACE (\S+) -Value CAPABILITY (R|B|O|RO|RB|BR|BO|OR|OB|RBO|ROB|BRO|BOR|ORB|OBR) -Value NEIGHBOR_INTERFACE_DESCR (\S+) +Value CAPABILITIES (R|B|O|RO|RB|BR|BO|OR|OB|RBO|ROB|BRO|BOR|ORB|OBR) +Value NEIGHBOR_INTERFACE_DESCRIPTION (\S+) Start ^Capability\s+codes:\s+\(R\)\s+Router,\s+\(B\)\s+Bridge,\s+\(O\)\s+Other @@ -11,7 +11,7 @@ Start ^. -> Error Row - ^${LOCAL_INTERFACE}\s+${NEIGHBOR}\s+${NEIGHBOR_INTERFACE}\s+${CAPABILITY}\s+${NEIGHBOR_INTERFACE_DESCR} -> Record + ^${LOCAL_INTERFACE}\s+${NEIGHBOR_NAME}\s+${NEIGHBOR_INTERFACE}\s+${CAPABILITIES}\s+${NEIGHBOR_INTERFACE_DESCRIPTION} -> Record ^-+ ^[\w+\s+]*:\s+\d+ ^. -> Error diff --git a/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm b/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm index 4a1e32d48b..7dfe695d8b 100644 --- a/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm @@ -1,11 +1,11 @@ Value Required LOCAL_INTERFACE (\S+) Value Required PARENT_INTERFACE (\S+) Value Required CHASSIS_ID (\S+) -Value Required PORT_INFO (\S+) -Value Required SYSTEM_NAME (\S+) +Value Required NEIGHBOR_INTERFACE (\S+) +Value Required NEIGHBOR_NAME (\S+) Start ^Local\s+Interface\s+Parent\s+Interface\s+Chassis\s+Id\s+Port\s+info\s+System\s+Name - ^${LOCAL_INTERFACE}\s*${PARENT_INTERFACE}\s+${CHASSIS_ID}\s+${PORT_INFO}\s+${SYSTEM_NAME} -> Record + ^${LOCAL_INTERFACE}\s*${PARENT_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME} -> Record ^\s*$$ ^. -> Error \ No newline at end of file diff --git a/tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors.yml b/tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors.yml index ba622c830f..7ebab9e261 100644 --- a/tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors.yml +++ b/tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors.yml @@ -1,14 +1,14 @@ --- parsed_sample: - - neighbor: "localhost" - local_interface: "Et1" + - local_interface: "Et1" neighbor_interface: "Ethernet1" - - neighbor: "localhost" - local_interface: "Et2" + neighbor_name: "localhost" + - local_interface: "Et2" neighbor_interface: "Ethernet2" - - neighbor: "tg104.sjc.aristanetworks.com" - local_interface: "Et3/1" + neighbor_name: "localhost" + - local_interface: "Et3/1" neighbor_interface: "Ethernet3/2" - - neighbor: "dc1-rack11-tor1.sjc" - local_interface: "Ma1/1" + neighbor_name: "tg104.sjc.aristanetworks.com" + - local_interface: "Ma1/1" neighbor_interface: "1/1" + neighbor_name: "dc1-rack11-tor1.sjc" diff --git a/tests/arista_eos/show_lldp_neighbors_detail/arista_eos_show_lldp_neighbors_detail.yml b/tests/arista_eos/show_lldp_neighbors_detail/arista_eos_show_lldp_neighbors_detail.yml index 732b00ea7c..84bf5ddfaa 100644 --- a/tests/arista_eos/show_lldp_neighbors_detail/arista_eos_show_lldp_neighbors_detail.yml +++ b/tests/arista_eos/show_lldp_neighbors_detail/arista_eos_show_lldp_neighbors_detail.yml @@ -1,181 +1,181 @@ --- parsed_sample: - - dest_host: "spine2.company.com" - system_id: "2cc2.6081.eaf9" + - age: "12 seconds" + chassis_id: "2cc2.6081.eaf9" + local_interface: "Ethernet1" mgmt_address: "2cc2.6081.eaf9" - platform_version: "Arista Networks EOS version 4.15.2F running on an Arista Networks\ - \ vEOS" - remote_port: "Ethernet1" - local_port: "Ethernet1" - neigh_count: "1" - age: "12 seconds" - - dest_host: "spine2.company.com" - system_id: "2cc2.6081.eaf9" + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.2F running on an Arista\ + \ Networks vEOS" + neighbor_interface: "Ethernet1" + neighbor_name: "spine2.company.com" + - age: "12 seconds" + chassis_id: "2cc2.6081.eaf9" + local_interface: "Ethernet2" mgmt_address: "2cc2.6081.eaf9" - platform_version: "Arista Networks EOS version 4.15.2F running on an Arista Networks\ - \ vEOS" - remote_port: "Ethernet2" - local_port: "Ethernet2" - neigh_count: "1" - age: "12 seconds" - - dest_host: "spine2.company.com" - system_id: "2cc2.6081.eaf9" + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.2F running on an Arista\ + \ Networks vEOS" + neighbor_interface: "Ethernet2" + neighbor_name: "spine2.company.com" + - age: "12 seconds" + chassis_id: "2cc2.6081.eaf9" + local_interface: "Ethernet3" mgmt_address: "2cc2.6081.eaf9" - platform_version: "Arista Networks EOS version 4.15.2F running on an Arista Networks\ - \ vEOS" - remote_port: "Ethernet3" - local_port: "Ethernet3" - neigh_count: "1" - age: "12 seconds" - - dest_host: "spine2.company.com" - system_id: "2cc2.6081.eaf9" + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.2F running on an Arista\ + \ Networks vEOS" + neighbor_interface: "Ethernet3" + neighbor_name: "spine2.company.com" + - age: "12 seconds" + chassis_id: "2cc2.6081.eaf9" + local_interface: "Ethernet4" mgmt_address: "2cc2.6081.eaf9" - platform_version: "Arista Networks EOS version 4.15.2F running on an Arista Networks\ - \ vEOS" - remote_port: "Ethernet4" - local_port: "Ethernet4" - neigh_count: "1" - age: "12 seconds" - - dest_host: "vmx1" - system_id: "0005.8671.4ec0" + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.2F running on an Arista\ + \ Networks vEOS" + neighbor_interface: "Ethernet4" + neighbor_name: "spine2.company.com" + - age: "27 seconds" + chassis_id: "0005.8671.4ec0" + local_interface: "Management1" mgmt_address: "10.0.0.31" - platform_version: "Juniper Networks, Inc. vmx internet router, kernel JUNOS 15.1F4.15,\ - \ Build date: 2015-12-23 19:22:55 UTC Copyright (c) 1996-2015 Juniper Networks,\ - \ Inc." - remote_port: "fxp0" - local_port: "Management1" - neigh_count: "2" - age: "27 seconds" - - dest_host: "spine2.company.com" - system_id: "2cc2.6081.eaf9" + neighbor_count: "2" + neighbor_description: "Juniper Networks, Inc. vmx internet router, kernel JUNOS\ + \ 15.1F4.15, Build date: 2015-12-23 19:22:55 UTC Copyright (c) 1996-2015 Juniper\ + \ Networks, Inc." + neighbor_interface: "fxp0" + neighbor_name: "vmx1" + - age: "17 seconds" + chassis_id: "2cc2.6081.eaf9" + local_interface: "Management1" mgmt_address: "2cc2.6081.eaf9" - platform_version: "Arista Networks EOS version 4.15.2F running on an Arista Networks\ - \ vEOS" - remote_port: "Management1" - local_port: "Management1" - neigh_count: "2" - age: "17 seconds" - - dest_host: "cvx" - system_id: "0050.56eb.3ef3" + neighbor_count: "2" + neighbor_description: "Arista Networks EOS version 4.15.2F running on an Arista\ + \ Networks vEOS" + neighbor_interface: "Management1" + neighbor_name: "spine2.company.com" + - age: "4 seconds" + chassis_id: "0050.56eb.3ef3" + local_interface: "Ethernet8" mgmt_address: "172.16.2.141" - platform_version: "Arista Networks EOS version 4.15.5M running on an Arista Networks\ - \ CVX" - remote_port: "Management1" - local_port: "Ethernet8" - neigh_count: "3" - age: "4 seconds" - - dest_host: "cvx-client-1" - system_id: "0050.568b.67c8" + neighbor_count: "3" + neighbor_description: "Arista Networks EOS version 4.15.5M running on an Arista\ + \ Networks CVX" + neighbor_interface: "Management1" + neighbor_name: "cvx" + - age: "29 seconds" + chassis_id: "0050.568b.67c8" + local_interface: "Ethernet8" mgmt_address: "172.16.2.142" - platform_version: "Arista Networks EOS version 4.15.5M running on an Arista Networks\ - \ CVX" - remote_port: "Ethernet1" - local_port: "Ethernet8" - neigh_count: "3" - age: "29 seconds" - - dest_host: "cvx-client-1" - system_id: "0050.568b.67c8" + neighbor_count: "3" + neighbor_description: "Arista Networks EOS version 4.15.5M running on an Arista\ + \ Networks CVX" + neighbor_interface: "Ethernet1" + neighbor_name: "cvx-client-1" + - age: "30 seconds" + chassis_id: "0050.568b.67c8" + local_interface: "Ethernet8" mgmt_address: "172.16.2.142" - platform_version: "Arista Networks EOS version 4.15.5M running on an Arista Networks\ - \ CVX" - remote_port: "Management1" - local_port: "Ethernet8" - neigh_count: "3" - age: "30 seconds" - - dest_host: "Leaf1.cliqr.com" - system_id: "7c0e.cecb.659b" + neighbor_count: "3" + neighbor_description: "Arista Networks EOS version 4.15.5M running on an Arista\ + \ Networks CVX" + neighbor_interface: "Management1" + neighbor_name: "cvx-client-1" + - age: "29 seconds" + chassis_id: "7c0e.cecb.659b" + local_interface: "Ethernet9" mgmt_address: "7c0e.cecb.659b" - platform_version: "topology/pod-1/node-101" - remote_port: "Eth1/23" - local_port: "Ethernet9" - neigh_count: "1" - age: "29 seconds" - - dest_host: "Leaf1.cliqr.com" - system_id: "7c0e.cecb.659c" + neighbor_count: "1" + neighbor_description: "topology/pod-1/node-101" + neighbor_interface: "Eth1/23" + neighbor_name: "Leaf1.cliqr.com" + - age: "29 seconds" + chassis_id: "7c0e.cecb.659c" + local_interface: "Ethernet10" mgmt_address: "7c0e.cecb.659c" - platform_version: "topology/pod-1/node-101" - remote_port: "Eth1/24" - local_port: "Ethernet10" - neigh_count: "1" - age: "29 seconds" - - dest_host: "MX" - system_id: "3c8a.b089.9898" + neighbor_count: "1" + neighbor_description: "topology/pod-1/node-101" + neighbor_interface: "Eth1/24" + neighbor_name: "Leaf1.cliqr.com" + - age: "21 seconds" + chassis_id: "3c8a.b089.9898" + local_interface: "Ethernet23" mgmt_address: "" - platform_version: "Juniper Networks, Inc. mx5-t internet router, kernel JUNOS\ + neighbor_count: "1" + neighbor_description: "Juniper Networks, Inc. mx5-t internet router, kernel JUNOS\ \ 14.2R5.8, Build date: 2015-11-25 01:57:41 UTC Copyright (c) 1996-2015 Juniper\ \ Networks, Inc." - remote_port: "527" - local_port: "Ethernet23" - neigh_count: "1" - age: "21 seconds" - - dest_host: "cvx-client-2" - system_id: "0050.560b.66ea" + neighbor_interface: "527" + neighbor_name: "MX" + - age: "29 seconds" + chassis_id: "0050.560b.66ea" + local_interface: "Ethernet33" mgmt_address: "172.16.2.143" - platform_version: "Arista Networks EOS version 4.15.5M running on an Arista Networks\ - \ CVX" - remote_port: "Management1" - local_port: "Ethernet33" - neigh_count: "4" - age: "29 seconds" - - dest_host: "cvx-client-2" - system_id: "0050.560b.66ea" + neighbor_count: "4" + neighbor_description: "Arista Networks EOS version 4.15.5M running on an Arista\ + \ Networks CVX" + neighbor_interface: "Management1" + neighbor_name: "cvx-client-2" + - age: "29 seconds" + chassis_id: "0050.560b.66ea" + local_interface: "Ethernet33" mgmt_address: "172.16.2.143" - platform_version: "Arista Networks EOS version 4.15.5M running on an Arista Networks\ - \ CVX" - remote_port: "Ethernet1" - local_port: "Ethernet33" - neigh_count: "4" - age: "29 seconds" - - dest_host: "aci-compute" - system_id: "0050.56ac.4cd9" + neighbor_count: "4" + neighbor_description: "Arista Networks EOS version 4.15.5M running on an Arista\ + \ Networks CVX" + neighbor_interface: "Ethernet1" + neighbor_name: "cvx-client-2" + - age: "29 seconds" + chassis_id: "0050.56ac.4cd9" + local_interface: "Ethernet33" mgmt_address: "fe80::250:56ff:feac:4cd9" - platform_version: "Red Hat Enterprise Linux Linux 3.10.0-327.13.1.el7.x86_64 #1\ - \ SMP Mon Feb 29 13:22:02 EST 2016 x86_64" - remote_port: "0050.56ac.4cd9" - local_port: "Ethernet33" - neigh_count: "4" - age: "29 seconds" - - dest_host: "aci-control" - system_id: "0050.56ac.4e29" + neighbor_count: "4" + neighbor_description: "Red Hat Enterprise Linux Linux 3.10.0-327.13.1.el7.x86_64\ + \ #1 SMP Mon Feb 29 13:22:02 EST 2016 x86_64" + neighbor_interface: "0050.56ac.4cd9" + neighbor_name: "aci-compute" + - age: "29 seconds" + chassis_id: "0050.56ac.4e29" + local_interface: "Ethernet33" mgmt_address: "fe80::250:56ff:feac:4e29" - platform_version: "Red Hat Enterprise Linux Linux 3.10.0-327.13.1.el7.x86_64 #1\ - \ SMP Mon Feb 29 13:22:02 EST 2016 x86_64" - remote_port: "0050.56ac.4e29" - local_port: "Ethernet33" - neigh_count: "4" - age: "29 seconds" - - dest_host: "R4-Arista-L3-SDNLAB-SW1" - system_id: "001c.737d.77fb" + neighbor_count: "4" + neighbor_description: "Red Hat Enterprise Linux Linux 3.10.0-327.13.1.el7.x86_64\ + \ #1 SMP Mon Feb 29 13:22:02 EST 2016 x86_64" + neighbor_interface: "0050.56ac.4e29" + neighbor_name: "aci-control" + - age: "19 seconds" + chassis_id: "001c.737d.77fb" + local_interface: "Ethernet49/1" mgmt_address: "2.2.2.2" - platform_version: "Arista Networks EOS version 4.15.0FXA running on an Arista\ + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.0FXA running on an Arista\ \ Networks DCS-7050SX-64" - remote_port: "Ethernet49/1" - local_port: "Ethernet49/1" - neigh_count: "1" - age: "19 seconds" - - dest_host: "R4-Arista-L3-SDNLAB-SW2" - system_id: "001c.737d.745f" + neighbor_interface: "Ethernet49/1" + neighbor_name: "R4-Arista-L3-SDNLAB-SW1" + - age: "28 seconds" + chassis_id: "001c.737d.745f" + local_interface: "Ethernet51/1" mgmt_address: "172.16.1.3" - platform_version: "Arista Networks EOS version 4.15.0FXA running on an Arista\ + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.0FXA running on an Arista\ \ Networks DCS-7050SX-64" - remote_port: "Ethernet49/1" - local_port: "Ethernet51/1" - neigh_count: "1" - age: "28 seconds" - - dest_host: "R4-Arista-L3-SDNLAB-SW2" - system_id: "001c.737d.745f" + neighbor_interface: "Ethernet49/1" + neighbor_name: "R4-Arista-L3-SDNLAB-SW2" + - age: "28 seconds" + chassis_id: "001c.737d.745f" + local_interface: "Ethernet52/1" mgmt_address: "172.16.1.3" - platform_version: "Arista Networks EOS version 4.15.0FXA running on an Arista\ + neighbor_count: "1" + neighbor_description: "Arista Networks EOS version 4.15.0FXA running on an Arista\ \ Networks DCS-7050SX-64" - remote_port: "Ethernet50/1" - local_port: "Ethernet52/1" - neigh_count: "1" - age: "28 seconds" - - dest_host: "test-host.domain.com" - system_id: "0cca.01c0.e8e1" + neighbor_interface: "Ethernet50/1" + neighbor_name: "R4-Arista-L3-SDNLAB-SW2" + - age: "2 seconds" + chassis_id: "0cca.01c0.e8e1" + local_interface: "Management1" mgmt_address: "172.16.208.5" - platform_version: "" - remote_port: "Management1" - local_port: "Management1" - neigh_count: "1" - age: "2 seconds" + neighbor_count: "1" + neighbor_description: "" + neighbor_interface: "Management1" + neighbor_name: "test-host.domain.com" diff --git a/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail.yml b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail.yml index 2626b5fbf8..9378a22edd 100644 --- a/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail.yml +++ b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail.yml @@ -1,56 +1,56 @@ --- parsed_sample: - - local_port: "1/1/1" + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" chassis_id: "70:3a:0e:cd:41:fe" - chassis_name: "ap-9999-335-fe" - chassis_desc: "ArubaOS (MODEL: 335), Version Aruba AP" - capabilities: "Bridge, WLAN" - capabilities_enabled: "WLAN" - mgmt_addr: "10.252.99.12" - port_id: "70:3a:0e:cd:41:fe" - port_desc: "eth0" - - local_port: "1/1/2" + local_interface: "1/1/1" + mgmt_address: "10.252.99.12" + neighbor_description: "ArubaOS (MODEL: 335), Version Aruba AP" + neighbor_interface: "eth0" + neighbor_name: "ap-9999-335-fe" + neighbor_port_id: "70:3a:0e:cd:41:fe" + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" chassis_id: "00:4e:35:c5:d2:2e" - chassis_name: "ap-9999-535-fe" - chassis_desc: "ArubaOS (MODEL: 535), Version Aruba AP" - capabilities: "Bridge, WLAN" - capabilities_enabled: "WLAN" - mgmt_addr: "10.252.99.11" - port_id: "00:4e:35:c5:d2:2e" - port_desc: "eth0" - - local_port: "1/1/52" + local_interface: "1/1/2" + mgmt_address: "10.252.99.11" + neighbor_description: "ArubaOS (MODEL: 535), Version Aruba AP" + neighbor_interface: "eth0" + neighbor_name: "ap-9999-535-fe" + neighbor_port_id: "00:4e:35:c5:d2:2e" + - capabilities: "Bridge, Router" + capabilities_supported: "Bridge, Router" chassis_id: "90:20:c2:bf:ae:00" - chassis_name: "rtr-agg-0620-a" - chassis_desc: "Aruba JL635A GL.10.05.0021" - capabilities: "Bridge, Router" - capabilities_enabled: "Bridge, Router" - mgmt_addr: "10.252.15.17" - port_id: "1/1/1" - port_desc: "1/1/1" - - local_port: "2/1/1" + local_interface: "1/1/52" + mgmt_address: "10.252.15.17" + neighbor_description: "Aruba JL635A GL.10.05.0021" + neighbor_interface: "1/1/1" + neighbor_name: "rtr-agg-0620-a" + neighbor_port_id: "1/1/1" + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" chassis_id: "70:3a:0e:cd:41:fe" - chassis_name: "ap-9999-335-fe" - chassis_desc: "ArubaOS (MODEL: 335), Version Aruba AP" - capabilities: "Bridge, WLAN" - capabilities_enabled: "WLAN" - mgmt_addr: "10.252.99.12" - port_id: "70:3a:0e:cd:41:ff" - port_desc: "eth1" - - local_port: "2/1/2" + local_interface: "2/1/1" + mgmt_address: "10.252.99.12" + neighbor_description: "ArubaOS (MODEL: 335), Version Aruba AP" + neighbor_interface: "eth1" + neighbor_name: "ap-9999-335-fe" + neighbor_port_id: "70:3a:0e:cd:41:ff" + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" chassis_id: "00:4e:35:c5:d2:2e" - chassis_name: "ap-9999-535-fe" - chassis_desc: "ArubaOS (MODEL: 535), Version Aruba AP" - capabilities: "Bridge, WLAN" - capabilities_enabled: "WLAN" - mgmt_addr: "10.252.99.11" - port_id: "00:4e:35:c5:d2:2f" - port_desc: "eth1" - - local_port: "2/1/52" + local_interface: "2/1/2" + mgmt_address: "10.252.99.11" + neighbor_description: "ArubaOS (MODEL: 535), Version Aruba AP" + neighbor_interface: "eth1" + neighbor_name: "ap-9999-535-fe" + neighbor_port_id: "00:4e:35:c5:d2:2f" + - capabilities: "Bridge, Router" + capabilities_supported: "Bridge, Router" chassis_id: "90:20:c2:bf:ed:00" - chassis_name: "rtr-agg-0620-b" - chassis_desc: "Aruba JL635A GL.10.05.0021" - capabilities: "Bridge, Router" - capabilities_enabled: "Bridge, Router" - mgmt_addr: "10.252.15.18" - port_id: "1/1/1" - port_desc: "1/1/1" + local_interface: "2/1/52" + mgmt_address: "10.252.15.18" + neighbor_description: "Aruba JL635A GL.10.05.0021" + neighbor_interface: "1/1/1" + neighbor_name: "rtr-agg-0620-b" + neighbor_port_id: "1/1/1" diff --git a/tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_neighbors.yml b/tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_neighbors.yml index 041d1d11dc..990f871d13 100644 --- a/tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_neighbors.yml +++ b/tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_neighbors.yml @@ -1,68 +1,68 @@ --- parsed_sample: - - id: "AP00-1-00001" - interface: "0/1" + - capabilities: "T B I" holdtime: "173" - capability: "T B I" + local_interface: "0/1" + neighbor_interface: "GigabitEt" + neighbor_name: "AP00-1-00001" platform: "cisco AIR-CAP270" - port: "GigabitEt" - - id: "AP00-2-00002" - interface: "0/2" + - capabilities: "T B I" holdtime: "139" - capability: "T B I" + local_interface: "0/2" + neighbor_interface: "GigabitEt" + neighbor_name: "AP00-2-00002" platform: "cisco AIR-CAP270" - port: "GigabitEt" - - id: "AP00-15-00050D" - interface: "0/3" + - capabilities: "R T" holdtime: "127" - capability: "R T" + local_interface: "0/3" + neighbor_interface: "GigabitEt" + neighbor_name: "AP00-15-00050D" platform: "cisco AIR-AP3802" - port: "GigabitEt" - - id: "AP00-1-00115F" - interface: "0/4" + - capabilities: "R T" holdtime: "170" - capability: "R T" + local_interface: "0/4" + neighbor_interface: "GigabitEt" + neighbor_name: "AP00-1-00115F" platform: "cisco AIR-AP3802" - port: "GigabitEt" - - id: "AP00-22-01665A" - interface: "0/5" + - capabilities: "R T" holdtime: "143" - capability: "R T" + local_interface: "0/5" + neighbor_interface: "GigabitEt" + neighbor_name: "AP00-22-01665A" platform: "cisco AIR-AP3802" - port: "GigabitEt" - - id: "dev1-df-loc-sw000001" - interface: "0/35" + - capabilities: "R" holdtime: "161" - capability: "R" + local_interface: "0/35" + neighbor_interface: "0/1" + neighbor_name: "dev1-df-loc-sw000001" platform: "BCM-56340" - port: "0/1" - - id: "dev2-dd-loc-sw000001" - interface: "0/37" + - capabilities: "R" holdtime: "178" - capability: "R" + local_interface: "0/37" + neighbor_interface: "0/1" + neighbor_name: "dev2-dd-loc-sw000001" platform: "BCM-56340" - port: "0/1" - - id: "dev3-ds-loc-sw000001" - interface: "0/39" + - capabilities: "R" holdtime: "157" - capability: "R" + local_interface: "0/39" + neighbor_interface: "0/1" + neighbor_name: "dev3-ds-loc-sw000001" platform: "BCM-56340" - port: "0/1" - - id: "dev4-da-loc-sw000001" - interface: "0/43" + - capabilities: "R" holdtime: "179" - capability: "R" + local_interface: "0/43" + neighbor_interface: "0/1" + neighbor_name: "dev4-da-loc-sw000001" platform: "BCM-56340" - port: "0/1" - - id: "dev5-ab-loc-sw0001" - interface: "0/49" + - capabilities: "R" holdtime: "154" - capability: "R" + local_interface: "0/49" + neighbor_interface: "0/1" + neighbor_name: "dev5-ab-loc-sw0001" platform: "AS5610-52X" - port: "0/1" - - id: "dev6-aa-loc-sw0002" - interface: "0/50" + - capabilities: "R" holdtime: "158" - capability: "R" + local_interface: "0/50" + neighbor_interface: "0/1" + neighbor_name: "dev6-aa-loc-sw0002" platform: "AS5610-52X" - port: "0/1" diff --git a/tests/broadcom_icos/show_lldp_remote-device_all/broadcom_icos_show_lldp_remote-device_all.yml b/tests/broadcom_icos/show_lldp_remote-device_all/broadcom_icos_show_lldp_remote-device_all.yml index eb01c84ed4..cea5deccff 100644 --- a/tests/broadcom_icos/show_lldp_remote-device_all/broadcom_icos_show_lldp_remote-device_all.yml +++ b/tests/broadcom_icos/show_lldp_remote-device_all/broadcom_icos_show_lldp_remote-device_all.yml @@ -1,157 +1,157 @@ --- parsed_sample: - - local_interface: "0/1" + - chassis_id: "84:3D:C6:00:12:E0" + local_interface: "0/1" + neighbor_interface: "Gi0" + neighbor_name: "abc-1-00001.y" remote_id: "17" - chassis_id: "84:3D:C6:00:12:E0" - port_id: "Gi0" - system_name: "abc-1-00001.y" - - local_interface: "0/2" + - chassis_id: "00:A6:CA:00:53:C0" + local_interface: "0/2" + neighbor_interface: "Gi0" + neighbor_name: "abc-1-00002.y" remote_id: "16" - chassis_id: "00:A6:CA:00:53:C0" - port_id: "Gi0" - system_name: "abc-1-00002.y" - - local_interface: "0/3" + - chassis_id: "F4:DB:E6:00:9F:46" + local_interface: "0/3" + neighbor_interface: "0" + neighbor_name: "abc-1-00003M" remote_id: "18" - chassis_id: "F4:DB:E6:00:9F:46" - port_id: "0" - system_name: "abc-1-00003M" - - local_interface: "0/4" + - chassis_id: "F4:DB:E6:00:44:9E" + local_interface: "0/4" + neighbor_interface: "0" + neighbor_name: "abc-1-00004M" remote_id: "19" - chassis_id: "F4:DB:E6:00:44:9E" - port_id: "0" - system_name: "abc-1-00004M" - - local_interface: "0/5" + - chassis_id: "F4:DB:E6:00:AC:FE" + local_interface: "0/5" + neighbor_interface: "Te2/1" + neighbor_name: "abc-1-00005M" remote_id: "20" - chassis_id: "F4:DB:E6:00:AC:FE" - port_id: "Te2/1" - system_name: "abc-1-00005M" - - local_interface: "0/25" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/26" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/27" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/28" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/29" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/30" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/31" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/32" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/33" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/34" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/35" + - chassis_id: "" + local_interface: "0/25" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/26" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/27" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/28" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/29" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/30" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/31" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/32" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/33" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/34" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "6C:00:C5:4D:86:3A" + local_interface: "0/35" + neighbor_interface: "6C:00:C5:4D:86:3B" + neighbor_name: "abc-aa-acc-sw" remote_id: "8" - chassis_id: "6C:00:C5:4D:86:3A" - port_id: "6C:00:C5:4D:86:3B" - system_name: "abc-aa-acc-sw" - - local_interface: "0/36" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/37" + - chassis_id: "" + local_interface: "0/36" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "6C:00:C5:49:E7:40" + local_interface: "0/37" + neighbor_interface: "6C:00:C5:49:E7:41" + neighbor_name: "abc-bb-acc-sw" remote_id: "7" - chassis_id: "6C:00:C5:49:E7:40" - port_id: "6C:00:C5:49:E7:41" - system_name: "abc-bb-acc-sw" - - local_interface: "0/38" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/39" + - chassis_id: "" + local_interface: "0/38" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "6C:00:C5:49:08:8A" + local_interface: "0/39" + neighbor_interface: "6C:00:C5:49:08:8B" + neighbor_name: "abc-cc-acc-sw" remote_id: "29" - chassis_id: "6C:00:C5:49:08:8A" - port_id: "6C:00:C5:49:08:8B" - system_name: "abc-cc-acc-sw" - - local_interface: "0/40" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/41" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/42" + - chassis_id: "" + local_interface: "0/40" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "" + local_interface: "0/41" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "00:00:64:4D:00:68" + local_interface: "0/42" + neighbor_interface: "00:00:64:4D:6E:68" + neighbor_name: "u0030644d6e685" remote_id: "26" - chassis_id: "00:00:64:4D:00:68" - port_id: "00:00:64:4D:6E:68" - system_name: "u0030644d6e685" - - local_interface: "0/43" + - chassis_id: "6C:00:C5:49:8D:DE" + local_interface: "0/43" + neighbor_interface: "6C:00:C5:49:8D:DF" + neighbor_name: "abc-dd-acc-sw" remote_id: "9" - chassis_id: "6C:00:C5:49:8D:DE" - port_id: "6C:00:C5:49:8D:DF" - system_name: "abc-dd-acc-sw" - - local_interface: "0/44" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/45" + - chassis_id: "" + local_interface: "0/44" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "00:00:64:4D:D7:F0" + local_interface: "0/45" + neighbor_interface: "00:00:64:4D:D7:F0" + neighbor_name: "u0030644dd7f05" remote_id: "24" - chassis_id: "00:00:64:4D:D7:F0" - port_id: "00:00:64:4D:D7:F0" - system_name: "u0030644dd7f05" - - local_interface: "0/46" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/47" + - chassis_id: "" + local_interface: "0/46" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "00:00:64:4D:72:8A" + local_interface: "0/47" + neighbor_interface: "00:00:64:4D:72:8A" + neighbor_name: "u0030644d728a5" remote_id: "4" - chassis_id: "00:00:64:4D:72:8A" - port_id: "00:00:64:4D:72:8A" - system_name: "u0030644d728a5" - - local_interface: "0/48" - remote_id: "" - chassis_id: "" - port_id: "" - system_name: "" - - local_interface: "0/49" + - chassis_id: "" + local_interface: "0/48" + neighbor_interface: "" + neighbor_name: "" + remote_id: "" + - chassis_id: "A8:00:B5:57:CC:8D" + local_interface: "0/49" + neighbor_interface: "A8:00:B5:57:CC:8E" + neighbor_name: "abc-ee-abc-sw0101" remote_id: "1" - chassis_id: "A8:00:B5:57:CC:8D" - port_id: "A8:00:B5:57:CC:8E" - system_name: "abc-ee-abc-sw0101" - - local_interface: "0/50" + - chassis_id: "A8:00:B5:57:CB:01" + local_interface: "0/50" + neighbor_interface: "A8:00:B5:57:CB:02" + neighbor_name: "abc-ff-abc-sw0102" remote_id: "2" - chassis_id: "A8:00:B5:57:CB:01" - port_id: "A8:00:B5:57:CB:02" - system_name: "abc-ff-abc-sw0102" diff --git a/tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.yml b/tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.yml index 0c8a143543..70886696e0 100644 --- a/tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.yml +++ b/tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.yml @@ -1,7 +1,7 @@ --- parsed_sample: - - neighbor: "core-sw01" + - capabilities: "B,R" + holdtime: "120" local_interface: "Gi1/3" - hold_time: "120" - capabilities: "B,R" neighbor_interface: "Gi0/3" + neighbor_name: "core-sw01" diff --git a/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail.yml b/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail.yml index f073a1ac1e..8906beb3ad 100644 --- a/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail.yml +++ b/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail.yml @@ -1,35 +1,35 @@ --- parsed_sample: - - interface: "1" - neimac: "0024.38a5.5f31" - ttlsecs: "101" - neihostnametid: "mlx1.clmamofw" - neiinterface: "GigabitEthernet2/2" - neipvid: "none" - neimgmtip: "216.106.44.48" - neilacpindex: "66" - neimaxframesize: "9216" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge, router" - - interface: "2" - neimac: "001b.ed6b.3102" - ttlsecs: "98" - neihostnametid: "switch1b.clmamofw" - neiinterface: "GigabitEthernet3" - neipvid: "1" - neimgmtip: "10.255.1.47" - neilacpindex: "0" - neimaxframesize: "10240" - neiopmau: "1000BaseLX-FD" - neicapabilities: "bridge" - - interface: "11" - neimac: "609c.9f46.6e34" - ttlsecs: "96" - neihostnametid: "switch2.clmamoxo" - neiinterface: "GigabitEthernet2/1/1" - neipvid: "none" - neimgmtip: "10.255.13.30" - neilacpindex: "257" - neimaxframesize: "10200" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" + - capabilities: "bridge, router" + holdtime: "101" + local_interface: "1" + mgmt_address: "216.106.44.48" + neighbor_interface: "GigabitEthernet2/2" + neighbor_lacp_index: "66" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "9216" + neighbor_name: "mlx1.clmamofw" + neighbor_port_id: "0024.38a5.5f31" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "98" + local_interface: "2" + mgmt_address: "10.255.1.47" + neighbor_interface: "GigabitEthernet3" + neighbor_lacp_index: "0" + neighbor_mau: "1000BaseLX-FD" + neighbor_max_frame_size: "10240" + neighbor_name: "switch1b.clmamofw" + neighbor_port_id: "001b.ed6b.3102" + vlan_id: "1" + - capabilities: "bridge" + holdtime: "96" + local_interface: "11" + mgmt_address: "10.255.13.30" + neighbor_interface: "GigabitEthernet2/1/1" + neighbor_lacp_index: "257" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "10200" + neighbor_name: "switch2.clmamoxo" + neighbor_port_id: "609c.9f46.6e34" + vlan_id: "none" diff --git a/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail1.yml b/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail1.yml index e3a30a5d86..236fac9504 100644 --- a/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail1.yml +++ b/tests/brocade_fastiron/show_lldp_neighbors_detail/brocade_fastiron_show_lldp_neighbors_detail1.yml @@ -1,79 +1,79 @@ --- parsed_sample: - - interface: "1/1/2" - neimac: "00a0.c85a.a3dd" - ttlsecs: "118" - neihostnametid: "CLMAMOXR-TA5000B" - neiinterface: "" - neipvid: "" - neimgmtip: "10.255.5.98" - neilacpindex: "" - neimaxframesize: "" - neiopmau: "" - neicapabilities: "bridge" - - interface: "1/1/24" - neimac: "609c.9f44.bbf0" - ttlsecs: "97" - neihostnametid: "switch2.clmamoxi" - neiinterface: "GigabitEthernet2/1/1" - neipvid: "none" - neimgmtip: "10.255.13.22" - neilacpindex: "257" - neimaxframesize: "10200" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" - - interface: "1/3/1" - neimac: "609c.9f44.bc13" - ttlsecs: "113" - neihostnametid: "switch2.clmamoxi" - neiinterface: "10GigabitEthernet2/3/1" - neipvid: "none" - neimgmtip: "10.255.13.22" - neilacpindex: "385" - neimaxframesize: "10200" - neiopmau: "10GigBaseER" - neicapabilities: "bridge" - - interface: "1/3/2" - neimac: "609c.9f44.bc14" - ttlsecs: "113" - neihostnametid: "switch2.clmamoxi" - neiinterface: "10GigabitEthernet2/3/2" - neipvid: "none" - neimgmtip: "10.255.13.22" - neilacpindex: "385" - neimaxframesize: "10200" - neiopmau: "10GigBaseER" - neicapabilities: "bridge" - - interface: "2/1/1" - neimac: "cc4e.24c7.ccd4" - ttlsecs: "107" - neihostnametid: "Switch2.CLMAMOXH" - neiinterface: "GigabitEthernet1/1/1" - neipvid: "none" - neimgmtip: "10.255.13.2" - neilacpindex: "1" - neimaxframesize: "10200" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" - - interface: "2/3/1" - neimac: "cc4e.24c7.af6f" - ttlsecs: "112" - neihostnametid: "Switch2.CLMAMOXH" - neiinterface: "10GigabitEthernet2/3/1" - neipvid: "none" - neimgmtip: "10.255.13.2" - neilacpindex: "385" - neimaxframesize: "10200" - neiopmau: "10GigBaseER" - neicapabilities: "bridge" - - interface: "2/3/2" - neimac: "cc4e.24c7.af71" - ttlsecs: "112" - neihostnametid: "Switch2.CLMAMOXH" - neiinterface: "10GigabitEthernet2/3/3" - neipvid: "none" - neimgmtip: "10.255.13.2" - neilacpindex: "385" - neimaxframesize: "10200" - neiopmau: "10GigBaseER" - neicapabilities: "bridge" + - capabilities: "bridge" + holdtime: "118" + local_interface: "1/1/2" + mgmt_address: "10.255.5.98" + neighbor_interface: "" + neighbor_lacp_index: "" + neighbor_mau: "" + neighbor_max_frame_size: "" + neighbor_name: "CLMAMOXR-TA5000B" + neighbor_port_id: "00a0.c85a.a3dd" + vlan_id: "" + - capabilities: "bridge" + holdtime: "97" + local_interface: "1/1/24" + mgmt_address: "10.255.13.22" + neighbor_interface: "GigabitEthernet2/1/1" + neighbor_lacp_index: "257" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "10200" + neighbor_name: "switch2.clmamoxi" + neighbor_port_id: "609c.9f44.bbf0" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "113" + local_interface: "1/3/1" + mgmt_address: "10.255.13.22" + neighbor_interface: "10GigabitEthernet2/3/1" + neighbor_lacp_index: "385" + neighbor_mau: "10GigBaseER" + neighbor_max_frame_size: "10200" + neighbor_name: "switch2.clmamoxi" + neighbor_port_id: "609c.9f44.bc13" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "113" + local_interface: "1/3/2" + mgmt_address: "10.255.13.22" + neighbor_interface: "10GigabitEthernet2/3/2" + neighbor_lacp_index: "385" + neighbor_mau: "10GigBaseER" + neighbor_max_frame_size: "10200" + neighbor_name: "switch2.clmamoxi" + neighbor_port_id: "609c.9f44.bc14" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "107" + local_interface: "2/1/1" + mgmt_address: "10.255.13.2" + neighbor_interface: "GigabitEthernet1/1/1" + neighbor_lacp_index: "1" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "10200" + neighbor_name: "Switch2.CLMAMOXH" + neighbor_port_id: "cc4e.24c7.ccd4" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "112" + local_interface: "2/3/1" + mgmt_address: "10.255.13.2" + neighbor_interface: "10GigabitEthernet2/3/1" + neighbor_lacp_index: "385" + neighbor_mau: "10GigBaseER" + neighbor_max_frame_size: "10200" + neighbor_name: "Switch2.CLMAMOXH" + neighbor_port_id: "cc4e.24c7.af6f" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "112" + local_interface: "2/3/2" + mgmt_address: "10.255.13.2" + neighbor_interface: "10GigabitEthernet2/3/3" + neighbor_lacp_index: "385" + neighbor_mau: "10GigBaseER" + neighbor_max_frame_size: "10200" + neighbor_name: "Switch2.CLMAMOXH" + neighbor_port_id: "cc4e.24c7.af71" + vlan_id: "none" diff --git a/tests/brocade_netiron/show_lldp_neighbors_detail/brocade_netiron_show_lldp_neighbors_detail.yml b/tests/brocade_netiron/show_lldp_neighbors_detail/brocade_netiron_show_lldp_neighbors_detail.yml index bdc652e745..da9d95069b 100644 --- a/tests/brocade_netiron/show_lldp_neighbors_detail/brocade_netiron_show_lldp_neighbors_detail.yml +++ b/tests/brocade_netiron/show_lldp_neighbors_detail/brocade_netiron_show_lldp_neighbors_detail.yml @@ -1,57 +1,57 @@ --- parsed_sample: - - interface: "1/1" - neimac: "0012.f2f0.2377" - ttlsecs: "101" - neihostnametid: "switch1d.clmamofw" - neiinterface: "GigabitEthernet24" - neipvid: "1" - neimgmtip: "10.255.1.49" - neilacpindex: "0" - neimaxframesize: "10240" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" - - interface: "1/5" - neimac: "001b.ed6b.6304" - ttlsecs: "97" - neihostnametid: "switch1e.clmamofw" - neiinterface: "GigabitEthernet5" - neipvid: "none" - neimgmtip: "10.255.5.32" - neilacpindex: "5" - neimaxframesize: "10240" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" - - interface: "1/6" - neimac: "e8e7.32cd.b14e" - ttlsecs: "114" - neihostnametid: "" - neiinterface: "" - neipvid: "" - neimgmtip: "" - neilacpindex: "" - neimaxframesize: "" - neiopmau: "" - neicapabilities: "" - - interface: "1/10" - neimac: "001b.edae.fe09" - ttlsecs: "106" - neihostnametid: "fw1.clmamofw" - neiinterface: "GigabitEthernet1/10" - neipvid: "none" - neimgmtip: "216.106.21.252" - neilacpindex: "10" - neimaxframesize: "9216" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge, router" - - interface: "1/13" - neimac: "0026.f13c.85a9" - ttlsecs: "102" - neihostnametid: "FEBE1.SOCKET-COU" - neiinterface: "23" - neipvid: "" - neimgmtip: "192.168.11.1" - neilacpindex: "" - neimaxframesize: "" - neiopmau: "1000BaseT-FD" - neicapabilities: "bridge" + - capabilities: "bridge" + holdtime: "101" + local_interface: "1/1" + mgmt_address: "10.255.1.49" + neighbor_interface: "GigabitEthernet24" + neighbor_lacp_index: "0" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "10240" + neighbor_name: "switch1d.clmamofw" + neighbor_port_id: "0012.f2f0.2377" + vlan_id: "1" + - capabilities: "bridge" + holdtime: "97" + local_interface: "1/5" + mgmt_address: "10.255.5.32" + neighbor_interface: "GigabitEthernet5" + neighbor_lacp_index: "5" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "10240" + neighbor_name: "switch1e.clmamofw" + neighbor_port_id: "001b.ed6b.6304" + vlan_id: "none" + - capabilities: "" + holdtime: "114" + local_interface: "1/6" + mgmt_address: "" + neighbor_interface: "" + neighbor_lacp_index: "" + neighbor_mau: "" + neighbor_max_frame_size: "" + neighbor_name: "" + neighbor_port_id: "e8e7.32cd.b14e" + vlan_id: "" + - capabilities: "bridge, router" + holdtime: "106" + local_interface: "1/10" + mgmt_address: "216.106.21.252" + neighbor_interface: "GigabitEthernet1/10" + neighbor_lacp_index: "10" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "9216" + neighbor_name: "fw1.clmamofw" + neighbor_port_id: "001b.edae.fe09" + vlan_id: "none" + - capabilities: "bridge" + holdtime: "102" + local_interface: "1/13" + mgmt_address: "192.168.11.1" + neighbor_interface: "23" + neighbor_lacp_index: "" + neighbor_mau: "1000BaseT-FD" + neighbor_max_frame_size: "" + neighbor_name: "FEBE1.SOCKET-COU" + neighbor_port_id: "0026.f13c.85a9" + vlan_id: "" diff --git a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors.yml b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors.yml index 5b9b268e87..65853bb1cd 100644 --- a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors.yml +++ b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors.yml @@ -1,32 +1,32 @@ --- parsed_sample: - - neighbor: "R1-PBX" + - capabilities: "R S I" local_interface: "Gig 1/0/10" - capability: "R S I" - platform: "2811" neighbor_interface: "Fas 0/0" - - neighbor: "TS-1" + neighbor_name: "R1-PBX" + platform: "2811" + - capabilities: "R" local_interface: "Gig 1/0/39" - capability: "R" - platform: "2611" neighbor_interface: "Eth 0/1" - - neighbor: "Cisco-WAP-N" + neighbor_name: "TS-1" + platform: "2611" + - capabilities: "T I" local_interface: "Gig 1/0/1" - capability: "T I" - platform: "AIR-AP125" neighbor_interface: "Gig 0" - - neighbor: "SEP04FE7F689D33" + neighbor_name: "Cisco-WAP-N" + platform: "AIR-AP125" + - capabilities: "H P" local_interface: "Gig 1/0/2" - capability: "H P" - platform: "IP Phone" neighbor_interface: "Port 1" - - neighbor: "SEP000DBC50FCD1" - local_interface: "Gig 1/0/4" - capability: "H P" + neighbor_name: "SEP04FE7F689D33" platform: "IP Phone" + - capabilities: "H P" + local_interface: "Gig 1/0/4" neighbor_interface: "Port 1" - - neighbor: "SEP00124362C4D2" - local_interface: "Gig 1/0/42" - capability: "H P" + neighbor_name: "SEP000DBC50FCD1" platform: "IP Phone" + - capabilities: "H P" + local_interface: "Gig 1/0/42" neighbor_interface: "Port 1" + neighbor_name: "SEP00124362C4D2" + platform: "IP Phone" diff --git a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_2.yml b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_2.yml index 7b14c82688..0d73bc5f82 100644 --- a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_2.yml +++ b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_2.yml @@ -1,57 +1,57 @@ --- parsed_sample: - - capability: "R I" + - capabilities: "R I" local_interface: "Ten 1/1/3" - neighbor: "asr1002-2.some.example.com" neighbor_interface: "Ten 0/1/0" + neighbor_name: "asr1002-2.some.example.com" platform: "ASR1002-H" - - capability: "H" + - capabilities: "H" local_interface: "Ten 1/0/6" - neighbor: "vWAAS3b" neighbor_interface: "Virtual 2/0" + neighbor_name: "vWAAS3b" platform: "OE-VWAAS" - - capability: "H" + - capabilities: "H" local_interface: "Ten 1/0/6" - neighbor: "vWAAS3b" neighbor_interface: "Virtual 1/0" + neighbor_name: "vWAAS3b" platform: "OE-VWAAS" - - capability: "H" + - capabilities: "H" local_interface: "Ten 1/0/7" - neighbor: "vWAAS4b" neighbor_interface: "Virtual 2/0" + neighbor_name: "vWAAS4b" platform: "OE-VWAAS" - - capability: "H" + - capabilities: "H" local_interface: "Ten 1/0/7" - neighbor: "vWAAS4b" neighbor_interface: "Virtual 1/0" + neighbor_name: "vWAAS4b" platform: "OE-VWAAS" - - capability: "S I" + - capabilities: "S I" local_interface: "Gig 0/0" - neighbor: "NEXTGENLABSWT01.some.example.com" neighbor_interface: "Gig 0/23" + neighbor_name: "NEXTGENLABSWT01.some.example.com" platform: "WS-C3560X" - - capability: "R B S I" + - capabilities: "R B S I" local_interface: "Ten 1/0/4" - neighbor: "router01.some.example.com" neighbor_interface: "Gig 0/0" + neighbor_name: "router01.some.example.com" platform: "CISCO2911" - - capability: "R S I" + - capabilities: "R S I" local_interface: "Ten 1/1/6" - neighbor: "9300mgig-1.some.example.com" neighbor_interface: "Ten 1/1/7" + neighbor_name: "9300mgig-1.some.example.com" platform: "C9300-24U" - - capability: "R S I" + - capabilities: "R S I" local_interface: "Ten 1/1/7" - neighbor: "9300mgig-1.some.example.com" neighbor_interface: "Ten 1/1/6" + neighbor_name: "9300mgig-1.some.example.com" platform: "C9300-24U" - - capability: "R S I" + - capabilities: "R S I" local_interface: "Ten 1/1/8" - neighbor: "9500-1.some.example.com" neighbor_interface: "Ten 2/0/36" + neighbor_name: "9500-1.some.example.com" platform: "C9500-40X" - - capability: "R S I" + - capabilities: "R S I" local_interface: "Ten 1/1/1" - neighbor: "9300mgig-2.some.example.com" neighbor_interface: "Ten 1/1/2" + neighbor_name: "9300mgig-2.some.example.com" platform: "C9300-24U" diff --git a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_3.yml b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_3.yml index f52706491f..169d359066 100644 --- a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_3.yml +++ b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_3.yml @@ -1,112 +1,112 @@ --- parsed_sample: - - capability: "H P" + - capabilities: "H P" local_interface: "Gig 1/0/16" - neighbor: "SEP000000000000" neighbor_interface: "port 1" + neighbor_name: "SEP000000000000" platform: "IP Phone" - - capability: "T B I" + - capabilities: "T B I" local_interface: "Gig 1/0/45" - neighbor: "AP000000000" neighbor_interface: "Gig 0" + neighbor_name: "AP000000000" platform: "AIR-CAP35" - - capability: "T B I" + - capabilities: "T B I" local_interface: "Gig 1/0/46" - neighbor: "AP000000001" neighbor_interface: "Gig 0" + neighbor_name: "AP000000001" platform: "AIR-CAP35" - - capability: "T" + - capabilities: "T" local_interface: "Gig 1/0/1" - neighbor: "WAAS0000000" neighbor_interface: "InlinePort 1/1/lan" + neighbor_name: "WAAS0000000" platform: "OE474" - - capability: "H" + - capabilities: "H" local_interface: "Gig 1/0/40" - neighbor: "WAAS0000000" neighbor_interface: "Gig 1/0" + neighbor_name: "WAAS0000000" platform: "OE474" - - capability: "R B S" + - capabilities: "R B S" local_interface: "Gig 1/0/1" - neighbor: "router.domain.local" neighbor_interface: "Gig 0/0" + neighbor_name: "router.domain.local" platform: "CISCO2911" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/33" - neighbor: "SEP000000000001" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000001" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/29" - neighbor: "SEP000000000002" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000002" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/30" - neighbor: "SEP000000000003" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000003" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/14" - neighbor: "SEP000000000004" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000004" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/8" - neighbor: "SEP000000000005" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000005" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/13" - neighbor: "SEP000000000006" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000006" platform: "IP Phone" - - capability: "H P" + - capabilities: "H P" local_interface: "Gig 1/0/15" - neighbor: "SEP000000000007" neighbor_interface: "eth0" + neighbor_name: "SEP000000000007" platform: "CTS-CODEC" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/37" - neighbor: "SEP000000000008" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000008" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/34" - neighbor: "SEP000000000009" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000009" platform: "IP Phone" - - capability: "H P" + - capabilities: "H P" local_interface: "Gig 1/0/21" - neighbor: "SEP00000000000A" neighbor_interface: "eth0" + neighbor_name: "SEP00000000000A" platform: "CTS-CODEC" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/35" - neighbor: "SEP00000000000B" neighbor_interface: "Port 1" + neighbor_name: "SEP00000000000B" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/24" - neighbor: "SEP00000000000C" neighbor_interface: "Port 1" + neighbor_name: "SEP00000000000C" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/9" - neighbor: "SEP00000000000D" neighbor_interface: "Port 1" + neighbor_name: "SEP00000000000D" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/17" - neighbor: "SEP00000000000E" neighbor_interface: "Port 1" + neighbor_name: "SEP00000000000E" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/20" - neighbor: "SEP00000000000F" neighbor_interface: "Port 1" + neighbor_name: "SEP00000000000F" platform: "IP Phone" - - capability: "H P M" + - capabilities: "H P M" local_interface: "Gig 1/0/36" - neighbor: "SEP000000000010" neighbor_interface: "Port 1" + neighbor_name: "SEP000000000010" platform: "IP Phone" diff --git a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_4.yml b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_4.yml index b40ca9cb00..105657bdcb 100644 --- a/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_4.yml +++ b/tests/cisco_ios/show_cdp_neighbors/cisco_ios_show_cdp_neighbors_4.yml @@ -1,7 +1,7 @@ --- parsed_sample: - - neighbor: "acc-sw101" + - capabilities: "R" local_interface: "Ten 3/7" - capability: "R" - platform: "AS5610-52" neighbor_interface: "0/47" + neighbor_name: "acc-sw101" + platform: "AS5610-52" diff --git a/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail.yml b/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail.yml index d5490d91e6..6157e3b909 100644 --- a/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail.yml +++ b/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail.yml @@ -1,35 +1,35 @@ --- parsed_sample: - - platform: "cisco WS-C2960-8TC-L" - management_ip: "10.1.1.2" - software_version: "Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version\ - \ 12.2(55)SE9, RELEASE SOFTWARE (fc1)" - destination_host: "desktop-switch" - remote_port: "GigabitEthernet0/1" - local_port: "GigabitEthernet1/0/16" - capabilities: "Switch IGMP" - - platform: "Cisco 3825" - management_ip: "10.1.1.1" - software_version: "Cisco IOS Software, 3800 Software (C3825-ADVENTERPRISEK9-M),\ + - capabilities: "Switch IGMP" + local_interface: "GigabitEthernet1/0/16" + mgmt_address: "10.1.1.2" + neighbor_description: "Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M),\ + \ Version 12.2(55)SE9, RELEASE SOFTWARE (fc1)" + neighbor_interface: "GigabitEthernet0/1" + neighbor_name: "desktop-switch" + platform: "cisco WS-C2960-8TC-L" + - capabilities: "Router Switch IGMP" + local_interface: "GigabitEthernet1/0/22" + mgmt_address: "10.1.1.1" + neighbor_description: "Cisco IOS Software, 3800 Software (C3825-ADVENTERPRISEK9-M),\ \ Version 12.4(24)T1, RELEASE SOFTWARE (fc3)" - destination_host: "ce-router" - remote_port: "GigabitEthernet0/0" - local_port: "GigabitEthernet1/0/22" - capabilities: "Router Switch IGMP" - - platform: "VMware" - management_ip: "10.1.1.232" - software_version: "Linux 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54\ + neighbor_interface: "GigabitEthernet0/0" + neighbor_name: "ce-router" + platform: "Cisco 3825" + - capabilities: "Host" + local_interface: "GigabitEthernet1/0/19" + mgmt_address: "10.1.1.232" + neighbor_description: "Linux 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54\ \ EDT 2014 CCM:10.5.2.10000-5.i386" - destination_host: "server" - remote_port: "eth0" - local_port: "GigabitEthernet1/0/19" - capabilities: "Host" - - platform: "Cisco " - management_ip: "" - software_version: "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M),\ + neighbor_interface: "eth0" + neighbor_name: "server" + platform: "VMware" + - capabilities: "Router Switch IGMP" + local_interface: "GigabitEthernet0/3" + mgmt_address: "" + neighbor_description: "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M),\ \ Version 15.2(CML_NIGHTLY_20150414)FLO_DSGS7, EARLY DEPLOYMENT DEVELOPMENT\ \ BUILD, synced to DSGS_PI5_POSTCOLLAPSE_TEAM_TRACK_CLONE" - destination_host: "vIOS-L2-1" - remote_port: "GigabitEthernet0/3" - local_port: "GigabitEthernet0/3" - capabilities: "Router Switch IGMP" + neighbor_interface: "GigabitEthernet0/3" + neighbor_name: "vIOS-L2-1" + platform: "Cisco " diff --git a/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail2.yml b/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail2.yml index a41866de2c..9414b680f1 100644 --- a/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail2.yml +++ b/tests/cisco_ios/show_cdp_neighbors_detail/cisco_ios_show_cdp_neighbors_detail2.yml @@ -1,10 +1,10 @@ --- parsed_sample: - - destination_host: "switchxxxxx" - management_ip: "1.1.1.1" - platform: "cisco WS-C3560X-24P" - remote_port: "GigabitEthernet0/8" - local_port: "GigabitEthernet0/3" - software_version: "Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M),\ + - capabilities: "Switch IGMP" + local_interface: "GigabitEthernet0/3" + mgmt_address: "1.1.1.1" + neighbor_description: "Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M),\ \ Version 12.2(55)SE10, RELEASE SOFTWARE (fc2)" - capabilities: "Switch IGMP" + neighbor_interface: "GigabitEthernet0/8" + neighbor_name: "switchxxxxx" + platform: "cisco WS-C3560X-24P" diff --git a/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors.yml b/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors.yml index 92179081dd..90009ed973 100644 --- a/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors.yml +++ b/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors.yml @@ -2,21 +2,21 @@ parsed_sample: - capabilities: "B" local_interface: "Fa0/13" - neighbor: "S2" neighbor_interface: "Gi0/13" + neighbor_name: "S2" - capabilities: "" local_interface: "Gi1/0/7" - neighbor: "Cisco-switch-1" neighbor_interface: "Gi0/1" + neighbor_name: "Cisco-switch-1" - capabilities: "B,R" local_interface: "Gi2/0/1" - neighbor: "Juniper-switch1" neighbor_interface: "666" + neighbor_name: "Juniper-switch1" - capabilities: "B,R" local_interface: "Gi1/0/1" - neighbor: "Juniper-switch1" neighbor_interface: "531" + neighbor_name: "Juniper-switch1" - capabilities: "T" local_interface: "Gi1/0/2" - neighbor: "Polycom VVX 500" neighbor_interface: "0004.f2d1.2222" + neighbor_name: "Polycom VVX 500" diff --git a/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.yml b/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.yml index 40e76026e1..c59e5e9a18 100644 --- a/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.yml +++ b/tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.yml @@ -1,6 +1,6 @@ --- parsed_sample: - - neighbor: "long_name_swt.josh-v" + - capabilities: "R" local_interface: "Gi0/2" - capabilities: "R" neighbor_interface: "Gi0/0" + neighbor_name: "long_name_swt.josh-v" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail1.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail1.yml index f509e5a50d..a43ec69927 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail1.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail1.yml @@ -6,12 +6,14 @@ parsed_sample: hw_revision: "" local_interface: "Gi1/0/2" mac_address: "" - management_ip: "" manufacturer: "" - model: "" - neighbor: "" + mgmt_address: "" + neighbor_description: "Juniper Networks, Inc. ex2200-24t-4g , version 12.3R9.4\ + \ Build date: 2015-02-12 11:25:30 UTC" neighbor_interface: "ge-0/0/0.0" + neighbor_name: "" neighbor_port_id: "502" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -20,8 +22,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Juniper Networks, Inc. ex2200-24t-4g , version 12.3R9.4 Build\ - \ date: 2015-02-12 11:25:30 UTC" vlan_id: "1" - capabilities: "B" chassis_id: "94f1.2879.5555" @@ -29,12 +29,14 @@ parsed_sample: hw_revision: "" local_interface: "Gi1/0/1" mac_address: "" - management_ip: "192.168.1.81" manufacturer: "" - model: "" - neighbor: "HpSwitch" + mgmt_address: "192.168.1.81" + neighbor_description: "HPE OfficeConnect Switch 1820 48G J9981A, PT.02.01, Linux\ + \ 3.6.5-79c95a77, U-Boot 2012.10-00116-g3ab515c (Jul 30 2014 - 10:52:01)" neighbor_interface: "13" + neighbor_name: "HpSwitch" neighbor_port_id: "94f1.2879.5555" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -43,8 +45,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "HPE OfficeConnect Switch 1820 48G J9981A, PT.02.01, Linux\ - \ 3.6.5-79c95a77, U-Boot 2012.10-00116-g3ab515c (Jul 30 2014 - 10:52:01)" vlan_id: "" - capabilities: "W" chassis_id: "4448.c1c4.dddd" @@ -52,12 +52,13 @@ parsed_sample: hw_revision: "" local_interface: "Gi1/0/9" mac_address: "" - management_ip: "192.168.1.40" manufacturer: "" - model: "" - neighbor: "44:48:c1:c4:dd:dd" + mgmt_address: "192.168.1.40" + neighbor_description: "ArubaOS (MODEL: 225), Version 6.4.2.6-4.1.1.6 (50009)" neighbor_interface: "eth0" + neighbor_name: "44:48:c1:c4:dd:dd" neighbor_port_id: "4448.c1c4.dddd" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -66,5 +67,4 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "ArubaOS (MODEL: 225), Version 6.4.2.6-4.1.1.6 (50009)" vlan_id: "" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail2.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail2.yml index ebec7ae74b..303cb60f9f 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail2.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail2.yml @@ -6,12 +6,15 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "11.11.11.11" manufacturer: "" - model: "" - neighbor: "USSC-CAMPUS-CORE-GW2" + mgmt_address: "11.11.11.11" + neighbor_description: "Cisco NX-OS(tm) n7700, Software (n7700-s2-dk9), Version\ + \ 6.2(10), RELEASE SOFTWARE Copyright (c) 2002-2013 by Cisco Systems, Inc. Compiled\ + \ 10/9/2014 12:00:00" neighbor_interface: "PO2631-10Gx2-R261R5" + neighbor_name: "USSC-CAMPUS-CORE-GW2" neighbor_port_id: "Eth1/6" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -20,9 +23,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco NX-OS(tm) n7700, Software (n7700-s2-dk9), Version 6.2(10),\ - \ RELEASE SOFTWARE Copyright (c) 2002-2013 by Cisco Systems, Inc. Compiled 10/9/2014\ - \ 12:00:00" vlan_id: "1" - capabilities: "B,R" chassis_id: "2222.0642.7333" @@ -30,12 +30,15 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "33.33.33.3" manufacturer: "" - model: "" - neighbor: "USSC-CAMPUS-CORE-GW1.acme123.com" + mgmt_address: "33.33.33.3" + neighbor_description: "Cisco NX-OS(tm) n7700, Software (n7700-s2-dk9), Version\ + \ 6.2(10), RELEASE SOFTWARE Copyright (c) 2002-2013 by Cisco Systems, Inc. Compiled\ + \ 10/9/2014 12:00:00" neighbor_interface: "PO2631-10Gx2-R261R5" + neighbor_name: "USSC-CAMPUS-CORE-GW1.acme123.com" neighbor_port_id: "Eth1/6" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -44,9 +47,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco NX-OS(tm) n7700, Software (n7700-s2-dk9), Version 6.2(10),\ - \ RELEASE SOFTWARE Copyright (c) 2002-2013 by Cisco Systems, Inc. Compiled 10/9/2014\ - \ 12:00:00" vlan_id: "1" - capabilities: "B" chassis_id: "0015.2222.c330" @@ -54,12 +54,14 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "55.55.55.55" manufacturer: "" - model: "" - neighbor: "DMZ-SW1" + mgmt_address: "55.55.55.55" + neighbor_description: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ + \ Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)" neighbor_interface: "GigabitEthernet2/0/24" + neighbor_name: "DMZ-SW1" neighbor_port_id: "Gi2/0/24" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -68,8 +70,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ - \ Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)" vlan_id: "" - capabilities: "" chassis_id: "0022.1111.2222" @@ -77,12 +77,13 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "" manufacturer: "" - model: "" - neighbor: "" + mgmt_address: "" + neighbor_description: "" neighbor_interface: "" + neighbor_name: "" neighbor_port_id: "g2" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -91,5 +92,4 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "" vlan_id: "" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail3.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail3.yml index c6c6c2d66c..14c2dd0b9f 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail3.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail3.yml @@ -6,12 +6,13 @@ parsed_sample: hw_revision: "12" local_interface: "Gi0/1/7" mac_address: "" - management_ip: "10.10.0.1" manufacturer: "Cisco Systems, Inc." - model: "CP-7962G" - neighbor: "SEPC8F9F9D61BC2" + mgmt_address: "10.10.0.1" + neighbor_description: "Cisco IP Phone 7962G,V12, SCCP42.9-3-1ES27S" neighbor_interface: "SW PORT" + neighbor_name: "SEPC8F9F9D61BC2" neighbor_port_id: "C8F9F9D61BC2:P1" + platform: "CP-7962G" power_class: "" power_device_type: "" power_pair: "" @@ -20,5 +21,4 @@ parsed_sample: power_source: "" serial: "FCH1610A5S5" sw_revision: "SCCP42.9-3-1ES27S" - system_description: "Cisco IP Phone 7962G,V12, SCCP42.9-3-1ES27S" vlan_id: "" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail4.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail4.yml index c590927cff..26c20380bc 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail4.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail4.yml @@ -6,12 +6,13 @@ parsed_sample: hw_revision: "47.0.0.80.0.0.0" local_interface: "Gi2/0/13" mac_address: "" - management_ip: "" manufacturer: "ZULTYS" - model: "ZIP 33G" - neighbor: "ZULTYS IP Phone" + mgmt_address: "" + neighbor_description: "ZULTYS IP Phone" neighbor_interface: "WAN PORT" + neighbor_name: "ZULTYS IP Phone" neighbor_port_id: "000b.ea00.16e0" + platform: "ZIP 33G" power_class: "" power_device_type: "" power_pair: "" @@ -20,7 +21,6 @@ parsed_sample: power_source: "" serial: "000bea0016e0" sw_revision: "47.80.132.1" - system_description: "ZULTYS IP Phone" vlan_id: "" - capabilities: "B,R" chassis_id: "2c33.1100.a6c0" @@ -28,12 +28,14 @@ parsed_sample: hw_revision: "" local_interface: "Te1/1/1" mac_address: "" - management_ip: "172.16.0.10" manufacturer: "" - model: "" - neighbor: "dsw01" + mgmt_address: "172.16.0.10" + neighbor_description: "Cisco IOS Software, s6t64 Software (s6t64-ADVENTERPRISEK9-M),\ + \ Version 15.4(1)SY3, RELEASE SOFTWARE (fc4)" neighbor_interface: "asw22" + neighbor_name: "dsw01" neighbor_port_id: "Te1/2/13" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -42,6 +44,4 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco IOS Software, s6t64 Software (s6t64-ADVENTERPRISEK9-M),\ - \ Version 15.4(1)SY3, RELEASE SOFTWARE (fc4)" vlan_id: "1" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail5.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail5.yml index 11474689b8..979c0f6e0d 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail5.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail5.yml @@ -6,12 +6,13 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "172.31.176.154" manufacturer: "" - model: "" - neighbor: "system1" + mgmt_address: "172.31.176.154" + neighbor_description: "Cisco AP Software, ap3g3-k9w8 Version: 8.10.162.0" neighbor_interface: "eth0" + neighbor_name: "system1" neighbor_port_id: "0" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -20,7 +21,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco AP Software, ap3g3-k9w8 Version: 8.10.162.0" vlan_id: "" - capabilities: "S" chassis_id: "0004.7a2a.bbbb" @@ -28,12 +28,13 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "10.132.14.52" manufacturer: "" - model: "" - neighbor: "system2" + mgmt_address: "10.132.14.52" + neighbor_description: "Dragonfly" neighbor_interface: "eth0" + neighbor_name: "system2" neighbor_port_id: "0004.7a2a.bbbb" + platform: "" power_class: "4" power_device_type: "2" power_pair: "Spare" @@ -42,7 +43,6 @@ parsed_sample: power_source: "PSE" serial: "" sw_revision: "" - system_description: "Dragonfly" vlan_id: "" - capabilities: "S" chassis_id: "0004.7a2a.cccc" @@ -50,12 +50,13 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "10.132.14.53" manufacturer: "" - model: "" - neighbor: "system3" + mgmt_address: "10.132.14.53" + neighbor_description: "Dragonfly" neighbor_interface: "eth0" + neighbor_name: "system3" neighbor_port_id: "0004.7a2a.cccc" + platform: "" power_class: "4" power_device_type: "2" power_pair: "Spare" @@ -64,7 +65,6 @@ parsed_sample: power_source: "PSE" serial: "" sw_revision: "" - system_description: "Dragonfly" vlan_id: "" - capabilities: "B,S" chassis_id: "S7-1200 6DS7 212-1BH40-0XB0 S V-LCCC5820 \ @@ -73,12 +73,14 @@ parsed_sample: hw_revision: "" local_interface: "" mac_address: "" - management_ip: "10.176.0.245" manufacturer: "" - model: "" - neighbor: "" + mgmt_address: "10.176.0.245" + neighbor_description: "Siemens, SIMATIC S7, CPU-1200, 6ES7 211-1CC40-0XB0, HW:\ + \ 10, FW: V.4.3.1, S V-LDCE8620" neighbor_interface: "Siemens, SIMATIC S7, Ethernet Port, X1 P1" + neighbor_name: "" neighbor_port_id: "port-001.ploobdfad" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -87,6 +89,4 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Siemens, SIMATIC S7, CPU-1200, 6ES7 211-1CC40-0XB0, HW: 10,\ - \ FW: V.4.3.1, S V-LDCE8620" vlan_id: "" diff --git a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail_01.yml b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail_01.yml index 15d5c22340..ab3affc0dd 100644 --- a/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail_01.yml +++ b/tests/cisco_ios/show_lldp_neighbors_detail/cisco_ios_show_lldp_neighbors_detail_01.yml @@ -6,12 +6,14 @@ parsed_sample: hw_revision: "" local_interface: "Gi1/1/2" mac_address: "2416.abcd.ab12" - management_ip: "172.16.1.1" manufacturer: "" - model: "" - neighbor: "sdalab-bldg1-as01.devices.example.com" + mgmt_address: "172.16.1.1" + neighbor_description: "Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software\ + \ (CAT9K_IOSXE), Version 17.6.5, RELEASE SOFTWARE (fc2)" neighbor_interface: "GigabitEthernet1/0/16" + neighbor_name: "sdalab-bldg1-as01.devices.example.com" neighbor_port_id: "Gi1/0/16" + platform: "" power_class: "" power_device_type: "" power_pair: "" @@ -20,8 +22,6 @@ parsed_sample: power_source: "" serial: "" sw_revision: "" - system_description: "Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software - (CAT9K_IOSXE), Version 17.6.5, RELEASE SOFTWARE (fc2)" vlan_id: "1" - capabilities: "B,T" chassis_id: "10.65.1.11" @@ -29,12 +29,13 @@ parsed_sample: hw_revision: "9.1.3.3" local_interface: "Gi1/0/1" mac_address: "0060.abbc.adde" - management_ip: "" manufacturer: "NEC" - model: "DT730" - neighbor: "NEC IP Phone" + mgmt_address: "" + neighbor_description: "DT700 Series" neighbor_interface: "LAN Port" + neighbor_name: "NEC IP Phone" neighbor_port_id: "0060.abbc.abbc" + platform: "DT730" power_class: "" power_device_type: "" power_pair: "" @@ -43,5 +44,4 @@ parsed_sample: power_source: "" serial: "-" sw_revision: "-" - system_description: "DT700 Series" vlan_id: "" diff --git a/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors.yml b/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors.yml index 9007399b20..6c32a4ce13 100644 --- a/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors.yml +++ b/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors.yml @@ -1,44 +1,44 @@ --- parsed_sample: - - neighbor: "PERIMETER" - local_interface: "mgmt0" + - capabilities: "R S I" holdtime: "179" - capability: "R S I" - platform: "WS-C3750-48TS" + local_interface: "mgmt0" neighbor_interface: "Fas1/0/9" - - neighbor: "N9K2_TEST.lab.com(SAL1819S6BE)" - local_interface: "Eth1/1" + neighbor_name: "PERIMETER" + platform: "WS-C3750-48TS" + - capabilities: "R S s" holdtime: "133" - capability: "R S s" - platform: "N9K-C9396PX" + local_interface: "Eth1/1" neighbor_interface: "Eth1/1" - - neighbor: "N9K2_TEST.lab.com(SAL1819S6BE)" - local_interface: "Eth1/2" - holdtime: "154" - capability: "R S s" + neighbor_name: "N9K2_TEST.lab.com(SAL1819S6BE)" platform: "N9K-C9396PX" + - capabilities: "R S s" + holdtime: "154" + local_interface: "Eth1/2" neighbor_interface: "Eth1/2" - - neighbor: "savbu-qa-dist-120" - local_interface: "mgmt1" + neighbor_name: "N9K2_TEST.lab.com(SAL1819S6BE)" + platform: "N9K-C9396PX" + - capabilities: "S I" holdtime: "177" - capability: "S I" - platform: "WS-C3750E-24T" + local_interface: "mgmt1" neighbor_interface: "Gig1/0/13" - - neighbor: "swor96(SSI13110AAQ)" - local_interface: "Eth1/17" + neighbor_name: "savbu-qa-dist-120" + platform: "WS-C3750E-24T" + - capabilities: "S I s" holdtime: "165" - capability: "S I s" - platform: "N5K-C5010P-BF" + local_interface: "Eth1/17" neighbor_interface: "Eth1/19" - - neighbor: "test" - local_interface: "mgmt0" + neighbor_name: "swor96(SSI13110AAQ)" + platform: "N5K-C5010P-BF" + - capabilities: "S I S I d" holdtime: "1" - capability: "S I S I d" - platform: "WS-C3750E-24T" + local_interface: "mgmt0" neighbor_interface: "Gig1/0/13" - - neighbor: "new_test" - local_interface: "Eth1/10" + neighbor_name: "test" + platform: "WS-C3750E-24T" + - capabilities: "S" holdtime: "20" - capability: "S" - platform: "N5k" + local_interface: "Eth1/10" neighbor_interface: "Eth2/1" + neighbor_name: "new_test" + platform: "N5k" diff --git a/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors2.yml b/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors2.yml index d4fe3198b5..76fc7bef7d 100644 --- a/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors2.yml +++ b/tests/cisco_nxos/show_cdp_neighbors/cisco_nxos_show_cdp_neighbors2.yml @@ -1,38 +1,38 @@ --- parsed_sample: - - neighbor: "my-dc1-mgt-sw1(FOC213230KP)" - local_interface: "mgmt0" + - capabilities: "R S I s" holdtime: "138" - capability: "R S I s" - platform: "N3K-C3172PQ-XL" + local_interface: "mgmt0" neighbor_interface: "Eth1/48" - - neighbor: "lx-dc1-server01.mynetwork.com" - local_interface: "Eth1/1/1" + neighbor_name: "my-dc1-mgt-sw1(FOC213230KP)" + platform: "N3K-C3172PQ-XL" + - capabilities: "H" holdtime: "109" - capability: "H" - platform: "Linux" + local_interface: "Eth1/1/1" neighbor_interface: "eth9" - - neighbor: "lx-dc1-server02.mynetwork.com" - local_interface: "Eth1/1/2" - holdtime: "106" - capability: "H" + neighbor_name: "lx-dc1-server01.mynetwork.com" platform: "Linux" + - capabilities: "H" + holdtime: "106" + local_interface: "Eth1/1/2" neighbor_interface: "eth9" - - neighbor: "lx-dc1-server03.mynetwork.com" - local_interface: "Eth1/1/3" - holdtime: "91" - capability: "H" + neighbor_name: "lx-dc1-server02.mynetwork.com" platform: "Linux" + - capabilities: "H" + holdtime: "91" + local_interface: "Eth1/1/3" neighbor_interface: "eth9" - - neighbor: "lx-dc1-server04.mynetwork.com" - local_interface: "Eth1/1/4" - holdtime: "112" - capability: "H" + neighbor_name: "lx-dc1-server03.mynetwork.com" platform: "Linux" + - capabilities: "H" + holdtime: "112" + local_interface: "Eth1/1/4" neighbor_interface: "eth9" - - neighbor: "lx-dc1-server05.mynetwork.com" - local_interface: "Eth1/2/1" - holdtime: "100" - capability: "H" + neighbor_name: "lx-dc1-server04.mynetwork.com" platform: "Linux" + - capabilities: "H" + holdtime: "100" + local_interface: "Eth1/2/1" neighbor_interface: "eth9" + neighbor_name: "lx-dc1-server05.mynetwork.com" + platform: "Linux" diff --git a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.yml b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.yml index 0ab9ac3026..709935bbc5 100644 --- a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.yml +++ b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.yml @@ -1,48 +1,52 @@ --- parsed_sample: - - dest_host: "PERIMETER" - local_port: "mgmt0" - mgmt_ip: "10.1.100.1" - platform: "cisco WS-C3750-48TS" - remote_port: "FastEthernet1/0/32" - sysname: "" - version: "Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(44)SE2,\ - \ RELEASE SOFTWARE (fc2)" + - capabilities: "Router Switch IGMP Filtering" + chassis_id: "PERIMETER" interface_ip: "10.1.100.1" - capabilities: "Router Switch IGMP Filtering" - - dest_host: "dc-lf03(SAL19069XXX)" - local_port: "Ethernet1/1" - mgmt_ip: "10.1.100.226" - platform: "N9K-C9372TX" - remote_port: "Ethernet1/1" - sysname: "dc-lf03" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1)" + local_interface: "mgmt0" + mgmt_address: "10.1.100.1" + neighbor_description: "Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M),\ + \ Version 12.2(44)SE2, RELEASE SOFTWARE (fc2)" + neighbor_interface: "FastEthernet1/0/32" + neighbor_name: "" + platform: "cisco WS-C3750-48TS" + - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "dc-lf03(SAL19069XXX)" interface_ip: "10.1.100.226" - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" - - dest_host: "dc-lf03(SAL1906XXXX)" - local_port: "Ethernet1/3" - mgmt_ip: "10.1.100.226" + local_interface: "Ethernet1/1" + mgmt_address: "10.1.100.226" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(3)I5(1)" + neighbor_interface: "Ethernet1/1" + neighbor_name: "dc-lf03" platform: "N9K-C9372TX" - remote_port: "Ethernet1/3" - sysname: "dc-lf03" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1)" + - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "dc-lf03(SAL1906XXXX)" interface_ip: "10.1.100.226" - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" - - dest_host: "dc-sp01(SAL19069XXX)" - local_port: "Ethernet1/49" - mgmt_ip: "10.1.100.222" + local_interface: "Ethernet1/3" + mgmt_address: "10.1.100.226" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(3)I5(1)" + neighbor_interface: "Ethernet1/3" + neighbor_name: "dc-lf03" platform: "N9K-C9372TX" - remote_port: "Ethernet1/52" - sysname: "dc-sp01" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d)" + - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "dc-sp01(SAL19069XXX)" interface_ip: "10.1.1.1" - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" - - dest_host: "dc-sp02(SAL19069XXX)" - local_port: "Ethernet1/50" - mgmt_ip: "10.1.100.223" + local_interface: "Ethernet1/49" + mgmt_address: "10.1.100.222" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(3)I2(2d)" + neighbor_interface: "Ethernet1/52" + neighbor_name: "dc-sp01" platform: "N9K-C9372TX" - remote_port: "Ethernet1/52" - sysname: "dc-sp02" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d)" + - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "dc-sp02(SAL19069XXX)" interface_ip: "10.1.1.9" - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + local_interface: "Ethernet1/50" + mgmt_address: "10.1.100.223" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(3)I2(2d)" + neighbor_interface: "Ethernet1/52" + neighbor_name: "dc-sp02" + platform: "N9K-C9372TX" diff --git a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail1.yml b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail1.yml index eeac035473..7ba1eddb5a 100644 --- a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail1.yml +++ b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail1.yml @@ -1,38 +1,42 @@ --- parsed_sample: - - dest_host: "DC3P01SW01.test.co.nz" - local_port: "mgmt0" - mgmt_ip: "10.115.143.251" - platform: "WS-C3560X-24" - remote_port: "GigabitEthernet0/20" - sysname: "" - version: "Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1)" + - capabilities: "Switch IGMP Filtering" + chassis_id: "DC3P01SW01.test.co.nz" interface_ip: "10.115.143.251" - capabilities: "Switch IGMP Filtering" - - dest_host: "DC3TESTW01-55.test.co.nz(SSI3707070J)" - local_port: "Ethernet1/1" - mgmt_ip: "10.115.143.120" - platform: "N5K-C5548UP" - remote_port: "Ethernet1/31" - sysname: "DC3TESTW01-55" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 5.2(1)N1(4)" + local_interface: "mgmt0" + mgmt_address: "10.115.143.251" + neighbor_description: "Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M),\ + \ Version 12.2(55)SE5, RELEASE SOFTWARE (fc1)" + neighbor_interface: "GigabitEthernet0/20" + neighbor_name: "" + platform: "WS-C3560X-24" + - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "DC3TESTW01-55.test.co.nz(SSI3707070J)" interface_ip: "10.115.17.253" - capabilities: "Router Switch IGMP Filtering Supports-STP-Dispute" - - dest_host: "DC3TESTW02.test.co.nz(SSI11111D2M)" - local_port: "Ethernet1/21" - mgmt_ip: "10.115.143.21" - platform: "N5K-C5020P-BF" - remote_port: "Ethernet1/21" - sysname: "DC3TESTW02" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 5.2(1)N1(4)" + local_interface: "Ethernet1/1" + mgmt_address: "10.115.143.120" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 5.2(1)N1(4)" + neighbor_interface: "Ethernet1/31" + neighbor_name: "DC3TESTW01-55" + platform: "N5K-C5548UP" + - capabilities: "Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "DC3TESTW02.test.co.nz(SSI11111D2M)" interface_ip: "10.115.143.21" - capabilities: "Switch IGMP Filtering Supports-STP-Dispute" - - dest_host: "DC3TESTW02.test.co.nz(SSI44444D2M)" - local_port: "Ethernet1/22" - mgmt_ip: "10.115.143.21" + local_interface: "Ethernet1/21" + mgmt_address: "10.115.143.21" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 5.2(1)N1(4)" + neighbor_interface: "Ethernet1/21" + neighbor_name: "DC3TESTW02" platform: "N5K-C5020P-BF" - remote_port: "Ethernet1/22" - sysname: "DC3TESTW02" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 5.2(1)N1(4)" + - capabilities: "Switch IGMP Filtering Supports-STP-Dispute" + chassis_id: "DC3TESTW02.test.co.nz(SSI44444D2M)" interface_ip: "10.115.143.21" - capabilities: "Switch IGMP Filtering Supports-STP-Dispute" + local_interface: "Ethernet1/22" + mgmt_address: "10.115.143.21" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 5.2(1)N1(4)" + neighbor_interface: "Ethernet1/22" + neighbor_name: "DC3TESTW02" + platform: "N5K-C5020P-BF" diff --git a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail2.yml b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail2.yml index fe8087a36f..c1f0a73fa8 100644 --- a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail2.yml +++ b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail2.yml @@ -1,11 +1,11 @@ --- parsed_sample: - - dest_host: "MKT1" - local_port: "Ethernet1/1" - mgmt_ip: "" - platform: "MikroTik" - remote_port: "ether1" - sysname: "" - version: "6.47.10 (long-term)" + - capabilities: "Router" + chassis_id: "MKT1" interface_ip: "" - capabilities: "Router" + local_interface: "Ethernet1/1" + mgmt_address: "" + neighbor_description: "6.47.10 (long-term)" + neighbor_interface: "ether1" + neighbor_name: "" + platform: "MikroTik" diff --git a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail_move_record.yml b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail_move_record.yml index 1cb4b50399..f00ad1b3ea 100644 --- a/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail_move_record.yml +++ b/tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail_move_record.yml @@ -1,22 +1,22 @@ --- parsed_sample: - - dest_host: "redacted.test.com" - sysname: "" - mgmt_ip: "10.0.0.1" - platform: "C9300-48UXM" - remote_port: "TenGigabitEthernet1/1/7" - local_port: "Ethernet7/14" - version: "Cisco IOS Software [Everest], Catalyst L3 Switch Software (CAT9K_IOSXE),\ - \ Version 16.6.6, RELEASE SOFTWARE (fc1)" + - capabilities: "Switch IGMP Filtering" + chassis_id: "redacted.test.com" interface_ip: "10.0.0.1" - capabilities: "Switch IGMP Filtering" - - dest_host: "redacted.test.com" - sysname: "" - mgmt_ip: "10.0.0.4" + local_interface: "Ethernet7/14" + mgmt_address: "10.0.0.1" + neighbor_description: "Cisco IOS Software [Everest], Catalyst L3 Switch Software\ + \ (CAT9K_IOSXE), Version 16.6.6, RELEASE SOFTWARE (fc1)" + neighbor_interface: "TenGigabitEthernet1/1/7" + neighbor_name: "" platform: "C9300-48UXM" - remote_port: "TenGigabitEthernet1/1/8" - local_port: "Ethernet7/15" - version: "Cisco IOS Software [Everest], Catalyst L3 Switch Software (CAT9K_IOSXE),\ - \ Version 16.6.6, RELEASE SOFTWARE (fc1)" + - capabilities: "Switch IGMP Filtering" + chassis_id: "redacted.test.com" interface_ip: "10.0.0.3" - capabilities: "Switch IGMP Filtering" + local_interface: "Ethernet7/15" + mgmt_address: "10.0.0.4" + neighbor_description: "Cisco IOS Software [Everest], Catalyst L3 Switch Software\ + \ (CAT9K_IOSXE), Version 16.6.6, RELEASE SOFTWARE (fc1)" + neighbor_interface: "TenGigabitEthernet1/1/8" + neighbor_name: "" + platform: "C9300-48UXM" diff --git a/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors.yml b/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors.yml index 9576b8714c..de653447d6 100644 --- a/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors.yml +++ b/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors.yml @@ -2,13 +2,13 @@ parsed_sample: - capabilities: "BR" local_interface: "Eth1/1" - neighbor: "nx-osv9000-3-long-name.com" neighbor_interface: "Ethernet1/1" + neighbor_name: "nx-osv9000-3-long-name.com" - capabilities: "BR" local_interface: "Eth1/2" - neighbor: "nx-osv9000-4-extremely-long-name" neighbor_interface: "Ethernet1/1" + neighbor_name: "nx-osv9000-4-extremely-long-name" - capabilities: "BR" local_interface: "Eth1/3" - neighbor: "nx-osv9000-2" neighbor_interface: "Ethernet1/3" + neighbor_name: "nx-osv9000-2" diff --git a/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.yml b/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.yml index e98c3a72fc..e5fe8e6c09 100644 --- a/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.yml +++ b/tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.yml @@ -2,61 +2,61 @@ parsed_sample: - capabilities: "B" local_interface: "mgmt0" - neighbor: "dcx3.org.local" neighbor_interface: "Gi1/0/37" + neighbor_name: "dcx3.org.local" - capabilities: "BR" local_interface: "Eth1/1" - neighbor: "r2-services" neighbor_interface: "Eth1/1" + neighbor_name: "r2-services" - capabilities: "B" local_interface: "Eth1/3" - neighbor: "dx1.org.local" neighbor_interface: "Te1/1/1" + neighbor_name: "dx1.org.local" - capabilities: "" local_interface: "Eth1/5" - neighbor: "fw1-clinical-partner" neighbor_interface: "ethernet1/9" + neighbor_name: "" - capabilities: "" local_interface: "Eth1/6" - neighbor: "fw1-clinical-partner" neighbor_interface: "ethernet1/10" + neighbor_name: "" - capabilities: "" local_interface: "Eth1/7" - neighbor: "fw2-clinical-partner" neighbor_interface: "ethernet1/9" + neighbor_name: "" - capabilities: "" local_interface: "Eth1/8" - neighbor: "fw2-clinical-partner" neighbor_interface: "ethernet1/10" + neighbor_name: "" - capabilities: "BR" local_interface: "Eth3/1" - neighbor: "cr-ebc.org.local" neighbor_interface: "Fo1/0/8" + neighbor_name: "cr-ebc.org.local" - capabilities: "BR" local_interface: "Eth3/13" - neighbor: "r2-services" neighbor_interface: "Eth3/13" + neighbor_name: "r2-services" - capabilities: "" local_interface: "Eth3/23" - neighbor: "fw1-services" neighbor_interface: "ethernet1/21" + neighbor_name: "fw1-services" - capabilities: "" local_interface: "Eth3/24" - neighbor: "fw2-services" neighbor_interface: "ethernet1/23" + neighbor_name: "fw2-services" - capabilities: "BR" local_interface: "Eth4/1" - neighbor: "cr-park.org.local" neighbor_interface: "Fo1/0/8" + neighbor_name: "" - capabilities: "BR" local_interface: "Eth4/13" - neighbor: "r2-services" neighbor_interface: "Eth4/13" + neighbor_name: "r2-services" - capabilities: "" local_interface: "Eth4/23" - neighbor: "fw1-services" neighbor_interface: "ethernet1/22" + neighbor_name: "fw1-services" - capabilities: "" local_interface: "Eth4/24" - neighbor: "fw2-services" neighbor_interface: "ethernet1/24" + neighbor_name: "fw2-services" diff --git a/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail.yml b/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail.yml index 9e8483ecd0..e9a78fc581 100644 --- a/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail.yml +++ b/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail.yml @@ -4,32 +4,32 @@ parsed_sample: chassis_id: "0014.1c57.a48b" local_interface: "mgmt0" mgmt_address: "10.30.140.1" - neighbor: "Switch.cisco.com" + neighbor_description: "Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M),\ + \ Version 12.2(44)SE2, RELEASE SOFTWARE (fc2)" neighbor_interface: "Fa1/0/9" - system_description: "Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version\ - \ 12.2(44)SE2, RELEASE SOFTWARE (fc2)" + neighbor_name: "Switch.cisco.com" vlan_id: "100" - capabilities: "B, R" chassis_id: "5087.89a1.d8d6" local_interface: "Eth1/1" mgmt_address: "10.30.140.21" - neighbor: "n9k2.company.com" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software 7.0(3)I4(1)" neighbor_interface: "Ethernet1/1" - system_description: "Cisco Nexus Operating System (NX-OS) Software 7.0(3)I4(1)" + neighbor_name: "n9k2.company.com" vlan_id: "1" - capabilities: "B, R" chassis_id: "5087.89a1.d8d7" local_interface: "Eth1/2" mgmt_address: "10.30.140.21" - neighbor: "n9k2.company.com" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software 7.0(3)I4(1)" neighbor_interface: "Ethernet1/2" - system_description: "Cisco Nexus Operating System (NX-OS) Software 7.0(3)I4(1)" + neighbor_name: "n9k2.company.com" vlan_id: "1" - capabilities: "B, R" chassis_id: "547f.eeaf.7818" local_interface: "Eth2/2" mgmt_address: "10.30.140.30" - neighbor: "N3K.cisconxapi.com" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software 6.0(2)U4(1)" neighbor_interface: "Ethernet1/49" - system_description: "Cisco Nexus Operating System (NX-OS) Software 6.0(2)U4(1)" + neighbor_name: "N3K.cisconxapi.com" vlan_id: "1" diff --git a/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail2.yml b/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail2.yml index 60a8929519..7a2147b064 100644 --- a/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail2.yml +++ b/tests/cisco_nxos/show_lldp_neighbors_detail/cisco_nxos_show_lldp_neighbors_detail2.yml @@ -4,15 +4,15 @@ parsed_sample: chassis_id: "3473.2d00.0001" local_interface: "Eth1/52" mgmt_address: "192.168.1.2" - neighbor: "SW-NEXUS" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software 9.3(8)" neighbor_interface: "Ethernet1/52" - system_description: "Cisco Nexus Operating System (NX-OS) Software 9.3(8)" + neighbor_name: "SW-NEXUS" vlan_id: "" - capabilities: "B" chassis_id: "24a9.3700.0001" local_interface: "Eth101/1/10" mgmt_address: "" - neighbor: "pure-storage" + neighbor_description: "FlashArray FA-X20R3 pure-storage" neighbor_interface: "1a51.4800.0001" - system_description: "FlashArray FA-X20R3 pure-storage" + neighbor_name: "pure-storage" vlan_id: "0" diff --git a/tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors.yml b/tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors.yml index c7f4bc600f..6262d742e3 100644 --- a/tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors.yml +++ b/tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors.yml @@ -1,10 +1,10 @@ --- parsed_sample: - - neighbor: "prsw03freeporil" + - chassis_id: "00:08:32:0f:1e:bd" local_interface: "gi27" neighbor_interface: "gi27" - device_id: "00:08:32:0f:1e:bd" - - neighbor: "prsw01freeportin" + neighbor_name: "prsw03freeporil" + - chassis_id: "00:08:32:0f:04:cc" local_interface: "gi28" neighbor_interface: "gi28" - device_id: "00:08:32:0f:04:cc" + neighbor_name: "prsw01freeportin" diff --git a/tests/cisco_wlc_ssh/show_cdp_neighbors_detail/cisco_wlc_ssh_show_cdp_neighbors_detail.yml b/tests/cisco_wlc_ssh/show_cdp_neighbors_detail/cisco_wlc_ssh_show_cdp_neighbors_detail.yml index 6b7913a4f7..c8435df526 100644 --- a/tests/cisco_wlc_ssh/show_cdp_neighbors_detail/cisco_wlc_ssh_show_cdp_neighbors_detail.yml +++ b/tests/cisco_wlc_ssh/show_cdp_neighbors_detail/cisco_wlc_ssh_show_cdp_neighbors_detail.yml @@ -1,29 +1,30 @@ --- parsed_sample: - - platform: "N77-C7706" - management_ip: "1.2.3.4" - software_version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(10)" - destination_host: "AAA.pizza.com(FXS1828Q2JH)" - remote_port: "Ethernet1/15" - local_port: "GigabitEthernet0/0/2" - capabilities: "Router Switch IGMP" - - platform: "cisco WS-C3750G-12S" - management_ip: "172.5.6.7" - software_version: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ + - capabilities: "Router Switch IGMP" + chassis_id: "AAA.pizza.com(FXS1828Q2JH)" + local_interface: "GigabitEthernet0/0/2" + mgmt_address: "1.2.3.4" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(10)" + neighbor_interface: "Ethernet1/15" + platform: "N77-C7706" + - capabilities: "Router Switch IGMP" + chassis_id: "BBB.beer.com" + local_interface: "GigabitEthernet0/0/7" + mgmt_address: "172.5.6.7" + neighbor_description: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ \ Version 12.2(55)SE11, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport\ \ Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Wed 17-Aug-16 13:28\ \ by prod_rel_team" - destination_host: "BBB.beer.com" - remote_port: "GigabitEthernet1/0/11" - local_port: "GigabitEthernet0/0/7" - capabilities: "Router Switch IGMP" - - platform: "cisco WS-C3750G-12S" - management_ip: "172.9.10.11" - software_version: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ + neighbor_interface: "GigabitEthernet1/0/11" + platform: "cisco WS-C3750G-12S" + - capabilities: "Router Switch IGMP" + chassis_id: "CCC.cake.com" + local_interface: "GigabitEthernet0/0/8" + mgmt_address: "172.9.10.11" + neighbor_description: "Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),\ \ Version 12.2(55)SE11, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport\ \ Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Wed 17-Aug-16 13:28\ \ by prod_rel_team" - destination_host: "CCC.cake.com" - remote_port: "GigabitEthernet1/0/1" - local_port: "GigabitEthernet0/0/8" - capabilities: "Router Switch IGMP" + neighbor_interface: "GigabitEthernet1/0/1" + platform: "cisco WS-C3750G-12S" diff --git a/tests/cisco_xr/show_cdp_neighbors_detail/cisco_xr_show_cdp_neighbors_detail.yml b/tests/cisco_xr/show_cdp_neighbors_detail/cisco_xr_show_cdp_neighbors_detail.yml index b8c155cd9a..b06f904e7f 100644 --- a/tests/cisco_xr/show_cdp_neighbors_detail/cisco_xr_show_cdp_neighbors_detail.yml +++ b/tests/cisco_xr/show_cdp_neighbors_detail/cisco_xr_show_cdp_neighbors_detail.yml @@ -1,198 +1,208 @@ --- parsed_sample: - - dest_host: "nyc-dc-dcm005.ntc.com" - local_port: "MgmtEth0/RSP0/CPU0/0" - mgmt_ip: "10.100.1.54" - platform: "cisco WS-C4948E" - remote_port: "GigabitEthernet1/9" - sysname: "" - version: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M),\ + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-dcm005.ntc.com" + local_interface: "MgmtEth0/RSP0/CPU0/0" + mgmt_address: "10.100.1.54" + neighbor_description: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M),\ \ Version 15.0(2)SG10, RELEASE SOFTWARE (fc1)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-dcm006.ntc.com" - local_port: "MgmtEth0/RSP1/CPU0/0" - mgmt_ip: "10.100.1.55" + neighbor_interface: "GigabitEthernet1/9" + neighbor_name: "" platform: "cisco WS-C4948E" - remote_port: "GigabitEthernet1/9" - sysname: "" - version: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M),\ + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-dcm006.ntc.com" + local_interface: "MgmtEth0/RSP1/CPU0/0" + mgmt_address: "10.100.1.55" + neighbor_description: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M),\ \ Version 15.0(2)SG10, RELEASE SOFTWARE (fc1)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-c90.ntc.com" - local_port: "FortyGigE0/0/1/0" - mgmt_ip: "10.100.100.141" + neighbor_interface: "GigabitEthernet1/9" + neighbor_name: "" + platform: "cisco WS-C4948E" + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-c90.ntc.com" + local_interface: "FortyGigE0/0/1/0" + mgmt_address: "10.100.100.141" + neighbor_description: "Cisco IOS XR Software, Version 5.1.2[Default]" + neighbor_interface: "FortyGigE0/0/0/2" + neighbor_name: "nyc-dc-c90.ntc.com" platform: "cisco CRS" - remote_port: "FortyGigE0/0/0/2" - sysname: "nyc-dc-c90.ntc.com" - version: "Cisco IOS XR Software, Version 5.1.2[Default]" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-d02.ntc.com(FXS182XXXXX)" - local_port: "FortyGigE0/0/1/1" - mgmt_ip: "10.100.100.162" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d02.ntc.com(FXS182XXXXX)" + local_interface: "FortyGigE0/0/1/1" + mgmt_address: "10.100.100.162" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet6/1" + neighbor_name: "nyc-dc-d02" platform: "N77-C7706" - remote_port: "Ethernet6/1" - sysname: "nyc-dc-d02" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-c97" - local_port: "FortyGigE0/0/0/0" - mgmt_ip: "10.100.100.19" + - capabilities: "Router" + chassis_id: "nyc-dc-c97" + local_interface: "FortyGigE0/0/0/0" + mgmt_address: "10.100.100.19" + neighbor_description: "Cisco IOS XR Software, Version 5.3.4[Default]" + neighbor_interface: "FortyGigE0/0/0/0" + neighbor_name: "nyc-dc-c97" platform: "cisco ASR9K Series" - remote_port: "FortyGigE0/0/0/0" - sysname: "nyc-dc-c97" - version: "Cisco IOS XR Software, Version 5.3.4[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-c91.ntc.com" - local_port: "FortyGigE0/0/0/1" - mgmt_ip: "10.100.100.125" + - capabilities: "Router" + chassis_id: "nyc-dc-c91.ntc.com" + local_interface: "FortyGigE0/0/0/1" + mgmt_address: "10.100.100.125" + neighbor_description: "Cisco IOS XR Software, Version 5.1.2[Default]" + neighbor_interface: "FortyGigE0/0/0/2" + neighbor_name: "nyc-dc-c91.ntc.com" platform: "cisco CRS" - remote_port: "FortyGigE0/0/0/2" - sysname: "nyc-dc-c91.ntc.com" - version: "Cisco IOS XR Software, Version 5.1.2[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-c97" - local_port: "FortyGigE0/1/0/0" - mgmt_ip: "10.100.100.113" + - capabilities: "Router" + chassis_id: "nyc-dc-c97" + local_interface: "FortyGigE0/1/0/0" + mgmt_address: "10.100.100.113" + neighbor_description: "Cisco IOS XR Software, Version 5.3.4[Default]" + neighbor_interface: "FortyGigE0/1/0/0" + neighbor_name: "nyc-dc-c97" platform: "cisco ASR9K Series" - remote_port: "FortyGigE0/1/0/0" - sysname: "nyc-dc-c97" - version: "Cisco IOS XR Software, Version 5.3.4[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-d03.ntc.com(FXS182XXXXX)" - local_port: "FortyGigE0/1/0/1" - mgmt_ip: "10.100.100.190" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d03.ntc.com(FXS182XXXXX)" + local_interface: "FortyGigE0/1/0/1" + mgmt_address: "10.100.100.190" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet6/1" + neighbor_name: "nyc-dc-d03" platform: "N77-C7706" - remote_port: "Ethernet6/1" - sysname: "nyc-dc-d03" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-c90.ntc.com" - local_port: "FortyGigE0/1/1/0" - mgmt_ip: "10.100.100.145" + - capabilities: "Router" + chassis_id: "nyc-dc-c90.ntc.com" + local_interface: "FortyGigE0/1/1/0" + mgmt_address: "10.100.100.145" + neighbor_description: "Cisco IOS XR Software, Version 5.1.2[Default]" + neighbor_interface: "FortyGigE0/4/0/2" + neighbor_name: "nyc-dc-c90.ntc.com" platform: "cisco CRS" - remote_port: "FortyGigE0/4/0/2" - sysname: "nyc-dc-c90.ntc.com" - version: "Cisco IOS XR Software, Version 5.1.2[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-z50a.ntc.com(JAF18XXXXX)" - local_port: "FortyGigE0/1/1/1" - mgmt_ip: "10.100.100.116" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-z50a.ntc.com(JAF18XXXXX)" + local_interface: "FortyGigE0/1/1/1" + mgmt_address: "10.100.100.116" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet4/3" + neighbor_name: "nyc-dc-z50a" platform: "N77-C7710" - remote_port: "Ethernet4/3" - sysname: "nyc-dc-z50a" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-d04.ntc.com(FXS18XXXXXX)" - local_port: "FortyGigE0/2/1/0" - mgmt_ip: "10.100.100.194" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d04.ntc.com(FXS18XXXXXX)" + local_interface: "FortyGigE0/2/1/0" + mgmt_address: "10.100.100.194" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet6/1" + neighbor_name: "nyc-dc-d04" platform: "N77-C7706" - remote_port: "Ethernet6/1" - sysname: "nyc-dc-d04" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-c91.ntc.com" - local_port: "FortyGigE0/2/1/1" - mgmt_ip: "10.100.100.129" + - capabilities: "Router" + chassis_id: "nyc-dc-c91.ntc.com" + local_interface: "FortyGigE0/2/1/1" + mgmt_address: "10.100.100.129" + neighbor_description: "Cisco IOS XR Software, Version 5.1.2[Default]" + neighbor_interface: "FortyGigE0/4/0/2" + neighbor_name: "nyc-dc-c91.ntc.com" platform: "cisco CRS" - remote_port: "FortyGigE0/4/0/2" - sysname: "nyc-dc-c91.ntc.com" - version: "Cisco IOS XR Software, Version 5.1.2[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-d01.ntc.com(FXS182XXXXX)" - local_port: "FortyGigE0/2/0/0" - mgmt_ip: "10.100.100.158" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d01.ntc.com(FXS182XXXXX)" + local_interface: "FortyGigE0/2/0/0" + mgmt_address: "10.100.100.158" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet6/1" + neighbor_name: "nyc-dc-d01" platform: "N77-C7706" - remote_port: "Ethernet6/1" - sysname: "nyc-dc-d01" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-z50b.ntc.com(JAF181XXXXX)" - local_port: "FortyGigE0/2/0/1" - mgmt_ip: "10.100.100.111" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-z50b.ntc.com(JAF181XXXXX)" + local_interface: "FortyGigE0/2/0/1" + mgmt_address: "10.100.100.111" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet4/3" + neighbor_name: "nyc-dc-z50b" platform: "N77-C7710" - remote_port: "Ethernet4/3" - sysname: "nyc-dc-z50b" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-dcc001.ntc.com" - local_port: "TenGigE0/3/0/0" - mgmt_ip: "10.100.100.174" - platform: "cisco WS-C4510R+E" - remote_port: "TenGigabitEthernet6/1" - sysname: "" - version: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M),\ + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-dcc001.ntc.com" + local_interface: "TenGigE0/3/0/0" + mgmt_address: "10.100.100.174" + neighbor_description: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M),\ \ Version 15.2(2)E3, RELEASE SOFTWARE (fc3)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-d57" - local_port: "TenGigE0/3/0/1" - mgmt_ip: "10.100.100.115" + neighbor_interface: "TenGigabitEthernet6/1" + neighbor_name: "" + platform: "cisco WS-C4510R+E" + - capabilities: "Router" + chassis_id: "nyc-dc-d57" + local_interface: "TenGigE0/3/0/1" + mgmt_address: "10.100.100.115" + neighbor_description: "Cisco IOS XR Software, Version 4.3.2[Default]" + neighbor_interface: "TenGigE0/2/0/0" + neighbor_name: "nyc-dc-d57" platform: "cisco ASR9K Series" - remote_port: "TenGigE0/2/0/0" - sysname: "nyc-dc-d57" - version: "Cisco IOS XR Software, Version 4.3.2[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-d40b.ntc.com(JAF182XXXXX)" - local_port: "TenGigE0/3/0/2" - mgmt_ip: "10.100.100.114" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d40b.ntc.com(JAF182XXXXX)" + local_interface: "TenGigE0/3/0/2" + mgmt_address: "10.100.100.114" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet4/1" + neighbor_name: "nyc-dc-d40b" platform: "N77-C7710" - remote_port: "Ethernet4/1" - sysname: "nyc-dc-d40b" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-d80.ntc.com(FOC184XXXXX)" - local_port: "TenGigE0/3/0/3" - mgmt_ip: "10.100.100.117" + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-d80.ntc.com(FOC184XXXXX)" + local_interface: "TenGigE0/3/0/3" + mgmt_address: "10.100.100.117" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(7)N1(1)" + neighbor_interface: "Ethernet2/1" + neighbor_name: "nyc-dc-d80" platform: "N5K-C56128P" - remote_port: "Ethernet2/1" - sysname: "nyc-dc-d80" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(7)N1(1)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-dcc002.ntc.com" - local_port: "TenGigE0/4/0/0" - mgmt_ip: "10.100.100.178" - platform: "cisco WS-C4510R+E" - remote_port: "TenGigabitEthernet6/1" - sysname: "" - version: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M),\ + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-dcc002.ntc.com" + local_interface: "TenGigE0/4/0/0" + mgmt_address: "10.100.100.178" + neighbor_description: "Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M),\ \ Version 15.2(2)E3, RELEASE SOFTWARE (fc3)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-d57" - local_port: "TenGigE0/4/0/1" - mgmt_ip: "10.100.100.115" + neighbor_interface: "TenGigabitEthernet6/1" + neighbor_name: "" + platform: "cisco WS-C4510R+E" + - capabilities: "Router" + chassis_id: "nyc-dc-d57" + local_interface: "TenGigE0/4/0/1" + mgmt_address: "10.100.100.115" + neighbor_description: "Cisco IOS XR Software, Version 4.3.2[Default]" + neighbor_interface: "TenGigE1/2/0/0" + neighbor_name: "nyc-dc-d57" platform: "cisco ASR9K Series" - remote_port: "TenGigE1/2/0/0" - sysname: "nyc-dc-d57" - version: "Cisco IOS XR Software, Version 4.3.2[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-d40a.ntc.com(JAF182XXXXX)" - local_port: "TenGigE0/4/0/2" - mgmt_ip: "10.100.100.113" + - capabilities: "Router Switch" + chassis_id: "nyc-dc-d40a.ntc.com(JAF182XXXXX)" + local_interface: "TenGigE0/4/0/2" + mgmt_address: "10.100.100.113" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 6.2(12)" + neighbor_interface: "Ethernet4/1" + neighbor_name: "nyc-dc-d40a" platform: "N77-C7710" - remote_port: "Ethernet4/1" - sysname: "nyc-dc-d40a" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 6.2(12)" - capabilities: "Router Switch" - - dest_host: "nyc-dc-d81.ntc.com(FOC182XXXXX)" - local_port: "TenGigE0/4/0/3" - mgmt_ip: "10.100.100.118" + - capabilities: "Router Switch IGMP" + chassis_id: "nyc-dc-d81.ntc.com(FOC182XXXXX)" + local_interface: "TenGigE0/4/0/3" + mgmt_address: "10.100.100.118" + neighbor_description: "Cisco Nexus Operating System (NX-OS) Software, Version\ + \ 7.0(7)N1(1)" + neighbor_interface: "Ethernet1/1" + neighbor_name: "nyc-dc-d81" platform: "N5K-C56128P" - remote_port: "Ethernet1/1" - sysname: "nyc-dc-d81" - version: "Cisco Nexus Operating System (NX-OS) Software, Version 7.0(7)N1(1)" - capabilities: "Router Switch IGMP" - - dest_host: "nyc-dc-c97" - local_port: "FortyGigE0/6/0/0" - mgmt_ip: "192.168.169.21" + - capabilities: "Router" + chassis_id: "nyc-dc-c97" + local_interface: "FortyGigE0/6/0/0" + mgmt_address: "192.168.169.21" + neighbor_description: "Cisco IOS XR Software, Version 5.3.4[Default]" + neighbor_interface: "FortyGigE0/6/0/0" + neighbor_name: "nyc-dc-c97" platform: "cisco ASR9K Series" - remote_port: "FortyGigE0/6/0/0" - sysname: "nyc-dc-c97" - version: "Cisco IOS XR Software, Version 5.3.4[Default]" - capabilities: "Router" - - dest_host: "nyc-dc-c97" - local_port: "FortyGigE0/6/0/0" - mgmt_ip: "192.168.169.21" + - capabilities: "Router" + chassis_id: "nyc-dc-c97" + local_interface: "FortyGigE0/6/0/0" + mgmt_address: "192.168.169.21" + neighbor_description: "Cisco IOS XR Software, Version 5.3.4[Default]" + neighbor_interface: "FortyGigE0/7/0/0" + neighbor_name: "nyc-dc-c97" platform: "cisco ASR9K Series" - remote_port: "FortyGigE0/7/0/0" - sysname: "nyc-dc-c97" - version: "Cisco IOS XR Software, Version 5.3.4[Default]" - capabilities: "Router" diff --git a/tests/cisco_xr/show_lldp_neighbors/cisco_xr_show_lldp_neighbors.yml b/tests/cisco_xr/show_lldp_neighbors/cisco_xr_show_lldp_neighbors.yml index 472fd8e6b2..c67adc138d 100644 --- a/tests/cisco_xr/show_lldp_neighbors/cisco_xr_show_lldp_neighbors.yml +++ b/tests/cisco_xr/show_lldp_neighbors/cisco_xr_show_lldp_neighbors.yml @@ -1,8 +1,8 @@ --- parsed_sample: - local_interface: "Gi0/0/0/0" - neighbor: "ASR-OCC-P1" neighbor_interface: "Gi0/0/0/2" + neighbor_name: "ASR-OCC-P1" - local_interface: "Gi0/0/0/3" - neighbor: "ASR-LON-P1" neighbor_interface: "Gi0/0/0/2" + neighbor_name: "ASR-LON-P1" diff --git a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list.yml b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list.yml index 396f141f6a..7c1059d3c8 100644 --- a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list.yml +++ b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list.yml @@ -1,18 +1,18 @@ --- parsed_sample: - - local_interface: "XGE1/0/1" - chassis_id: "bcea-fa00-0001" + - chassis_id: "bcea-fa00-0001" + local_interface: "XGE1/0/1" neighbor_interface: "Ten-GigabitEthernet1/0/30" - neighbor: "SW-TEST-001" - - local_interface: "XGE1/0/17" - chassis_id: "5c8a-3800-0002" + neighbor_name: "SW-TEST-001" + - chassis_id: "5c8a-3800-0002" + local_interface: "XGE1/0/17" neighbor_interface: "Ten-GigabitEthernet1/0/29" - neighbor: "SW-TEST-002" - - local_interface: "XGE1/0/19" - chassis_id: "bcea-fa00-0003" + neighbor_name: "SW-TEST-002" + - chassis_id: "bcea-fa00-0003" + local_interface: "XGE1/0/19" neighbor_interface: "Ten-GigabitEthernet1/0/54" - neighbor: "SW-TEST-003" - - local_interface: "XGE1/0/21" - chassis_id: "bcea-fa00-0004" + neighbor_name: "SW-TEST-003" + - chassis_id: "bcea-fa00-0004" + local_interface: "XGE1/0/21" neighbor_interface: "Ten-GigabitEthernet1/0/32" - neighbor: "SW-TEST-004" + neighbor_name: "SW-TEST-004" diff --git a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list1.yml b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list1.yml index 661da1cdf0..eba4848481 100644 --- a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list1.yml +++ b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list1.yml @@ -1,10 +1,10 @@ --- parsed_sample: - - local_interface: "XGE1/0/0/1" - chassis_id: "bcea-fa00-0033" + - chassis_id: "bcea-fa00-0033" + local_interface: "XGE1/0/0/1" neighbor_interface: "Ten-GigabitEthernet1/0/47" - neighbor: "SWITCH01" - - local_interface: "XGE1/0/0/2" - chassis_id: "bcea-fa00-0033" + neighbor_name: "SWITCH01" + - chassis_id: "bcea-fa00-0033" + local_interface: "XGE1/0/0/2" neighbor_interface: "Ten-GigabitEthernet2/0/47" - neighbor: "SWITCH01" + neighbor_name: "SWITCH01" diff --git a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list2.yml b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list2.yml index 7b619a80d7..6e553884e1 100644 --- a/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list2.yml +++ b/tests/hp_comware/display_lldp_neighbor-information_list/hp_comware_display_lldp_neighbor-information_list2.yml @@ -1,14 +1,14 @@ --- parsed_sample: - - local_interface: "GE1/0/24" - chassis_id: "10.1.2.3" + - chassis_id: "10.1.2.3" + local_interface: "GE1/0/24" neighbor_interface: "AABBCCDDEEFF:P1" - neighbor: "SEP0000000000A0.exam" - - local_interface: "XGE1/0/29" - chassis_id: "bcea-fa00-0033" + neighbor_name: "SEP0000000000A0.exam" + - chassis_id: "bcea-fa00-0033" + local_interface: "XGE1/0/29" neighbor_interface: "Ten-GigabitEthernet1/0/17" - neighbor: "SWITCH01" - - local_interface: "GE2/0/45" - chassis_id: "SEP0000000000A0" + neighbor_name: "SWITCH01" + - chassis_id: "SEP0000000000A0" + local_interface: "GE2/0/45" neighbor_interface: "Port 1" - neighbor: "-" + neighbor_name: "-" diff --git a/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.yml b/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.yml index 3d6ca17b6d..a516a615b2 100644 --- a/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.yml +++ b/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.yml @@ -2,29 +2,29 @@ parsed_sample: - chassis_id: "70f9-6d6b-1234" local_interface: "Ten-GigabitEthernet1/0/0/1" - management_ip: "" - neighbor: "SW1" - neighbor_interface: "TO_CORE_1" - neighbor_port_id: "GigabitEthernet0/0/1" + mgmt_address: "" + neighbor_interface: "GigabitEthernet0/0/1" + neighbor_interface_description: "TO_CORE_1" + neighbor_name: "SW1" vlan_id: "" - chassis_id: "70f9-6d17-1235" local_interface: "Ten-GigabitEthernet1/0/0/2" - management_ip: "10.6.5.4" - neighbor: "SW2" - neighbor_interface: "TO_CORE_2" - neighbor_port_id: "Ten-GigabitEthernet1/0/0/5" + mgmt_address: "10.6.5.4" + neighbor_interface: "Ten-GigabitEthernet1/0/0/5" + neighbor_interface_description: "TO_CORE_2" + neighbor_name: "SW2" vlan_id: "10" - chassis_id: "70f9-6d17-1236" local_interface: "Ten-GigabitEthernet1/0/0/3" - management_ip: "10.6.5.3" - neighbor: "SW3" - neighbor_interface: "TO_SPINE" - neighbor_port_id: "Ten-GigabitEthernet2/0/0/5" + mgmt_address: "10.6.5.3" + neighbor_interface: "Ten-GigabitEthernet2/0/0/5" + neighbor_interface_description: "TO_SPINE" + neighbor_name: "SW3" vlan_id: "10" - chassis_id: "4c1c-503a-1234" local_interface: "GigabitEthernet0/0" - management_ip: "10.1.1.2" - neighbor: "Test-Router" - neighbor_interface: "GigabitEthernet0/0 Interface" - neighbor_port_id: "GigabitEthernet0/0" + mgmt_address: "10.1.1.2" + neighbor_interface: "GigabitEthernet0/0" + neighbor_interface_description: "GigabitEthernet0/0 Interface" + neighbor_name: "Test-Router" vlan_id: "" diff --git a/tests/hp_procurve/show_cdp_neighbors_detail/hp_procurve_show_cdp_neighbors_detail.yml b/tests/hp_procurve/show_cdp_neighbors_detail/hp_procurve_show_cdp_neighbors_detail.yml index 2f3e95e652..07bc62b9d9 100644 --- a/tests/hp_procurve/show_cdp_neighbors_detail/hp_procurve_show_cdp_neighbors_detail.yml +++ b/tests/hp_procurve/show_cdp_neighbors_detail/hp_procurve_show_cdp_neighbors_detail.yml @@ -1,30 +1,30 @@ --- parsed_sample: - - local_port: "1" - neighbor_id: "AP01-Site" - neighbor_address: "10.11.11.16" - neighbor_platform: "5.9.1.5-001RAP-6521-60020-WR" - neighbor_capability: "Router" - neighbor_port: "ge1" - neighbor_version: "5.9.1.5-001RAP-6521-60020-WR" - - local_port: "1" - neighbor_id: "5c 0e 8b 11 11 11" - neighbor_address: "10.11.11.16" - neighbor_platform: "AP-6521-60020-WR, Version 5.9.1.5-001R" - neighbor_capability: "Router" - neighbor_port: "ge1" - neighbor_version: "AP-6521-60020-WR, Version 5.9.1.5-001R" - - local_port: "2" - neighbor_id: "5c 0e 8b 12 22 22" - neighbor_address: "Unsupported format" - neighbor_platform: "AP-6521-60020-WR, Version 5.9.1.5-001R" - neighbor_capability: "Router" - neighbor_port: "ge1" - neighbor_version: "AP-6521-60020-WR, Version 5.9.1.5-001R" - - local_port: "2" - neighbor_id: "AP02-Site" - neighbor_address: "10.11.11.17" - neighbor_platform: "5.9.1.5-001RAP-6521-60020-WR" - neighbor_capability: "Router" - neighbor_port: "ge1" - neighbor_version: "5.9.1.5-001RAP-6521-60020-WR" + - capabilities: "Router" + chassis_id: "AP01-Site" + local_interface: "1" + mgmt_address: "10.11.11.16" + neighbor_description: "5.9.1.5-001RAP-6521-60020-WR" + neighbor_interface: "ge1" + platform: "5.9.1.5-001RAP-6521-60020-WR" + - capabilities: "Router" + chassis_id: "5c 0e 8b 11 11 11" + local_interface: "1" + mgmt_address: "10.11.11.16" + neighbor_description: "AP-6521-60020-WR, Version 5.9.1.5-001R" + neighbor_interface: "ge1" + platform: "AP-6521-60020-WR, Version 5.9.1.5-001R" + - capabilities: "Router" + chassis_id: "5c 0e 8b 12 22 22" + local_interface: "2" + mgmt_address: "Unsupported format" + neighbor_description: "AP-6521-60020-WR, Version 5.9.1.5-001R" + neighbor_interface: "ge1" + platform: "AP-6521-60020-WR, Version 5.9.1.5-001R" + - capabilities: "Router" + chassis_id: "AP02-Site" + local_interface: "2" + mgmt_address: "10.11.11.17" + neighbor_description: "5.9.1.5-001RAP-6521-60020-WR" + neighbor_interface: "ge1" + platform: "5.9.1.5-001RAP-6521-60020-WR" diff --git a/tests/hp_procurve/show_lldp_info_remote-device/hp_procurve_show_lldp_info_remote-device.yml b/tests/hp_procurve/show_lldp_info_remote-device/hp_procurve_show_lldp_info_remote-device.yml index 91ee37824c..0e7085ffc1 100644 --- a/tests/hp_procurve/show_lldp_info_remote-device/hp_procurve_show_lldp_info_remote-device.yml +++ b/tests/hp_procurve/show_lldp_info_remote-device/hp_procurve_show_lldp_info_remote-device.yml @@ -1,42 +1,42 @@ --- parsed_sample: - - local_port: "1" - neighbor_chassis_id: "3821c7-c1cd00" - neighbor_descr: "1" - neighbor_portid: "1" - neighbor_sysname: "65432p-swi006-g..." - - local_port: "3" - neighbor_chassis_id: "3ce1a1-2218f0" - neighbor_descr: "" - neighbor_portid: "3c e1 a1 22 18 f0" - neighbor_sysname: "" - - local_port: "7" - neighbor_chassis_id: "bcf310-1f8b40" - neighbor_descr: "" - neighbor_portid: "mgt0" - neighbor_sysname: "AH-cust-AP21" - - local_port: "25" - neighbor_chassis_id: "d8cb8a-6d303c" - neighbor_descr: "" - neighbor_portid: "d8 cb 8a 6d 30 3c" - neighbor_sysname: "" - - local_port: "29" - neighbor_chassis_id: "484d7e-e66c42" - neighbor_descr: "" - neighbor_portid: "48 4d 7e e6 6c 42" - neighbor_sysname: "" - - local_port: "36" - neighbor_chassis_id: "603197-7aa548" - neighbor_descr: "UPLINK" - neighbor_portid: "1" - neighbor_sysname: "NAP203" - - local_port: "37" - neighbor_chassis_id: "b00cd1-359a98" - neighbor_descr: "" - neighbor_portid: "b0 0c d1 35 9a 98" - neighbor_sysname: "" - - local_port: "42" - neighbor_chassis_id: "d8cb8a-894644" - neighbor_descr: "" - neighbor_portid: "d8 cb 8a 89 46 44" - neighbor_sysname: "" + - chassis_id: "3821c7-c1cd00" + local_interface: "1" + neighbor_description: "1" + neighbor_interface: "1" + neighbor_name: "65432p-swi006-g..." + - chassis_id: "3ce1a1-2218f0" + local_interface: "3" + neighbor_description: "" + neighbor_interface: "3c e1 a1 22 18 f0" + neighbor_name: "" + - chassis_id: "bcf310-1f8b40" + local_interface: "7" + neighbor_description: "" + neighbor_interface: "mgt0" + neighbor_name: "AH-cust-AP21" + - chassis_id: "d8cb8a-6d303c" + local_interface: "25" + neighbor_description: "" + neighbor_interface: "d8 cb 8a 6d 30 3c" + neighbor_name: "" + - chassis_id: "484d7e-e66c42" + local_interface: "29" + neighbor_description: "" + neighbor_interface: "48 4d 7e e6 6c 42" + neighbor_name: "" + - chassis_id: "603197-7aa548" + local_interface: "36" + neighbor_description: "UPLINK" + neighbor_interface: "1" + neighbor_name: "NAP203" + - chassis_id: "b00cd1-359a98" + local_interface: "37" + neighbor_description: "" + neighbor_interface: "b0 0c d1 35 9a 98" + neighbor_name: "" + - chassis_id: "d8cb8a-894644" + local_interface: "42" + neighbor_description: "" + neighbor_interface: "d8 cb 8a 89 46 44" + neighbor_name: "" diff --git a/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml index 90ea5ad185..0575c6fb37 100644 --- a/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml +++ b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml @@ -1,98 +1,98 @@ --- parsed_sample: - - local_port: "1" + - capabilities: "bridge" + capabilities_supported: "bridge, router" + chassis_id: "3821c7-c1cd00" + local_interface: "1" + mgmt_address: "192.168.130.100" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "3821c7-c1cd00" - neighbor_portid: "1" - neighbor_sysname: "65432p-swi006-abcd-srvroom-4asd" - port_descr: "1" + neighbor_description: "Aruba JL357A 2540-48G-PoE+-4SFP+ Switch, revision YC.16.0..." + neighbor_interface: "1" + neighbor_interface_description: "1" + neighbor_name: "65432p-swi006-abcd-srvroom-4asd" port_type: "local" - pvid: "0" - remote_management_address: "192.168.130.100" - system_capabilities_enabled: "bridge" - system_capabilities_supported: "bridge, router" - system_descr: "Aruba JL357A 2540-48G-PoE+-4SFP+ Switch, revision YC.16.0..." - - local_port: "3" + vlan_id: "0" + - capabilities: "" + capabilities_supported: "" + chassis_id: "3ce1a1-2218f0" + local_interface: "3" + mgmt_address: "" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "3ce1a1-2218f0" - neighbor_portid: "3c e1 a1 22 18 f0" - neighbor_sysname: "" - port_descr: "" + neighbor_description: "" + neighbor_interface: "3c e1 a1 22 18 f0" + neighbor_interface_description: "" + neighbor_name: "" port_type: "mac-address" - pvid: "" - remote_management_address: "" - system_capabilities_enabled: "" - system_capabilities_supported: "" - system_descr: "" - - local_port: "7" + vlan_id: "" + - capabilities: "bridge, wlan-access-point" + capabilities_supported: "bridge, wlan-access-point" + chassis_id: "bcf310-1f8b40" + local_interface: "7" + mgmt_address: "192.168.100.55" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "bcf310-1f8b40" - neighbor_portid: "mgt0" - neighbor_sysname: "AH-cust-AP21" - port_descr: "" + neighbor_description: "" + neighbor_interface: "mgt0" + neighbor_interface_description: "" + neighbor_name: "AH-cust-AP21" port_type: "interface-name" - pvid: "" - remote_management_address: "192.168.100.55" - system_capabilities_enabled: "bridge, wlan-access-point" - system_capabilities_supported: "bridge, wlan-access-point" - system_descr: "" - - local_port: "25" + vlan_id: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "d8cb8a-6d303c" + local_interface: "25" + mgmt_address: "" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "d8cb8a-6d303c" - neighbor_portid: "d8 cb 8a 6d 30 3c" - neighbor_sysname: "" - port_descr: "" + neighbor_description: "" + neighbor_interface: "d8 cb 8a 6d 30 3c" + neighbor_interface_description: "" + neighbor_name: "" port_type: "mac-address" - pvid: "" - remote_management_address: "" - system_capabilities_enabled: "" - system_capabilities_supported: "" - system_descr: "" - - local_port: "29" + vlan_id: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "484d7e-e66c42" + local_interface: "29" + mgmt_address: "" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "484d7e-e66c42" - neighbor_portid: "48 4d 7e e6 6c 42" - neighbor_sysname: "" - port_descr: "" + neighbor_description: "" + neighbor_interface: "48 4d 7e e6 6c 42" + neighbor_interface_description: "" + neighbor_name: "" port_type: "mac-address" - pvid: "" - remote_management_address: "" - system_capabilities_enabled: "" - system_capabilities_supported: "" - system_descr: "" - - local_port: "36" + vlan_id: "" + - capabilities: "bridge, wlan-access-point, router" + capabilities_supported: "bridge, wlan-access-point, router" + chassis_id: "603197-7aa548" + local_interface: "36" + mgmt_address: "192.168.100.50" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "603197-7aa548" - neighbor_portid: "1" - neighbor_sysname: "NAP203" - port_descr: "UPLINK" + neighbor_description: "ZLD 6.00(###.8)B1 (cannon)" + neighbor_interface: "1" + neighbor_interface_description: "UPLINK" + neighbor_name: "NAP203" port_type: "local" - pvid: "" - remote_management_address: "192.168.100.50" - system_capabilities_enabled: "bridge, wlan-access-point, router" - system_capabilities_supported: "bridge, wlan-access-point, router" - system_descr: "ZLD 6.00(###.8)B1 (cannon)" - - local_port: "37" + vlan_id: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "b00cd1-359a98" + local_interface: "37" + mgmt_address: "" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "b00cd1-359a98" - neighbor_portid: "b0 0c d1 35 9a 98" - neighbor_sysname: "" - port_descr: "" + neighbor_description: "" + neighbor_interface: "b0 0c d1 35 9a 98" + neighbor_interface_description: "" + neighbor_name: "" port_type: "mac-address" - pvid: "" - remote_management_address: "" - system_capabilities_enabled: "" - system_capabilities_supported: "" - system_descr: "" - - local_port: "42" + vlan_id: "" + - capabilities: "" + capabilities_supported: "" + chassis_id: "d8cb8a-894644" + local_interface: "42" + mgmt_address: "" neighbor_chassis_type: "mac-address" - neighbor_chassis_id: "d8cb8a-894644" - neighbor_portid: "d8 cb 8a 89 46 44" - neighbor_sysname: "" - port_descr: "" + neighbor_description: "" + neighbor_interface: "d8 cb 8a 89 46 44" + neighbor_interface_description: "" + neighbor_name: "" port_type: "mac-address" - pvid: "" - remote_management_address: "" - system_capabilities_enabled: "" - system_capabilities_supported: "" - system_descr: "" + vlan_id: "" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml index 4636ed27da..93240bf1ba 100644 --- a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml @@ -3,34 +3,34 @@ parsed_sample: - capabilities: "bridge" chassis_id: "f55f-c2c5-e180" local_interface: "GigabitEthernet0/0/1" - management_ip: "192.168.0.240" - manufacturer_name: "Cisco Systems, Inc." - model_name: "WS-C2960S-48LPS-L" - neighbor: "tsa-2960-sw01" - neighbor_interface: "GigabitEthernet1/0/1" - neighbor_port_id: "Gi1/0/1" - serial: "NA" - system_description: + manufacturer: "Cisco Systems, Inc." + mgmt_address: "192.168.0.240" + neighbor_description: - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ \ RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" + neighbor_interface: "GigabitEthernet1/0/1" + neighbor_name: "tsa-2960-sw01" + neighbor_port_id: "Gi1/0/1" + platform: "WS-C2960S-48LPS-L" + serial: "NA" vlan_id: "1" - capabilities: "bridge" chassis_id: "f41f-c2c5-e180" local_interface: "GigabitEthernet0/0/8" - management_ip: "192.168.0.241" - manufacturer_name: "Cisco Systems, Inc." - model_name: "WS-C2960S-48LPS-L" - neighbor: "tsa-2960-sw01" - neighbor_interface: "GigabitEthernet1/0/2" - neighbor_port_id: "Gi1/0/2" - serial: "NA" - system_description: + manufacturer: "Cisco Systems, Inc." + mgmt_address: "192.168.0.241" + neighbor_description: - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ \ RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" + neighbor_interface: "GigabitEthernet1/0/2" + neighbor_name: "tsa-2960-sw01" + neighbor_port_id: "Gi1/0/2" + platform: "WS-C2960S-48LPS-L" + serial: "NA" vlan_id: "1" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml index 8667649a18..d66b5e0f64 100644 --- a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml @@ -3,16 +3,16 @@ parsed_sample: - capabilities: "bridge router" chassis_id: "b8d6-f6ff-7390" local_interface: "XGigabitEthernet0/0/1" - management_ip: "169.254.1.2" - manufacturer_name: "" - model_name: "" - neighbor: "ROUTER2" - neighbor_interface: "XGigabitEthernet0/0/2" - neighbor_port_id: "XGigabitEthernet0/0/2" - serial: "" - system_description: + manufacturer: "" + mgmt_address: "169.254.1.2" + neighbor_description: - "Huawei Switch S6730-S24X6Q" - "Huawei Versatile Routing Platform Software" - "VRP (R) software, Version 5.170 (S6730 V200R022C00SPC500)" - "Copyright (C) 2000-2022 HUAWEI TECH Co., Ltd." + neighbor_interface: "XGigabitEthernet0/0/2" + neighbor_name: "ROUTER2" + neighbor_port_id: "XGigabitEthernet0/0/2" + platform: "" + serial: "" vlan_id: "10" diff --git a/tests/ipinfusion_ocnos/show_lldp_table/ipinfusion_ocnos_show_lldp_table.yml b/tests/ipinfusion_ocnos/show_lldp_table/ipinfusion_ocnos_show_lldp_table.yml index a859914c90..2c5fb52104 100644 --- a/tests/ipinfusion_ocnos/show_lldp_table/ipinfusion_ocnos_show_lldp_table.yml +++ b/tests/ipinfusion_ocnos/show_lldp_table/ipinfusion_ocnos_show_lldp_table.yml @@ -1,37 +1,37 @@ --- parsed_sample: - - local_interface: "Ethernet0" - neighbor: "spine01" - neighbor_interface: "fortyGigE0/20" - capability: "BR" - neighbor_interface_descr: "Ethernet20" - - local_interface: "Ethernet4" - neighbor: "spine02" - neighbor_interface: "fortyGigE0/20" - capability: "BR" - neighbor_interface_descr: "Ethernet20" - - local_interface: "Ethernet8" - neighbor: "leaf01" - neighbor_interface: "fortyGigE0/20" - capability: "BR" - neighbor_interface_descr: "Ethernet20" - - local_interface: "Ethernet12" - neighbor: "leaf02" - neighbor_interface: "fortyGigE0/20" - capability: "BR" - neighbor_interface_descr: "Ethernet20" - - local_interface: "Ethernet16" - neighbor: "leaf03" - neighbor_interface: "fortyGigE0/24" - capability: "BR" - neighbor_interface_descr: "Ethernet24" - - local_interface: "Ethernet20" - neighbor: "leaf04" - neighbor_interface: "fortyGigE0/24" - capability: "BR" - neighbor_interface_descr: "Ethernet24" - - local_interface: "eth0" - neighbor: "mgmt-switch" - neighbor_interface: "swp14" - capability: "BR" - neighbor_interface_descr: "swp14" + - capabilities: "BR" + local_interface: "Ethernet0" + neighbor_interface: "fortyGigE0/20" + neighbor_interface_description: "Ethernet20" + neighbor_name: "spine01" + - capabilities: "BR" + local_interface: "Ethernet4" + neighbor_interface: "fortyGigE0/20" + neighbor_interface_description: "Ethernet20" + neighbor_name: "spine02" + - capabilities: "BR" + local_interface: "Ethernet8" + neighbor_interface: "fortyGigE0/20" + neighbor_interface_description: "Ethernet20" + neighbor_name: "leaf01" + - capabilities: "BR" + local_interface: "Ethernet12" + neighbor_interface: "fortyGigE0/20" + neighbor_interface_description: "Ethernet20" + neighbor_name: "leaf02" + - capabilities: "BR" + local_interface: "Ethernet16" + neighbor_interface: "fortyGigE0/24" + neighbor_interface_description: "Ethernet24" + neighbor_name: "leaf03" + - capabilities: "BR" + local_interface: "Ethernet20" + neighbor_interface: "fortyGigE0/24" + neighbor_interface_description: "Ethernet24" + neighbor_name: "leaf04" + - capabilities: "BR" + local_interface: "eth0" + neighbor_interface: "swp14" + neighbor_interface_description: "swp14" + neighbor_name: "mgmt-switch" diff --git a/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors.yml b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors.yml index e5a1ce9b16..7f28704e76 100644 --- a/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors.yml +++ b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors.yml @@ -1,12 +1,12 @@ --- parsed_sample: - - local_interface: "ge-0/0/1" + - chassis_id: "2c:6b:f5:a1:c2:c0" + local_interface: "ge-0/0/1" + neighbor_interface: "ge-0/0/1" + neighbor_name: "vmx2" parent_interface: "-" - chassis_id: "2c:6b:f5:a1:c2:c0" - port_info: "ge-0/0/1" - system_name: "vmx2" - - local_interface: "ge-0/0/0" + - chassis_id: "2c:6b:f5:a2:08:c0" + local_interface: "ge-0/0/0" + neighbor_interface: "ge-0/0/0" + neighbor_name: "vmx3" parent_interface: "-" - chassis_id: "2c:6b:f5:a2:08:c0" - port_info: "ge-0/0/0" - system_name: "vmx3" diff --git a/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.raw b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.raw new file mode 100644 index 0000000000..da8b0bdb4f --- /dev/null +++ b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.raw @@ -0,0 +1,5 @@ +Local Interface Parent Interface Chassis Id Port info System Name +xe-0/1/1 ae7 00:1c:73:ee:c0:46 Ethernet3/29/1 core01.sjc01 +xe-0/3/3 ae7 00:1c:73:ee:c0:46 Ethernet3/29/2 core01.sjc01 +xe-2/0/5 ae7 00:1c:73:ee:c0:46 Ethernet3/29/3 core01.sjc01 +xe-2/1/5 ae7 00:1c:73:ee:c0:46 Ethernet3/29/4 core01.sjc01 diff --git a/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.yml b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.yml new file mode 100644 index 0000000000..4c6bd42b9e --- /dev/null +++ b/tests/juniper_junos/show_lldp_neighbors/juniper_junos_show_lldp_neighbors_ae7.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - chassis_id: "00:1c:73:ee:c0:46" + local_interface: "xe-0/1/1" + neighbor_interface: "Ethernet3/29/1" + neighbor_name: "core01.sjc01" + parent_interface: "ae7" + - chassis_id: "00:1c:73:ee:c0:46" + local_interface: "xe-0/3/3" + neighbor_interface: "Ethernet3/29/2" + neighbor_name: "core01.sjc01" + parent_interface: "ae7" + - chassis_id: "00:1c:73:ee:c0:46" + local_interface: "xe-2/0/5" + neighbor_interface: "Ethernet3/29/3" + neighbor_name: "core01.sjc01" + parent_interface: "ae7" + - chassis_id: "00:1c:73:ee:c0:46" + local_interface: "xe-2/1/5" + neighbor_interface: "Ethernet3/29/4" + neighbor_name: "core01.sjc01" + parent_interface: "ae7"