-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brocade_fastiron_show_lldp_neighbors
: Add new template (#291)
- Loading branch information
1 parent
8479ac1
commit 6fdd507
Showing
4 changed files
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Value Required NEIGHBOR (\S+) | ||
Value Required LOCAL_INTERFACE (\S+) | ||
Value Required HOLD_TIME (\d+) | ||
Value Required CAPABILITIES (\S+) | ||
Value Required NEIGHBOR_INTERFACE (\S+) | ||
|
||
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 | ||
^Total.* | ||
^\s*$$ | ||
^. -> Error |
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
7 changes: 7 additions & 0 deletions
7
tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.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,7 @@ | ||
--- | ||
parsed_sample: | ||
- neighbor: "core-sw01" | ||
local_interface: "Gi1/3" | ||
hold_time: "120" | ||
capabilities: "B,R" | ||
neighbor_interface: "Gi0/3" |
6 changes: 6 additions & 0 deletions
6
tests/brocade_fastiron/show_lldp_neighbors/brocade_fastiron_show_lldp_neighbors.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,6 @@ | ||
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 | ||
core-sw01 Gi1/3 120 B,R Gi0/3 | ||
Total entries displayed: 1 |