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

Hp procurve show mac address #430

Merged
merged 9 commits into from
Jul 25, 2019
Merged
Show file tree
Hide file tree
Changes from all 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
11 changes: 11 additions & 0 deletions templates/hp_procurve_show_mac-address.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value MAC ([0-9a-fA-F]{6}-[0-9a-fA-F]{6})
Value PORT (\S+)
Value VLAN (\d+)

Start
^\s*--- -> Start_record

Start_record
^\s+${MAC}\s+${PORT}\s+${VLAN} -> Record
dainok marked this conversation as resolved.
Show resolved Hide resolved
^\s*$$
^. -> Error
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 @@ -270,6 +270,7 @@ hp_comware_display_clock.template, .*, hp_comware, di[[splay]] clo[[ck]]
hp_comware_display_arp.template, .*, hp_comware, di[[splay]] a[[rp]]

hp_procurve_show_tech_buffers.template, .*, hp_procurve, sh[[ow]] tec[[h]] buf[[ffers]]
hp_procurve_show_mac-address.template, .*, hp_procurve, sh[[ow]] mac-a[[ddress]]
hp_procurve_show_system.template, .*, hp_procurve, sh[[ow]] syst[[em]]
hp_procurve_show_vlans.template, .*, hp_procurve, sh[[ow]] vl[[ans]]
hp_procurve_show_arp.template, .*, hp_procurve, sh[[ow]] ar[[p]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
parsed_sample:

- mac: '500000-260000'
port: Trk1
vlan: '17'
- mac: '500000-a80009'
port: Trk1
vlan: '10'
- mac: '500000-260000'
port: Trk1
vlan: '50'
- mac: '500000-b70008'
port: '25'
vlan: '50'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

Status and Counters - Port Address Table

MAC Address Port VLAN
----------------- ------------------------------- ----
500000-260000 Trk1 17
500000-a80009 Trk1 10
500000-260000 Trk1 50
500000-b70008 25 50