Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NXOS/XR cdp detail and XR bfd session
- Loading branch information
1 parent
cefc38e
commit 8913bec
Showing
10 changed files
with
826 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,23 @@ | ||
Value Required DEST_HOST (.*) | ||
Value SYSNAME (.*) | ||
Value MGMT_IP (.*) | ||
Value PLATFORM (.*) | ||
Value REMOTE_PORT (.*) | ||
Value LOCAL_PORT (.*) | ||
Value VERSION (.*) | ||
|
||
Start | ||
^Device ID:${DEST_HOST} | ||
^System Name: ${SYSNAME} | ||
^Mgmt address\(es\): -> GetIP | ||
^Platform: ${PLATFORM}, | ||
^Interface: ${REMOTE_PORT}, Port ID \(outgoing port\): ${LOCAL_PORT} | ||
^Version: -> GetVersion | ||
^----- -> Record | ||
|
||
GetIP | ||
^.*IP.+Address: ${MGMT_IP} -> Start | ||
|
||
GetVersion | ||
^${VERSION} -> Start | ||
|
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,10 @@ | ||
Value INTERFACE (.+?) | ||
Value DSTADDRESS (\d+\.\d+\.\d+\.\d+) | ||
Value STATE (\S+) | ||
|
||
Start | ||
^\-+ -> Begin1 | ||
|
||
Begin1 | ||
^\s*${INTERFACE}\s+${DSTADDRESS}\s+\S+\s+\S+\s+${STATE} -> Record | ||
|
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,23 @@ | ||
Value Required DEST_HOST (\S+) | ||
Value SYSNAME (.*) | ||
Value MGMT_IP (.*) | ||
Value PLATFORM (.*) | ||
Value REMOTE_PORT (.*) | ||
Value LOCAL_PORT (.*) | ||
Value VERSION (.*) | ||
|
||
Start | ||
^Device ID: ${DEST_HOST} | ||
^SysName : ${SYSNAME} | ||
^Entry address\(es\): -> GetIP | ||
^Platform: ${PLATFORM}, | ||
^Interface: ${REMOTE_PORT} | ||
^Port ID \(outgoing port\): ${LOCAL_PORT} | ||
^Version : -> GetVersion | ||
|
||
GetIP | ||
^.*IP.+address: ${MGMT_IP} -> Start | ||
|
||
GetVersion | ||
^${VERSION} -> Record Start | ||
|
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
39 changes: 39 additions & 0 deletions
39
tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.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,39 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- dest_host: PERIMETER | ||
local_port: FastEthernet1/0/32 | ||
mgmt_ip: 10.1.100.1 | ||
platform: cisco WS-C3750-48TS | ||
remote_port: mgmt0 | ||
sysname: '' | ||
version: Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(44)SE2, | ||
RELEASE SOFTWARE (fc2) | ||
- dest_host: dc-lf03(SAL19069XXX) | ||
local_port: Ethernet1/1 | ||
mgmt_ip: 10.1.100.226 | ||
platform: N9K-C9372TX | ||
remote_port: Ethernet1/1 | ||
sysname: dc-lf03 | ||
version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1) | ||
- dest_host: dc-lf03(SAL1906XXXX) | ||
local_port: Ethernet1/3 | ||
mgmt_ip: 10.1.100.226 | ||
platform: N9K-C9372TX | ||
remote_port: Ethernet1/3 | ||
sysname: dc-lf03 | ||
version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1) | ||
- dest_host: dc-sp01(SAL19069XXX) | ||
local_port: Ethernet1/52 | ||
mgmt_ip: 10.1.100.222 | ||
platform: N9K-C9372TX | ||
remote_port: Ethernet1/49 | ||
sysname: dc-sp01 | ||
version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d) | ||
- dest_host: dc-sp02(SAL19069XXX) | ||
local_port: Ethernet1/52 | ||
mgmt_ip: 10.1.100.223 | ||
platform: N9K-C9372TX | ||
remote_port: Ethernet1/50 | ||
sysname: dc-sp02 | ||
version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d) |
109 changes: 109 additions & 0 deletions
109
tests/cisco_nxos/show_cdp_neighbors_detail/cisco_nxos_show_cdp_neighbors_detail.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,109 @@ | ||
---------------------------------------- | ||
Device ID:PERIMETER | ||
VTP Management Domain Name: null | ||
|
||
Interface address(es): | ||
IPv4 Address: 10.1.100.1 | ||
Platform: cisco WS-C3750-48TS, Capabilities: Router Switch IGMP Filtering | ||
Interface: mgmt0, Port ID (outgoing port): FastEthernet1/0/32 | ||
Holdtime: 134 sec | ||
|
||
Version: | ||
Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(44)SE2, RELEASE SOFTWARE (fc2) | ||
Copyright (c) 1986-2008 by Cisco Systems, Inc. | ||
Compiled Thu 01-May-08 15:42 by antonino | ||
|
||
Advertisement Version: 2 | ||
|
||
Native VLAN: 100 | ||
Duplex: full | ||
Mgmt address(es): | ||
IPv4 Address: 10.1.100.1 | ||
---------------------------------------- | ||
Device ID:dc-lf03(SAL19069XXX) | ||
System Name: dc-lf03 | ||
|
||
Interface address(es): | ||
IPv4 Address: 10.1.100.226 | ||
Platform: N9K-C9372TX, Capabilities: Router Switch IGMP Filtering Supports-STP-Dispute | ||
Interface: Ethernet1/1, Port ID (outgoing port): Ethernet1/1 | ||
Holdtime: 157 sec | ||
|
||
Version: | ||
Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1) | ||
|
||
Advertisement Version: 2 | ||
|
||
Native VLAN: 1 | ||
Duplex: full | ||
|
||
MTU: 1500 | ||
Physical Location: snmplocation | ||
Mgmt address(es): | ||
IPv4 Address: 10.1.100.226 | ||
---------------------------------------- | ||
Device ID:dc-lf03(SAL1906XXXX) | ||
System Name: dc-lf03 | ||
|
||
Interface address(es): | ||
IPv4 Address: 10.1.100.226 | ||
Platform: N9K-C9372TX, Capabilities: Router Switch IGMP Filtering Supports-STP-Dispute | ||
Interface: Ethernet1/3, Port ID (outgoing port): Ethernet1/3 | ||
Holdtime: 157 sec | ||
|
||
Version: | ||
Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I5(1) | ||
|
||
Advertisement Version: 2 | ||
|
||
Native VLAN: 1 | ||
Duplex: full | ||
|
||
MTU: 1500 | ||
Physical Location: snmplocation | ||
Mgmt address(es): | ||
IPv4 Address: 10.1.100.226 | ||
---------------------------------------- | ||
Device ID:dc-sp01(SAL19069XXX) | ||
System Name: dc-sp01 | ||
|
||
Interface address(es): | ||
IPv4 Address: 10.1.1.1 | ||
Platform: N9K-C9372TX, Capabilities: Router Switch IGMP Filtering Supports-STP-Dispute | ||
Interface: Ethernet1/49, Port ID (outgoing port): Ethernet1/52 | ||
Holdtime: 166 sec | ||
|
||
Version: | ||
Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d) | ||
|
||
Advertisement Version: 2 | ||
|
||
Native VLAN: 1 | ||
Duplex: full | ||
|
||
MTU: 1500 | ||
Physical Location: NY-DC | ||
Mgmt address(es): | ||
IPv4 Address: 10.1.100.222 | ||
---------------------------------------- | ||
Device ID:dc-sp02(SAL19069XXX) | ||
System Name: dc-sp02 | ||
|
||
Interface address(es): | ||
IPv4 Address: 10.1.1.9 | ||
Platform: N9K-C9372TX, Capabilities: Router Switch IGMP Filtering Supports-STP-Dispute | ||
Interface: Ethernet1/50, Port ID (outgoing port): Ethernet1/52 | ||
Holdtime: 166 sec | ||
|
||
Version: | ||
Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I2(2d) | ||
|
||
Advertisement Version: 2 | ||
|
||
Native VLAN: 1 | ||
Duplex: full | ||
|
||
MTU: 1500 | ||
Physical Location: NY-DC | ||
Mgmt address(es): | ||
IPv4 Address: 10.1.100.223 |
21 changes: 21 additions & 0 deletions
21
tests/cisco_xr/show_bfd_sessions/cisco_xr_show_bfd_sessions.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,21 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- dstaddress: 10.100.100.141 | ||
interface: Fo0/0/1/0 | ||
state: UP | ||
- dstaddress: 10.100.100.19 | ||
interface: Fo0/0/0/0 | ||
state: UP | ||
- dstaddress: 10.100.100.125 | ||
interface: Fo0/0/0/1 | ||
state: UP | ||
- dstaddress: 10.100.100.113 | ||
interface: Fo0/1/0/0 | ||
state: UP | ||
- dstaddress: 10.100.100.145 | ||
interface: Fo0/1/1/0 | ||
state: UP | ||
- dstaddress: 10.100.100.129 | ||
interface: Fo0/2/1/1 | ||
state: UP |
15 changes: 15 additions & 0 deletions
15
tests/cisco_xr/show_bfd_sessions/cisco_xr_show_bfd_sessions.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 @@ | ||
Interface Dest Addr Local det time(int*mult) State | ||
Echo Async H/W NPU | ||
------------------- --------------- ---------------- ---------------- ---------- | ||
Fo0/0/1/0 10.100.100.141 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a | ||
Fo0/0/0/0 10.100.100.19 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a | ||
Fo0/0/0/1 10.100.100.125 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a | ||
Fo0/1/0/0 10.100.100.113 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a | ||
Fo0/1/1/0 10.100.100.145 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a | ||
Fo0/2/1/1 10.100.100.129 45ms(15ms*3) 6s(2s*3) UP | ||
No n/a |
Oops, something went wrong.