Skip to content

Commit

Permalink
Feature/improve cisco ios show vrf (#395)
Browse files Browse the repository at this point in the history
BugFix: Allow RD to be IP address
  • Loading branch information
MatthiasGabriel authored and FragmentedPacket committed Aug 2, 2019
1 parent 11ddd04 commit 26219a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit 26219a1

Please sign in to comment.