diff --git a/templates/brocade_fastiron_show_arp.template b/templates/brocade_fastiron_show_arp.template new file mode 100644 index 0000000000..7c02a10b16 --- /dev/null +++ b/templates/brocade_fastiron_show_arp.template @@ -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 \ No newline at end of file diff --git a/templates/index b/templates/index index 7eb4fad59c..8aadb94c55 100644 --- a/templates/index +++ b/templates/index @@ -59,7 +59,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]] @@ -71,6 +70,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]] diff --git a/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.parsed b/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.parsed new file mode 100644 index 0000000000..26a4d45393 --- /dev/null +++ b/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.parsed @@ -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" diff --git a/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.raw b/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.raw new file mode 100644 index 0000000000..686aaeeee6 --- /dev/null +++ b/tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.raw @@ -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 \ No newline at end of file