Skip to content

Commit

Permalink
Brocade fastiron show arp: Add new template (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraszewski authored and jmcgill298 committed Dec 30, 2018
1 parent 5cea42b commit 794f5cf
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
12 changes: 12 additions & 0 deletions templates/brocade_fastiron_show_arp.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Value PROTOCOL (\S+)
Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+)
Value AGE (\S+)
Value Required MAC_ADDRESS ([A-Fa-f0-9\.]{14})
Value TYPE (\S+)
Value Required PORT (\S+)

Start
^Protocol\s+Address\s+Age \(min\)\s+Hardware Addr\s+Type\s+Interface
^${PROTOCOL}\s+${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${TYPE}\s+${PORT} -> Record
^\s*$$
^. -> Error
2 changes: 1 addition & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ avaya_ers_show_mlt.template, .*, avaya_ers, sh[[ow]] ml[[t]]

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]]
Expand All @@ -72,6 +71,7 @@ brocade_fastiron_show_metro.template, .*, brocade_fastiron, sh[[ow]] met[[ro-rin
brocade_fastiron_show_trunk.template, .*, brocade_fastiron, sh[[ow]] tru[[nk]]
brocade_fastiron_show_span.template, .*, brocade_fastiron, sh[[ow]] sp[[an]]
brocade_fastiron_show_topo.template, .*, brocade_fastiron, sh[[ow]] to[[pology-group]]
brocade_fastiron_show_arp.template, .*, brocade_fastiron, sh[[ow]] a[[rp]]

brocade_netiron_show_running-config_interface_ve.template, .*, brocade_netiron, sh[[ow]] ru[[nning-config]] i[[nterface]] v[[e]]
brocade_netiron_show_lldp_neighbors_detail.template, .*, brocade_netiron, sh[[ow]] ll[[dp]] n[[eighbors]] d[[etail]]
Expand Down
32 changes: 32 additions & 0 deletions tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
parsed_sample:
- protocol: "Internet"
ip_address: "10.51.250.70"
age: "94"
mac_address: "64f6.9d1e.a4bf"
type: "ARPA"
port: "Vlan10"
- protocol: "Internet"
ip_address: "10.51.250.120"
age: "-"
mac_address: "fc5b.394a.5a7f"
type: "ARPA"
port: "Vlan10"
- protocol: "Internet"
ip_address: "10.51.250.1"
age: "0"
mac_address: "0010.dbff.1002"
type: "ARPA"
port: "Vlan10"
- protocol: "Internet"
ip_address: "10.51.250.7"
age: "81"
mac_address: "046c.9d67.7746"
type: "ARPA"
port: "Vlan10"
- protocol: "Internet"
ip_address: "10.51.250.8"
age: "67"
mac_address: "9c57.ad1e.4b46"
type: "ARPA"
port: "Vlan10"
6 changes: 6 additions & 0 deletions tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.51.250.70 94 64f6.9d1e.a4bf ARPA Vlan10
Internet 10.51.250.120 - fc5b.394a.5a7f ARPA Vlan10
Internet 10.51.250.1 0 0010.dbff.1002 ARPA Vlan10
Internet 10.51.250.7 81 046c.9d67.7746 ARPA Vlan10
Internet 10.51.250.8 67 9c57.ad1e.4b46 ARPA Vlan10

0 comments on commit 794f5cf

Please sign in to comment.