forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding cisco nxos show interface snmp-ifindex. (networktocode#1569)
Co-authored-by: Nicholas Nelson - 10105570 <[email protected]>
- Loading branch information
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
ntc_templates/templates/cisco_nxos_show_interface_snmp-ifindex.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,12 @@ | ||
Value PORT (\S+) | ||
Value IFMIB (\S+) | ||
Value IFINDEX_HEX (\S+) | ||
|
||
Start | ||
^Port\s+IFMIB\s+Ifindex\s+\(hex\)\s*$$ | ||
^${PORT}\s+${IFMIB}\s+\(${IFINDEX_HEX}\s*\)\s*$$ -> Record | ||
^-*$$ | ||
^\s*$$ | ||
^. -> Error | ||
|
||
EOF |
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
27 changes: 27 additions & 0 deletions
27
tests/cisco_nxos/show_interface_snmp-ifindex/cisco_nxos_show_interface_snmp-ifindex_1.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,27 @@ | ||
|
||
-------------------------------------------------------------------------------- | ||
Port IFMIB Ifindex (hex) | ||
-------------------------------------------------------------------------------- | ||
mgmt0 83886080 (0x5000000 ) | ||
Eth9/1 440401920 (0x1a400000) | ||
Eth9/2 440406016 (0x1a401000) | ||
Eth9/3 440410112 (0x1a402000) | ||
Eth9/4 440414208 (0x1a403000) | ||
Eth9/4.10 440414218 (0x1a40300a) | ||
Eth9/5/1 960659456 (0x39428000) | ||
Eth9/5/2 960663552 (0x39429000) | ||
Eth9/5/3 960667648 (0x3942a000) | ||
Eth9/5/4 960671744 (0x3942b000) | ||
Eth9/6/1 960700416 (0x39432000) | ||
Eth9/6/2 960704512 (0x39433000) | ||
Eth9/6/3 960708608 (0x39434000) | ||
Eth9/6/4 960712704 (0x39435000) | ||
Eth9/7 440426496 (0x1a406000) | ||
Eth9/8 440430592 (0x1a407000) | ||
Eth9/9 440434688 (0x1a408000) | ||
Eth9/10 440438784 (0x1a409000) | ||
Eth9/11 440442880 (0x1a40a000) | ||
Eth9/12 440446976 (0x1a40b000) | ||
Po1 369098752 (0x16000000) | ||
Lo0 335544320 (0x14000000) | ||
Vlan1 151126017 (0x9020001) |
71 changes: 71 additions & 0 deletions
71
tests/cisco_nxos/show_interface_snmp-ifindex/cisco_nxos_show_interface_snmp-ifindex_1.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,71 @@ | ||
--- | ||
parsed_sample: | ||
- port: "mgmt0" | ||
ifmib: "83886080" | ||
ifindex_hex: "0x5000000" | ||
- port: "Eth9/1" | ||
ifmib: "440401920" | ||
ifindex_hex: "0x1a400000" | ||
- port: "Eth9/2" | ||
ifmib: "440406016" | ||
ifindex_hex: "0x1a401000" | ||
- port: "Eth9/3" | ||
ifmib: "440410112" | ||
ifindex_hex: "0x1a402000" | ||
- port: "Eth9/4" | ||
ifmib: "440414208" | ||
ifindex_hex: "0x1a403000" | ||
- port: "Eth9/4.10" | ||
ifmib: "440414218" | ||
ifindex_hex: "0x1a40300a" | ||
- port: "Eth9/5/1" | ||
ifmib: "960659456" | ||
ifindex_hex: "0x39428000" | ||
- port: "Eth9/5/2" | ||
ifmib: "960663552" | ||
ifindex_hex: "0x39429000" | ||
- port: "Eth9/5/3" | ||
ifmib: "960667648" | ||
ifindex_hex: "0x3942a000" | ||
- port: "Eth9/5/4" | ||
ifmib: "960671744" | ||
ifindex_hex: "0x3942b000" | ||
- port: "Eth9/6/1" | ||
ifmib: "960700416" | ||
ifindex_hex: "0x39432000" | ||
- port: "Eth9/6/2" | ||
ifmib: "960704512" | ||
ifindex_hex: "0x39433000" | ||
- port: "Eth9/6/3" | ||
ifmib: "960708608" | ||
ifindex_hex: "0x39434000" | ||
- port: "Eth9/6/4" | ||
ifmib: "960712704" | ||
ifindex_hex: "0x39435000" | ||
- port: "Eth9/7" | ||
ifmib: "440426496" | ||
ifindex_hex: "0x1a406000" | ||
- port: "Eth9/8" | ||
ifmib: "440430592" | ||
ifindex_hex: "0x1a407000" | ||
- port: "Eth9/9" | ||
ifmib: "440434688" | ||
ifindex_hex: "0x1a408000" | ||
- port: "Eth9/10" | ||
ifmib: "440438784" | ||
ifindex_hex: "0x1a409000" | ||
- port: "Eth9/11" | ||
ifmib: "440442880" | ||
ifindex_hex: "0x1a40a000" | ||
- port: "Eth9/12" | ||
ifmib: "440446976" | ||
ifindex_hex: "0x1a40b000" | ||
- port: "Po1" | ||
ifmib: "369098752" | ||
ifindex_hex: "0x16000000" | ||
- port: "Lo0" | ||
ifmib: "335544320" | ||
ifindex_hex: "0x14000000" | ||
- port: "Vlan1" | ||
ifmib: "151126017" | ||
ifindex_hex: "0x9020001" |