diff --git a/templates/cisco_ios_show_vrf.template b/templates/cisco_ios_show_vrf.template index aadc062f8a..4f61548c43 100644 --- a/templates/cisco_ios_show_vrf.template +++ b/templates/cisco_ios_show_vrf.template @@ -1,5 +1,5 @@ Value Required NAME (\S+) -Value DEFAULT_RD (\d+:\d+|) +Value DEFAULT_RD ((\d+|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}):\d+|) Value PROTOCOLS (\S+) Value List INTERFACES (\S+) diff --git a/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.parsed b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.parsed new file mode 100644 index 0000000000..e1752f9283 --- /dev/null +++ b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.parsed @@ -0,0 +1,10 @@ +--- + +parsed_sample: +- default_rd: '127.0.0.1:7' + interfaces: + - Vl5 + - Vl905 + - Vl945 + name: vpn7 + protocols: ipv4 diff --git a/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.raw b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.raw new file mode 100644 index 0000000000..d27d11de04 --- /dev/null +++ b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf2.raw @@ -0,0 +1,5 @@ + + Name Default RD Protocols Interfaces + vpn7 127.0.0.1:7 ipv4 Vl5 + Vl905 + Vl945