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

Feature/improve cisco ios show vrf #395

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
2 changes: 1 addition & 1 deletion templates/cisco_ios_show_vrf.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value Required NAME (\S+)
Value DEFAULT_RD (\d+:\d+|<not set>)
Value DEFAULT_RD ((\d+|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}):\d+|<not set>)
Value PROTOCOLS (\S+)
Value List INTERFACES (\S+)

Expand Down
10 changes: 10 additions & 0 deletions tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

parsed_sample:
- default_rd: '127.0.0.1:7'
interfaces:
- Vl5
- Vl905
- Vl945
name: vpn7
protocols: ipv4
5 changes: 5 additions & 0 deletions tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Name Default RD Protocols Interfaces
vpn7 127.0.0.1:7 ipv4 Vl5
Vl905
Vl945