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.
New Template: NXOS show vrf interface (networktocode#602)
- Loading branch information
1 parent
b9c0f0d
commit 4f6fe45
Showing
5 changed files
with
110 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 |
---|---|---|
|
@@ -183,3 +183,7 @@ hosts | |
*.py~ | ||
|
||
create_ntc-templates_parsed.py | ||
|
||
# Ignore pipenv files | ||
**Pipfile | ||
**Pipfile.lock |
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 INTERFACE (\S+) | ||
Value NAME (\S+) | ||
Value ID (\S+) | ||
Value ORIGIN (\S+) | ||
|
||
Start | ||
^Interface\s+VRF-Name\s+VRF-ID\s+Site-of-Origin -> Start_record | ||
|
||
Start_record | ||
^${INTERFACE}\s+${NAME}\s+${ID}\s+${ORIGIN} -> Record | ||
^\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
19 changes: 19 additions & 0 deletions
19
tests/cisco_nxos/show_vrf_interface/cisco_nxos_show_vrf_interface.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,19 @@ | ||
Interface VRF-Name VRF-ID Site-of-Origin | ||
Vlan6001 ADMIN 6 -- | ||
Vlan6700 ADMIN 6 -- | ||
Vlan5302 AXNET 7 -- | ||
Vlan7202 AXNET 7 -- | ||
Vlan6302 AXNET 7 -- | ||
Vlan5301 MARKING 4 -- | ||
Vlan7201 MARKING 4 -- | ||
Vlan6301 MARKING 4 -- | ||
Ethernet1/10 Keepalive 3 -- | ||
Vlan1 default 1 -- | ||
Vlan100 default 1 -- | ||
loopback0 default 1 -- | ||
loopback1 default 1 -- | ||
Ethernet1/25 default 1 -- | ||
Ethernet1/30 default 1 -- | ||
Ethernet1/17 default 1 -- | ||
Ethernet1/42 default 1 -- | ||
mgmt0 management 2 -- |
74 changes: 74 additions & 0 deletions
74
tests/cisco_nxos/show_vrf_interface/cisco_nxos_show_vrf_interface.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,74 @@ | ||
--- | ||
parsed_sample: | ||
- interface: "Vlan6001" | ||
name: "ADMIN" | ||
id: "6" | ||
origin: "--" | ||
- interface: "Vlan6700" | ||
name: "ADMIN" | ||
id: "6" | ||
origin: "--" | ||
- interface: "Vlan5302" | ||
name: "AXNET" | ||
id: "7" | ||
origin: "--" | ||
- interface: "Vlan7202" | ||
name: "AXNET" | ||
id: "7" | ||
origin: "--" | ||
- interface: "Vlan6302" | ||
name: "AXNET" | ||
id: "7" | ||
origin: "--" | ||
- interface: "Vlan5301" | ||
name: "MARKING" | ||
id: "4" | ||
origin: "--" | ||
- interface: "Vlan7201" | ||
name: "MARKING" | ||
id: "4" | ||
origin: "--" | ||
- interface: "Vlan6301" | ||
name: "MARKING" | ||
id: "4" | ||
origin: "--" | ||
- interface: "Ethernet1/10" | ||
name: "Keepalive" | ||
id: "3" | ||
origin: "--" | ||
- interface: "Vlan1" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "Vlan100" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "loopback0" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "loopback1" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "Ethernet1/25" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "Ethernet1/30" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "Ethernet1/17" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "Ethernet1/42" | ||
name: "default" | ||
id: "1" | ||
origin: "--" | ||
- interface: "mgmt0" | ||
name: "management" | ||
id: "2" | ||
origin: "--" |