-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brocade fastiron show arp: Add new template (#289)
- Loading branch information
1 parent
5cea42b
commit 794f5cf
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Value PROTOCOL (\S+) | ||
Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+) | ||
Value AGE (\S+) | ||
Value Required MAC_ADDRESS ([A-Fa-f0-9\.]{14}) | ||
Value TYPE (\S+) | ||
Value Required PORT (\S+) | ||
|
||
Start | ||
^Protocol\s+Address\s+Age \(min\)\s+Hardware Addr\s+Type\s+Interface | ||
^${PROTOCOL}\s+${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${TYPE}\s+${PORT} -> Record | ||
^\s*$$ | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
parsed_sample: | ||
- protocol: "Internet" | ||
ip_address: "10.51.250.70" | ||
age: "94" | ||
mac_address: "64f6.9d1e.a4bf" | ||
type: "ARPA" | ||
port: "Vlan10" | ||
- protocol: "Internet" | ||
ip_address: "10.51.250.120" | ||
age: "-" | ||
mac_address: "fc5b.394a.5a7f" | ||
type: "ARPA" | ||
port: "Vlan10" | ||
- protocol: "Internet" | ||
ip_address: "10.51.250.1" | ||
age: "0" | ||
mac_address: "0010.dbff.1002" | ||
type: "ARPA" | ||
port: "Vlan10" | ||
- protocol: "Internet" | ||
ip_address: "10.51.250.7" | ||
age: "81" | ||
mac_address: "046c.9d67.7746" | ||
type: "ARPA" | ||
port: "Vlan10" | ||
- protocol: "Internet" | ||
ip_address: "10.51.250.8" | ||
age: "67" | ||
mac_address: "9c57.ad1e.4b46" | ||
type: "ARPA" | ||
port: "Vlan10" |
6 changes: 6 additions & 0 deletions
6
tests/brocade_fastiron/show_arp/brocade_fastiron_show_arp.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Protocol Address Age (min) Hardware Addr Type Interface | ||
Internet 10.51.250.70 94 64f6.9d1e.a4bf ARPA Vlan10 | ||
Internet 10.51.250.120 - fc5b.394a.5a7f ARPA Vlan10 | ||
Internet 10.51.250.1 0 0010.dbff.1002 ARPA Vlan10 | ||
Internet 10.51.250.7 81 046c.9d67.7746 ARPA Vlan10 | ||
Internet 10.51.250.8 67 9c57.ad1e.4b46 ARPA Vlan10 |