Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Template added support for broadcom_icos_show_isdp_neighbors #748

Merged
merged 2 commits into from
Jun 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions templates/broadcom_icos_show_isdp_neighbors.textfsm
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ avaya_ers_show_mlt.textfsm, .*, avaya_ers, sh[[ow]] ml[[t]]
avaya_vsp_show_software.textfsm, .*, avaya_vsp, sho[[w]] so[[ftware]]

broadcom_icos_show_mac-address-table.textfsm, .*, broadcom_icos, sh[[ow]] mac[[-adress-table]]
broadcom_icos_show_isdp_neighbors.textfsm, .*, broadcom_icos, sh[[ow]] is[[dp]] n[[eighbors]]
broadcom_icos_show_version.textfsm, .*, broadcom_icos, sh[[ow]] ver[[sion]]

brocade_fastiron_show_lldp_neighbors_detail.textfsm, .*, brocade_fastiron, sh[[ow]] ll[[dp]] n[[eighbors]] d[[etail]]
Expand Down
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
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"