-
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.
New template: paloalto_panos_show_mac_all
- Loading branch information
1 parent
3990023
commit 6a97401
Showing
4 changed files
with
44 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
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,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 |
18 changes: 18 additions & 0 deletions
18
tests/paloalto_panos/show_mac_all/paloalto_panos_show_mac_all.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,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' |
12 changes: 12 additions & 0 deletions
12
tests/paloalto_panos/show_mac_all/paloalto_panos_show_mac_all.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,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 |