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

fixed ports #471

Merged
merged 2 commits into from
Sep 28, 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
4 changes: 2 additions & 2 deletions templates/hp_procurve_show_arp.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Value IP ((?:[0-9]{1,3}\.){3}[0-9]{1,3})
Value IP (\S+)
Value MAC ([0-9a-fA-F]{6}-[0-9a-fA-F]{6})
Value TYPE (\S+)
Value PORT (\d+)
Value PORT (\S+)

Start
^.*IP ARP table -> ARP
Expand Down
18 changes: 18 additions & 0 deletions tests/hp_procurve/show_arp/hp_procurve_show_arp_1.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

parsed_sample:

- ip: "10.11.12.11"
mac: "0015b2-a45078"
type: "dynamic"
port: "2"

- ip: "10.11.12.12"
mac: "0c15b2-a45d78"
type: "dynamic"
port: "3"

- ip: "10.11.12.13"
mac: "001eb2-a45f78"
type: "dynamic"
port: "Trk1"
8 changes: 8 additions & 0 deletions tests/hp_procurve/show_arp/hp_procurve_show_arp_1.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

IP ARP table

IP Address MAC Address Type Port
--------------- ----------------- ------- ----
10.11.12.11 0015b2-a45078 dynamic 2
10.11.12.12 0c15b2-a45d78 dynamic 3
10.11.12.13 001eb2-a45f78 dynamic Trk1