-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New template: hp_procurve_show_mac-address
- Loading branch information
1 parent
f42ff25
commit 3990023
Showing
4 changed files
with
36 additions
and
0 deletions.
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,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 | ||
^\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
15 changes: 15 additions & 0 deletions
15
tests/hp_procurve/show_mac-address/hp_procurve_show_mac-address.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,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' |
9 changes: 9 additions & 0 deletions
9
tests/hp_procurve/show_mac-address/hp_procurve_show_mac-address.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,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 |