-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: cisco_nxos_show_ip_adjacency (#704)
- Loading branch information
Showing
4 changed files
with
93 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,27 @@ | ||
Value Required IPADDRESS (\S+) | ||
Value Required MAC (\S+) | ||
Value Required PREF (\d+) | ||
Value Required SOURCE (\S+) | ||
Value Required INTERFACE (\S+) | ||
# Flags: | ||
# # - Adjacencies Throttled for Glean | ||
# G - Adjacencies of vPC peer with G/W bit | ||
Value FLAGS ([G#]*) | ||
|
||
Start | ||
# Ignore headers | ||
^.*?-\s+Adjacencies | ||
^IP\s+Adjacency\s+Table | ||
^Total\s+number\s+of\s+entries: | ||
# Jump to a list of entries: | ||
^Address\s+MAC\s+Address\s+Pref\s+Source\s+Interface -> Entries | ||
# Process empty and unknown lines | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Entries | ||
# Entry with optional flags | ||
^${IPADDRESS}\s+${MAC}\s+${PREF}\s+${SOURCE}\s+${INTERFACE}\s*${FLAGS}$$ -> Record | ||
# Process empty and unknown lines | ||
^\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/cisco_nxos/show_ip_adjacency/cisco_nxos_show_ip_adjacency_n5596.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,15 @@ | ||
|
||
Flags: # - Adjacencies Throttled for Glean | ||
G - Adjacencies of vPC peer with G/W bit | ||
|
||
IP Adjacency Table for VRF default | ||
Total number of entries: 8 | ||
Address MAC Address Pref Source Interface | ||
10.110.100.142 002a.6a11.62c1 50 arp Vlan1800 G | ||
10.110.100.178 78bc.1af1.ca61 50 arp Vlan1801 | ||
10.110.100.179 002a.6a11.62c1 50 arp Vlan1801 G | ||
10.100.1.22 002a.6a11.62c1 50 arp Vlan10 G | ||
10.100.1.24 0040.9d99.f6f6 50 arp Vlan10 | ||
10.100.150.3 0050.5694.bb20 50 arp Vlan150 | ||
10.100.150.5 002a.6a11.62c1 50 arp Vlan150 G | ||
10.100.150.6 0050.568c.2110 50 arp Vlan150 |
50 changes: 50 additions & 0 deletions
50
tests/cisco_nxos/show_ip_adjacency/cisco_nxos_show_ip_adjacency_n5596.yml
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,50 @@ | ||
--- | ||
parsed_sample: | ||
- ipaddress: "10.110.100.142" | ||
mac: "002a.6a11.62c1" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan1800" | ||
flags: "G" | ||
- ipaddress: "10.110.100.178" | ||
mac: "78bc.1af1.ca61" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan1801" | ||
flags: "" | ||
- ipaddress: "10.110.100.179" | ||
mac: "002a.6a11.62c1" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan1801" | ||
flags: "G" | ||
- ipaddress: "10.100.1.22" | ||
mac: "002a.6a11.62c1" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan10" | ||
flags: "G" | ||
- ipaddress: "10.100.1.24" | ||
mac: "0040.9d99.f6f6" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan10" | ||
flags: "" | ||
- ipaddress: "10.100.150.3" | ||
mac: "0050.5694.bb20" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan150" | ||
flags: "" | ||
- ipaddress: "10.100.150.5" | ||
mac: "002a.6a11.62c1" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan150" | ||
flags: "G" | ||
- ipaddress: "10.100.150.6" | ||
mac: "0050.568c.2110" | ||
pref: "50" | ||
source: "arp" | ||
interface: "Vlan150" | ||
flags: "" |