-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cisco nxos show ip arp detail vrf all (#1750)
* add nxos template for show ip arp detail vrf all * make VRF key optional, update tests * make 'VRF Name' column optional NXOS 9.3.9 has the vrf name column but 9.3.3 does not * Fix test cases --------- Co-authored-by: Nick Grundler <[email protected]>
- Loading branch information
1 parent
b3c9445
commit 0b5ed49
Showing
4 changed files
with
355 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
ntc_templates/templates/cisco_nxos_show_ip_arp_detail_vrf_all.textfsm
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,22 @@ | ||
Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) | ||
Value AGE (\S+) | ||
Value MAC_ADDRESS (\S+) | ||
Value INTERFACE (\S+) | ||
Value PHYSICAL_INTERFACE (\S+) | ||
Value FLAGS (\*|\+|#|CP|PS|RO) | ||
Value VRF (\S*) | ||
|
||
Start | ||
#Ignore junk | ||
^.+\s-\sAdjacencies\s | ||
^.+\sCP\s-\s | ||
^.+\sPS\s-\s | ||
^.+\sRO\s-\s | ||
^\s*IP\sARP\sTable\s | ||
^\s*Total\snumber\sof\sentries: | ||
^\s*Address\s+Age\s+MAC\s+Address\s+Interface\s+Physical\sInterface\s+Flags\s*(VRF\sName)*\s*$$ -> Data | ||
^. -> Error | ||
|
||
Data | ||
^${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${INTERFACE}\s+${PHYSICAL_INTERFACE}\s*${FLAGS}?\s*${VRF}\s*$$ -> Record | ||
^. -> 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
50 changes: 50 additions & 0 deletions
50
tests/cisco_nxos/show_ip_arp_detail_vrf_all/cisco_nxos_show_ip_arp_detail_vrf_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,50 @@ | ||
Flags: * - Adjacencies learnt on non-active FHRP router | ||
+ - Adjacencies synced via CFSoE | ||
# - Adjacencies Throttled for Glean | ||
CP - Added via L2RIB, Control plane Adjacencies | ||
PS - Added via L2RIB, Peer Sync | ||
RO - Re-Originated Peer Sync Entry | ||
|
||
IP ARP Table for all contexts | ||
Total number of entries: 350 | ||
Address Age MAC Address Interface Physical Interface Flags VRF Name | ||
10.255.0.2 00:09:24 14a2.a070.52a7 Vlan666 port-channel1000 default | ||
10.255.0.1 00:17:20 14a2.a070.52a0 mgmt0 mgmt0 management | ||
172.23.5.8 00:06:48 b8a3.771c.255b Ethernet1/49 Ethernet1/49 default | ||
172.23.5.10 00:06:50 d477.98e9.c6bf Ethernet1/50 Ethernet1/50 default | ||
10.233.6.3 00:14:55 14a2.a070.52a7 Vlan3 port-channel1000 PRIMARY | ||
10.233.6.5 00:11:24 c8e7.f0fb.d6a7 Vlan3 Ethernet1/8 PRIMARY | ||
10.233.6.6 00:14:04 d0d0.fd61.ecc1 Vlan3 Ethernet1/9 + PRIMARY | ||
10.233.6.7 00:12:05 44aa.502f.c150 Vlan3 Ethernet1/13 PRIMARY | ||
10.233.6.8 00:07:12 8418.88ac.9741 Vlan3 port-channel12 PRIMARY | ||
10.233.6.9 00:13:41 8418.88aa.c641 Vlan3 port-channel13 PRIMARY | ||
10.233.6.10 00:05:29 0881.f4ae.4841 Vlan3 port-channel14 PRIMARY | ||
10.233.6.11 00:10:51 b0a8.6e03.ce81 Vlan3 port-channel11 PRIMARY | ||
10.233.6.12 00:04:35 2c21.7299.8ac1 Vlan3 Ethernet1/6 PRIMARY | ||
10.233.6.13 00:13:25 78fe.3d35.7b41 Vlan3 Ethernet1/21 PRIMARY | ||
10.233.6.14 00:09:43 8071.1fe7.f041 Vlan3 Ethernet1/29 PRIMARY | ||
10.233.6.15 00:06:38 8071.1fe7.ef41 Vlan3 Ethernet1/28 PRIMARY | ||
10.233.6.16 00:17:54 3c61.04f9.6bc1 Vlan3 Ethernet1/12 PRIMARY | ||
10.233.6.18 00:13:17 2c21.7298.8b41 Vlan3 Ethernet1/10 PRIMARY | ||
10.233.6.19 00:11:53 2c21.7299.8e81 Vlan3 Ethernet1/11 PRIMARY | ||
10.233.6.20 00:00:01 28c0.da35.dc01 Vlan3 Ethernet1/16 PRIMARY | ||
10.233.6.21 00:01:08 c8e7.f0fb.c487 Vlan3 port-channel10 PRIMARY | ||
10.233.6.30 00:09:24 7819.f79a.82c1 Vlan3 Ethernet1/2 PRIMARY | ||
10.233.6.31 00:01:54 2c21.728a.0581 Vlan3 Ethernet1/22 PRIMARY | ||
10.233.6.32 00:02:05 78fe.3d35.a101 Vlan3 Ethernet1/1 + PRIMARY | ||
10.233.6.33 00:05:25 2c21.7296.b501 Vlan3 Ethernet1/3 PRIMARY | ||
10.233.6.34 00:16:36 2c21.7296.8c81 Vlan3 Ethernet1/23 PRIMARY | ||
10.233.6.35 00:08:06 2c21.7293.a401 Vlan3 Ethernet1/24 PRIMARY | ||
10.233.6.36 00:14:56 2c21.7296.9081 Vlan3 Ethernet1/4 PRIMARY | ||
10.233.6.37 00:12:56 7819.f79b.8801 Vlan3 Ethernet1/25 PRIMARY | ||
10.233.6.38 00:14:49 2c21.7296.a401 Vlan3 Ethernet1/26 PRIMARY | ||
10.233.6.39 00:17:42 2c21.3111.0701 Vlan3 port-channel18 PRIMARY | ||
10.233.6.48 00:08:50 7c25.8629.ab83 Vlan3 Ethernet1/15 PRIMARY | ||
10.233.6.50 00:13:21 f8c0.01c9.e501 Vlan3 port-channel15 PRIMARY | ||
10.233.6.60 00:05:02 8418.88ac.9ec1 Vlan3 port-channel16 + PRIMARY | ||
10.233.6.70 00:12:04 8418.88ac.a0c1 Vlan3 port-channel17 PRIMARY | ||
10.233.6.193 00:03:29 2829.862b.0dfc Vlan3 port-channel13 PRIMARY | ||
10.233.6.194 00:02:38 2829.863f.5708 Vlan3 Ethernet1/2 PRIMARY | ||
10.233.6.196 00:02:15 2829.8615.4bd3 Vlan3 Ethernet1/4 PRIMARY | ||
10.233.6.197 00:08:54 2829.8617.5b14 Vlan3 Ethernet1/21 PRIMARY | ||
10.233.6.1 - 0000.5e00.0101 Vlan9 - |
282 changes: 282 additions & 0 deletions
282
tests/cisco_nxos/show_ip_arp_detail_vrf_all/cisco_nxos_show_ip_arp_detail_vrf_all.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,282 @@ | ||
--- | ||
parsed_sample: | ||
- ip_address: "10.255.0.2" | ||
age: "00:09:24" | ||
mac_address: "14a2.a070.52a7" | ||
interface: "Vlan666" | ||
physical_interface: "port-channel1000" | ||
flags: "" | ||
vrf: "default" | ||
- ip_address: "10.255.0.1" | ||
age: "00:17:20" | ||
mac_address: "14a2.a070.52a0" | ||
interface: "mgmt0" | ||
physical_interface: "mgmt0" | ||
flags: "" | ||
vrf: "management" | ||
- ip_address: "172.23.5.8" | ||
age: "00:06:48" | ||
mac_address: "b8a3.771c.255b" | ||
interface: "Ethernet1/49" | ||
physical_interface: "Ethernet1/49" | ||
flags: "" | ||
vrf: "default" | ||
- ip_address: "172.23.5.10" | ||
age: "00:06:50" | ||
mac_address: "d477.98e9.c6bf" | ||
interface: "Ethernet1/50" | ||
physical_interface: "Ethernet1/50" | ||
flags: "" | ||
vrf: "default" | ||
- ip_address: "10.233.6.3" | ||
age: "00:14:55" | ||
mac_address: "14a2.a070.52a7" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel1000" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.5" | ||
age: "00:11:24" | ||
mac_address: "c8e7.f0fb.d6a7" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/8" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.6" | ||
age: "00:14:04" | ||
mac_address: "d0d0.fd61.ecc1" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/9" | ||
flags: "+" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.7" | ||
age: "00:12:05" | ||
mac_address: "44aa.502f.c150" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/13" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.8" | ||
age: "00:07:12" | ||
mac_address: "8418.88ac.9741" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel12" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.9" | ||
age: "00:13:41" | ||
mac_address: "8418.88aa.c641" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel13" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.10" | ||
age: "00:05:29" | ||
mac_address: "0881.f4ae.4841" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel14" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.11" | ||
age: "00:10:51" | ||
mac_address: "b0a8.6e03.ce81" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel11" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.12" | ||
age: "00:04:35" | ||
mac_address: "2c21.7299.8ac1" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/6" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.13" | ||
age: "00:13:25" | ||
mac_address: "78fe.3d35.7b41" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/21" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.14" | ||
age: "00:09:43" | ||
mac_address: "8071.1fe7.f041" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/29" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.15" | ||
age: "00:06:38" | ||
mac_address: "8071.1fe7.ef41" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/28" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.16" | ||
age: "00:17:54" | ||
mac_address: "3c61.04f9.6bc1" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/12" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.18" | ||
age: "00:13:17" | ||
mac_address: "2c21.7298.8b41" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/10" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.19" | ||
age: "00:11:53" | ||
mac_address: "2c21.7299.8e81" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/11" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.20" | ||
age: "00:00:01" | ||
mac_address: "28c0.da35.dc01" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/16" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.21" | ||
age: "00:01:08" | ||
mac_address: "c8e7.f0fb.c487" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel10" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.30" | ||
age: "00:09:24" | ||
mac_address: "7819.f79a.82c1" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/2" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.31" | ||
age: "00:01:54" | ||
mac_address: "2c21.728a.0581" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/22" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.32" | ||
age: "00:02:05" | ||
mac_address: "78fe.3d35.a101" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/1" | ||
flags: "+" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.33" | ||
age: "00:05:25" | ||
mac_address: "2c21.7296.b501" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/3" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.34" | ||
age: "00:16:36" | ||
mac_address: "2c21.7296.8c81" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/23" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.35" | ||
age: "00:08:06" | ||
mac_address: "2c21.7293.a401" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/24" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.36" | ||
age: "00:14:56" | ||
mac_address: "2c21.7296.9081" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/4" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.37" | ||
age: "00:12:56" | ||
mac_address: "7819.f79b.8801" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/25" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.38" | ||
age: "00:14:49" | ||
mac_address: "2c21.7296.a401" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/26" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.39" | ||
age: "00:17:42" | ||
mac_address: "2c21.3111.0701" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel18" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.48" | ||
age: "00:08:50" | ||
mac_address: "7c25.8629.ab83" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/15" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.50" | ||
age: "00:13:21" | ||
mac_address: "f8c0.01c9.e501" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel15" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.60" | ||
age: "00:05:02" | ||
mac_address: "8418.88ac.9ec1" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel16" | ||
flags: "+" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.70" | ||
age: "00:12:04" | ||
mac_address: "8418.88ac.a0c1" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel17" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.193" | ||
age: "00:03:29" | ||
mac_address: "2829.862b.0dfc" | ||
interface: "Vlan3" | ||
physical_interface: "port-channel13" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.194" | ||
age: "00:02:38" | ||
mac_address: "2829.863f.5708" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/2" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.196" | ||
age: "00:02:15" | ||
mac_address: "2829.8615.4bd3" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/4" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.197" | ||
age: "00:08:54" | ||
mac_address: "2829.8617.5b14" | ||
interface: "Vlan3" | ||
physical_interface: "Ethernet1/21" | ||
flags: "" | ||
vrf: "PRIMARY" | ||
- ip_address: "10.233.6.1" | ||
age: "-" | ||
mac_address: "0000.5e00.0101" | ||
interface: "Vlan9" | ||
physical_interface: "-" | ||
flags: "" | ||
vrf: "" |