diff --git a/templates/index b/templates/index index 7eb4fad59c..c4b206ca31 100644 --- a/templates/index +++ b/templates/index @@ -251,6 +251,7 @@ hp_procurve_show_vlans.template, .*, hp_procurve, sh[[ow]] vl[[ans]] hp_procurve_show_arp.template, .*, hp_procurve, sh[[ow]] ar[[p]] juniper_junos_show_chassis_firmware.template, .*, juniper_junos, sh[[ow]] ch[[assis]] fi[[rmware]] +juniper_junos_show_arp_no-resolve.template, .*, juniper_junos, sh[[ow]] a[[rp]] n[[o-resolve]] juniper_junos_show_isis_adjacency.template, .*, juniper_junos, sh[[ow]] is[[is]] ad[[jacency]] juniper_junos_show_ospf_neighbor.template, .*, juniper_junos, sh[[ow]] ospf n[[eighbor]] juniper_junos_show_interfaces.template, .*, juniper_junos, sh[[ow]] inte[[rfaces]] diff --git a/templates/juniper_junos_show_arp_no-resolve.template b/templates/juniper_junos_show_arp_no-resolve.template new file mode 100644 index 0000000000..d5ccfad7db --- /dev/null +++ b/templates/juniper_junos_show_arp_no-resolve.template @@ -0,0 +1,11 @@ +Value Required MAC ([A-Fa-f0-9\:]{17}) +Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+) +Value Required INTERFACE (\S+) +Value FLAGS (\S+) + +Start + ^MAC\s+Address\s+Address\s+Interface\s+Flags\s*$$ + ^${MAC}\s+${IP_ADDRESS}\s+${INTERFACE}\s+${FLAGS} -> Record + ^Total.* + ^\s*$$ + ^. -> Error \ No newline at end of file diff --git a/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.parsed b/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.parsed new file mode 100644 index 0000000000..dd151dbed3 --- /dev/null +++ b/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.parsed @@ -0,0 +1,38 @@ +--- +parsed_sample: +- mac: "00:00:00:00:00:04" + ip_address: "10.1.100.130" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:05" + ip_address: "10.1.100.132" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:08" + ip_address: "10.1.100.72" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:09" + ip_address: "10.1.100.73" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:0a" + ip_address: "10.1.100.74" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:0b" + ip_address: "10.1.100.75" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:00:0c" + ip_address: "10.1.100.76" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:11:11" + ip_address: "10.1.111.11" + interface: "vlan.20" + flags: "none" +- mac: "00:00:00:00:13:13" + ip_address: "10.1.13.13" + interface: "vlan.20" + flags: "none" diff --git a/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.raw b/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.raw new file mode 100644 index 0000000000..88e2916a83 --- /dev/null +++ b/tests/juniper_junos/show_arp_no-resolve/juniper_junos_show_arp_no-resolve.raw @@ -0,0 +1,11 @@ +MAC Address Address Interface Flags +00:00:00:00:00:04 10.1.100.130 vlan.20 none +00:00:00:00:00:05 10.1.100.132 vlan.20 none +00:00:00:00:00:08 10.1.100.72 vlan.20 none +00:00:00:00:00:09 10.1.100.73 vlan.20 none +00:00:00:00:00:0a 10.1.100.74 vlan.20 none +00:00:00:00:00:0b 10.1.100.75 vlan.20 none +00:00:00:00:00:0c 10.1.100.76 vlan.20 none +00:00:00:00:11:11 10.1.111.11 vlan.20 none +00:00:00:00:13:13 10.1.13.13 vlan.20 none +Total entries: 9 \ No newline at end of file