Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cisco nxos show vrf interface #602

Merged
merged 4 commits into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@ hosts
*.py~

create_ntc-templates_parsed.py

# Ignore pipenv files
**Pipfile
**Pipfile.lock
12 changes: 12 additions & 0 deletions templates/cisco_nxos_show_vrf_interface.textfsm
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ cisco_nxos_show_lldp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] ll[[dp]] nei[[g
cisco_nxos_show_cdp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] cd[[p]] neig[[hbors]]
cisco_nxos_show_ip_arp_detail.textfsm, .*, cisco_nxos, sh[[ow]] i[[p]] a[[rp]] det[[ail]]
cisco_nxos_show_processes_cpu.textfsm, .*, cisco_nxos, sh[[ow]] proc[[esses]] c[[pu]]
cisco_nxos_show_vrf_interface.textfsm, .*, cisco_nxos, sh[[ow]] vrf int[[erface]]
cisco_nxos_show_access-lists.textfsm, .*, cisco_nxos, sh[[ow]] acc[[ess-lists]]
cisco_nxos_show_environments.textfsm, .*, cisco_nxos, sh[[ow]] envi[[ronments]]
cisco_nxos_show_interface.textfsm, .*, cisco_nxos, sh[[ow]] inte[[rface]]
Expand Down
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 --
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: "--"