Skip to content

Commit

Permalink
new_template: watchguard_firebox_show_arp
Browse files Browse the repository at this point in the history
  • Loading branch information
dainok authored and FragmentedPacket committed Oct 1, 2019
1 parent 25fbf98 commit 813f1c9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -326,3 +326,5 @@ vmware_nsxv_show_ip_route.template, .*, vmware_nsxv, sh[[ow]] ip r[[oute]]

vyatta_vyos_show_interfaces.template, .*, .*vyos.*, sh[[ow]] int[[erfaces]]
vyatta_vyos_show_arp.template, .*, .*vyos.*, sh[[ow]] a[[rp]]

watchguard_firebox_show_arp.template, .*, watchguard_firebox, sh[[ow]] arp
11 changes: 11 additions & 0 deletions templates/watchguard_firebox_show_arp.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value INTERFACE (\S+)
Value IP ([0-9.]+)
Value MAC ([0-9a-fA-F:]+|incomplete)

Start
^--
^--\s+ARP\s+Table
^--
^\?\s+\(${IP}\)\s+at\s+<*${MAC}>*\s+(\[\S+\]\s*)?([A-Z]+\s*)?on\s+${INTERFACE} -> Record
^\s*$$
^. -> Error
2 changes: 1 addition & 1 deletion tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_index_ordering():
'cisco_xe', 'cisco_xr', 'dell_force10', 'enterasys', 'extreme', 'f5_ltm', 'fortinet',
'hp_comware', 'hp_procurve', 'huawei', 'juniper', 'juniper_junos', 'juniper_screenos',
'alcatel_sros', 'linux', 'ovs_linux', 'paloalto_panos', 'quanta_mesh',
'ubiquiti_edgeswitch', 'vmware_nsxv', 'vyatta_vyos', 'vyos',
'ubiquiti_edgeswitch', 'vmware_nsxv', 'vyatta_vyos', 'vyos', 'watchguard_firebox',
]

prior_os = ""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
parsed_sample:

- interface: vlan1
ip: 10.0.0.6
mac: '00:01:02:03:04:c8'
- interface: vlan2
ip: 10.1.0.10
mac: '00:01:02:03:04:90'
- interface: vlan3
ip: 10.2.0.1
mac: '00:01:02:03:04:6a'
- interface: vlan4
ip: 10.3.0.8
mac: 'incomplete'
- interface: vlan5
ip: 10.4.0.4
mac: '00:01:02:03:04:ee'
- interface: eth0
ip: 10.5.0.4
mac: '00:01:02:03:04:05'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--
-- ARP Table
--
? (10.0.0.6) at 00:01:02:03:04:c8 [ether] on vlan1
? (10.1.0.10) at 00:01:02:03:04:90 [ether] on vlan2
? (10.2.0.1) at 00:01:02:03:04:6a [ether] on vlan3
? (10.3.0.8) at <incomplete> on vlan4
? (10.4.0.4) at 00:01:02:03:04:ee [ether] on vlan5
? (10.5.0.4) at 00:01:02:03:04:05 [ether] PERM on eth0

0 comments on commit 813f1c9

Please sign in to comment.