Skip to content
New issue

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

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

Already on GitHub? # to your account

Cisco nxos show vrf interface #602

Merged
merged 4 commits into from
Feb 25, 2020
Merged

Cisco nxos show vrf interface #602

merged 4 commits into from
Feb 25, 2020

Conversation

JoeyG1973
Copy link
Contributor

ISSUE TYPE
  • New Template Pull Request
COMPONENT

cisco_nxos_show_vrf_interface.textfsm

Cisco nxos
show vrf interface

SUMMARY

Added parser for the show vrf interface. I did this because I needed that data. I am sure others will as well.

>>> pp(parse_output(platform = 'cisco_nxos', command = 'show vrf interface', data=vrfs))
[{'id': '6', 'interface': 'Vlan6001', 'name': 'ADMIN', 'origin': '--'},
 {'id': '6', 'interface': 'Vlan6700', 'name': 'ADMIN', 'origin': '--'},
 {'id': '7', 'interface': 'Vlan5302', 'name': 'AXNET', 'origin': '--'},
 {'id': '7', 'interface': 'Vlan7202', 'name': 'AXNET', 'origin': '--'},
 {'id': '7', 'interface': 'Vlan6302', 'name': 'AXNET', 'origin': '--'},
 {'id': '4', 'interface': 'Vlan5301', 'name': 'MARKING', 'origin': '--'},
 {'id': '4', 'interface': 'Vlan7201', 'name': 'MARKING', 'origin': '--'},
 {'id': '4', 'interface': 'Vlan6301', 'name': 'MARKING', 'origin': '--'},
 {'id': '3', 'interface': 'Ethernet1/10', 'name': 'Keepalive', 'origin': '--'},
 {'id': '1', 'interface': 'Vlan1', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'Vlan100', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'loopback0', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'loopback1', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'Ethernet1/25', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'Ethernet1/30', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'Ethernet1/17', 'name': 'default', 'origin': '--'},
 {'id': '1', 'interface': 'Ethernet1/42', 'name': 'default', 'origin': '--'},
 {'id': '2', 'interface': 'mgmt0', 'name': 'management', 'origin': '--'}]

@JoeyG1973
Copy link
Contributor Author

forgot to put the test files in. They are now present

bfd47b4

@jmcgill298 jmcgill298 merged commit 689f8b3 into networktocode:master Feb 25, 2020
@JoeyG1973 JoeyG1973 deleted the cisco_nxos_show_vrf_interface branch June 5, 2020 18:37
thomasblass pushed a commit to thomasblass/ntc-templates that referenced this pull request Oct 25, 2020
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants