-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multiline LLDP Neighbor entries for cisco_nxos_show_lldp_neighbor…
…s - issue#1166 (#1586) * fix issue#1166 - multiline lldp neighbor entry * handle condition where lldp neighbor name has a trailing space
- Loading branch information
Showing
4 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
parsed_sample: | ||
- neighbor: "nx-osv9000-3-long-name.com" | ||
local_interface: "Eth1/1" | ||
- local_interface: "Eth1/1" | ||
neighbor: "nx-osv9000-3-long-name.com" | ||
neighbor_interface: "Ethernet1/1" | ||
- neighbor: "nx-osv9000-4-extremely-long-name" | ||
local_interface: "Eth1/2" | ||
- local_interface: "Eth1/2" | ||
neighbor: "nx-osv9000-4-extremely-long-name" | ||
neighbor_interface: "Ethernet1/1" | ||
- neighbor: "nx-osv9000-2" | ||
local_interface: "Eth1/3" | ||
- local_interface: "Eth1/3" | ||
neighbor: "nx-osv9000-2" | ||
neighbor_interface: "Ethernet1/3" |
28 changes: 28 additions & 0 deletions
28
tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
r1-services# show lldp neighbor | ||
Capability codes: | ||
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device | ||
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other | ||
Device ID Local Intf Hold-time Capability Port ID | ||
dcx3.org.local | ||
mgmt0 120 B Gi1/0/37 | ||
r2-services Eth1/1 120 BR Eth1/1 | ||
dx1.org.local | ||
Eth1/3 120 B Te1/1/1 | ||
fw1-clinical-partner | ||
Eth1/5 120 ethernet1/9 | ||
fw1-clinical-partner | ||
Eth1/6 120 ethernet1/10 | ||
fw2-clinical-partner | ||
Eth1/7 120 ethernet1/9 | ||
fw2-clinical-partner | ||
Eth1/8 120 ethernet1/10 | ||
cr-ebc.org.local Eth3/1 120 BR Fo1/0/8 | ||
r2-services Eth3/13 120 BR Eth3/13 | ||
fw1-services Eth3/23 120 ethernet1/21 | ||
fw2-services Eth3/24 120 ethernet1/23 | ||
cr-park.org.local | ||
Eth4/1 120 BR Fo1/0/8 | ||
r2-services Eth4/13 120 BR Eth4/13 | ||
fw1-services Eth4/23 120 ethernet1/22 | ||
fw2-services Eth4/24 120 ethernet1/24 | ||
Total entries displayed: 15 |
47 changes: 47 additions & 0 deletions
47
tests/cisco_nxos/show_lldp_neighbors/cisco_nxos_show_lldp_neighbors_multiline.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
parsed_sample: | ||
- local_interface: "mgmt0" | ||
neighbor: "dcx3.org.local" | ||
neighbor_interface: "Gi1/0/37" | ||
- local_interface: "Eth1/1" | ||
neighbor: "r2-services" | ||
neighbor_interface: "Eth1/1" | ||
- local_interface: "Eth1/3" | ||
neighbor: "dx1.org.local" | ||
neighbor_interface: "Te1/1/1" | ||
- local_interface: "Eth1/5" | ||
neighbor: "fw1-clinical-partner" | ||
neighbor_interface: "ethernet1/9" | ||
- local_interface: "Eth1/6" | ||
neighbor: "fw1-clinical-partner" | ||
neighbor_interface: "ethernet1/10" | ||
- local_interface: "Eth1/7" | ||
neighbor: "fw2-clinical-partner" | ||
neighbor_interface: "ethernet1/9" | ||
- local_interface: "Eth1/8" | ||
neighbor: "fw2-clinical-partner" | ||
neighbor_interface: "ethernet1/10" | ||
- local_interface: "Eth3/1" | ||
neighbor: "cr-ebc.org.local" | ||
neighbor_interface: "Fo1/0/8" | ||
- local_interface: "Eth3/13" | ||
neighbor: "r2-services" | ||
neighbor_interface: "Eth3/13" | ||
- local_interface: "Eth3/23" | ||
neighbor: "fw1-services" | ||
neighbor_interface: "ethernet1/21" | ||
- local_interface: "Eth3/24" | ||
neighbor: "fw2-services" | ||
neighbor_interface: "ethernet1/23" | ||
- local_interface: "Eth4/1" | ||
neighbor: "cr-park.org.local" | ||
neighbor_interface: "Fo1/0/8" | ||
- local_interface: "Eth4/13" | ||
neighbor: "r2-services" | ||
neighbor_interface: "Eth4/13" | ||
- local_interface: "Eth4/23" | ||
neighbor: "fw1-services" | ||
neighbor_interface: "ethernet1/22" | ||
- local_interface: "Eth4/24" | ||
neighbor: "fw2-services" | ||
neighbor_interface: "ethernet1/24" |