Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paloalto panos show mac all #431

Merged
merged 12 commits into from
Jul 26, 2019
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ brocade_netiron_show_span.template, .*, brocade_netiron, sh[[ow]] sp[[anning-tre
brocade_netiron_show_topo.template, .*, brocade_netiron, sh[[ow]] to[[pology-group]]

checkpoint_gaia_show_interfaces_all.template, .*, checkpoint_gaia, show interfaces all
checkpoint_gaia_show_ntp_servers.template, .*, checkpoint_gaia, show ntp servers
checkpoint_gaia_show_ntp_servers.template, .*, checkpoint_gaia, show ntp servers
checkpoint_gaia_show_version_all.template, .*, checkpoint_gaia, show version all
checkpoint_gaia_show_domainname.template, .*, checkpoint_gaia, show domainname
checkpoint_gaia_show_ipv6_route.template, .*, checkpoint_gaia, show ipv6 route
Expand Down Expand Up @@ -293,6 +293,7 @@ paloalto_panos_show_interface_logical.template, .*, paloalto_panos, sh[[ow]] int
paloalto_panos_show_counter_global.template, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]]
paloalto_panos_show_system_info.template, .*, paloalto_panos, sh[[ow]] sys[[tem]] in[[fo]]
paloalto_panos_show_jobs_all.template, .*, paloalto_panos, sh[[ow]] jo[[bs]] all
paloalto_panos_show_mac_all.template, .*, paloalto_panos, sh[[ow]] mac all
dainok marked this conversation as resolved.
Show resolved Hide resolved

ubiquiti_edgeswitch_show_vlan.template, .*, ubiquiti_edgeswitch, sh[[ow]] vl[[an]]
ubiquiti_edgeswitch_show_arp.template, .*, ubiquiti_edgeswitch, sh[[ow]] ar[[p]]
Expand Down
13 changes: 13 additions & 0 deletions templates/paloalto_panos_show_mac_all.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Value VLAN (\S+)
Value MAC ([0-9a-fA-F:]+)
Value INTERFACE (\S+)
Value STATUS (\S+)
Value TTL (\d+)

Start
^\s*--- -> Start_record

Start_record
^${VLAN}\s+${MAC}\s+${INTERFACE}\s+${STATUS}\s+${TTL} -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
parsed_sample:

- vlan: Test
mac: '00:50:00:00:07:00'
interface: ethernet1/2.110
status: c
ttl: '1778'
- vlan: Test
mac: '00:50:00:00:08:00'
interface: ethernet1/2.111
status: c
ttl: '1796'
- vlan: Test
mac: '50:00:00:02:00:01'
interface: ethernet1/2.110
status: c
ttl: '704'
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

maximum of entries supported : 1500
default timeout : 1800 seconds
total MAC entries in table : 3
total MAC entries shown : 3
status: s - static, c - complete, i - incomplete

vlan hw address interface status ttl
--------------------------------------------------------------------------------
Test 00:50:00:00:07:00 ethernet1/2.110 c 1778
Test 00:50:00:00:08:00 ethernet1/2.111 c 1796
Test 50:00:00:02:00:01 ethernet1/2.110 c 704