Skip to content

Commit

Permalink
brocade_fastiron_show_lldp_neighbors: Add new template (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraszewski authored and jmcgill298 committed Dec 30, 2018
1 parent 8479ac1 commit 6fdd507
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/brocade_fastiron_show_lldp_neighbors.template
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ avaya_vsp_show_software.template, .*, avaya_vsp, sho[[w]] so[[ftware]]
brocade_fastiron_show_lldp_neighbors_detail.template, .*, brocade_fastiron, sh[[ow]] ll[[dp]] n[[eighbors]] d[[etail]]
brocade_fastiron_show_running-config_vlan.template, .*, brocade_fastiron, sh[[ow]] ru[[nning-config]] v[[lan]]
brocade_fastiron_show_interfaces_brief.template, .*, brocade_fastiron, sh[[ow]] in[[terfaces]] b[[rief]]
brocade_fastiron_show_lldp_neighbors.template, .*, brocade_fastiron, sh[[ow]] ll[[dp]] n[[eighbors]]
brocade_fastiron_show_interfaces.template, .*, brocade_fastiron, sh[[ow]] in[[terfaces]]
brocade_fastiron_show_lag_brief.template, .*, brocade_fastiron, sh[[ow]] la[[g]] b[[rief]]
brocade_fastiron_show_monitor.template, .*, brocade_fastiron, sh[[ow]] mo[[nitor]]
Expand Down
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"
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

0 comments on commit 6fdd507

Please sign in to comment.