-
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.
Browse files
Browse the repository at this point in the history
Fix template not accounting for neighbor name running into interface name. TEMPLATE UPDATES: - Limit `NEIGHBOR` capture group to first 20 non-space characters. - Change space capture from being required to being allowed TEST UPDATES: - Add new raw/parsed files to account for additional output
- Loading branch information
1 parent
274bb51
commit a5f1bd5
Showing
3 changed files
with
15 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Value Required NEIGHBOR (\S+) | ||
Value Required NEIGHBOR (\S{0,20}) | ||
Value Required LOCAL_INTERFACE (\S+) | ||
Value Required NEIGHBOR_INTERFACE (\S+) | ||
|
||
Start | ||
^Device.*ID -> LLDP | ||
|
||
LLDP | ||
^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+(\S+)*\s+${NEIGHBOR_INTERFACE} -> Record | ||
^${NEIGHBOR}\s*${LOCAL_INTERFACE}\s+\d+\s+(\S+)*\s+${NEIGHBOR_INTERFACE} -> Record | ||
^${NEIGHBOR} | ||
^\s+${LOCAL_INTERFACE}\s+\d+\s+(\S+)*\s+${NEIGHBOR_INTERFACE} -> Record |
5 changes: 5 additions & 0 deletions
5
tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.parsed
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,5 @@ | ||
--- | ||
parsed_sample: | ||
- neighbor: "long_name_swt.josh-v" | ||
local_interface: "Gi0/2" | ||
neighbor_interface: "Gi0/0" |
8 changes: 8 additions & 0 deletions
8
tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors2.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,8 @@ | ||
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 | ||
long_name_swt.josh-vGi0/2 120 R Gi0/0 | ||
|
||
Total entries displayed: 1 |