-
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.
New Template: broadcom_icos_show_isdp_neighbors.textfsm (#748)
- Loading branch information
Showing
4 changed files
with
104 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,18 @@ | ||
Value ID (\S+) | ||
Value INTERFACE (\S+) | ||
Value HOLDTIME (\S+) | ||
Value CAPABILITY ([\w]{1}(?:\s[\w]){0,2}) | ||
Value PLATFORM ((\S+\s\S+)|(\S+)) | ||
Value PORT (.+) | ||
|
||
Start | ||
# Captures show isdp neighbors for: | ||
# Accton AS4610-54P, Accton AS5610-52X, Quanta LY2R, Quanta LB9, DNI AG3448P-R | ||
# Raw data is the same in the case of all those devices | ||
^Capability\sCodes: | ||
^\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*$$ | ||
^. -> 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
17 changes: 17 additions & 0 deletions
17
tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_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,17 @@ | ||
|
||
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge, | ||
S - Switch, H - Host, I - IGMP, r - Repeater | ||
|
||
Device ID Intf Holdtime Capability Platform Port ID | ||
------------------------ --------- --------- ---------- ---------------- --------- | ||
AP00-1-00001 0/1 173 T B I cisco AIR-CAP270 GigabitEt | ||
AP00-2-00002 0/2 139 T B I cisco AIR-CAP270 GigabitEt | ||
AP00-15-00050D 0/3 127 R T cisco AIR-AP3802 GigabitEt | ||
AP00-1-00115F 0/4 170 R T cisco AIR-AP3802 GigabitEt | ||
AP00-22-01665A 0/5 143 R T cisco AIR-AP3802 GigabitEt | ||
dev1-df-loc-sw000001 0/35 161 R BCM-56340 0/1 | ||
dev2-dd-loc-sw000001 0/37 178 R BCM-56340 0/1 | ||
dev3-ds-loc-sw000001 0/39 157 R BCM-56340 0/1 | ||
dev4-da-loc-sw000001 0/43 179 R BCM-56340 0/1 | ||
dev5-ab-loc-sw0001 0/49 154 R AS5610-52X 0/1 | ||
dev6-aa-loc-sw0002 0/50 158 R AS5610-52X 0/1 |
68 changes: 68 additions & 0 deletions
68
tests/broadcom_icos/show_isdp_neighbors/broadcom_icos_show_isdp_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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
parsed_sample: | ||
- id: "AP00-1-00001" | ||
interface: "0/1" | ||
holdtime: "173" | ||
capability: "T B I" | ||
platform: "cisco AIR-CAP270" | ||
port: "GigabitEt" | ||
- id: "AP00-2-00002" | ||
interface: "0/2" | ||
holdtime: "139" | ||
capability: "T B I" | ||
platform: "cisco AIR-CAP270" | ||
port: "GigabitEt" | ||
- id: "AP00-15-00050D" | ||
interface: "0/3" | ||
holdtime: "127" | ||
capability: "R T" | ||
platform: "cisco AIR-AP3802" | ||
port: "GigabitEt" | ||
- id: "AP00-1-00115F" | ||
interface: "0/4" | ||
holdtime: "170" | ||
capability: "R T" | ||
platform: "cisco AIR-AP3802" | ||
port: "GigabitEt" | ||
- id: "AP00-22-01665A" | ||
interface: "0/5" | ||
holdtime: "143" | ||
capability: "R T" | ||
platform: "cisco AIR-AP3802" | ||
port: "GigabitEt" | ||
- id: "dev1-df-loc-sw000001" | ||
interface: "0/35" | ||
holdtime: "161" | ||
capability: "R" | ||
platform: "BCM-56340" | ||
port: "0/1" | ||
- id: "dev2-dd-loc-sw000001" | ||
interface: "0/37" | ||
holdtime: "178" | ||
capability: "R" | ||
platform: "BCM-56340" | ||
port: "0/1" | ||
- id: "dev3-ds-loc-sw000001" | ||
interface: "0/39" | ||
holdtime: "157" | ||
capability: "R" | ||
platform: "BCM-56340" | ||
port: "0/1" | ||
- id: "dev4-da-loc-sw000001" | ||
interface: "0/43" | ||
holdtime: "179" | ||
capability: "R" | ||
platform: "BCM-56340" | ||
port: "0/1" | ||
- id: "dev5-ab-loc-sw0001" | ||
interface: "0/49" | ||
holdtime: "154" | ||
capability: "R" | ||
platform: "AS5610-52X" | ||
port: "0/1" | ||
- id: "dev6-aa-loc-sw0002" | ||
interface: "0/50" | ||
holdtime: "158" | ||
capability: "R" | ||
platform: "AS5610-52X" | ||
port: "0/1" |