diff --git a/ntc_templates/templates/cisco_ios_show_vrf.textfsm b/ntc_templates/templates/cisco_ios_show_vrf.textfsm index d326e3956e..d2143bf431 100644 --- a/ntc_templates/templates/cisco_ios_show_vrf.textfsm +++ b/ntc_templates/templates/cisco_ios_show_vrf.textfsm @@ -13,4 +13,5 @@ Start_record ^\s{2}\S+ -> Continue.Record ^\s{60}\s+${INTERFACES} ^\s+${NAME}\s+${DEFAULT_RD}\s+${PROTOCOLS}\s+${INTERFACES} + ^\s+${NAME}\s+${DEFAULT_RD}\s+${PROTOCOLS} diff --git a/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.raw b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.raw new file mode 100644 index 0000000000..29c899e2b1 --- /dev/null +++ b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.raw @@ -0,0 +1,5 @@ + Name Default RD Protocols Interfaces + OOB-MGMT ipv4 Gi0/3 + vpn21 65201:21 ipv4,ipv6 Gi0/0.21 + Gi0/1.21 + vpn22 65201:22 ipv4 diff --git a/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.yml b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.yml new file mode 100644 index 0000000000..02447c67f9 --- /dev/null +++ b/tests/cisco_ios/show_vrf/cisco_ios_show_vrf_no_interface.yml @@ -0,0 +1,17 @@ +--- +parsed_sample: + - default_rd: "" + interfaces: + - "Gi0/3" + name: "OOB-MGMT" + protocols: "ipv4" + - default_rd: "65201:21" + interfaces: + - "Gi0/0.21" + - "Gi0/1.21" + name: "vpn21" + protocols: "ipv4,ipv6" + - default_rd: "65201:22" + interfaces: [] + name: "vpn22" + protocols: "ipv4"