diff --git a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm index 9c9f3d1fbe..854f61873a 100644 --- a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm @@ -15,6 +15,7 @@ Value ORIGIN ([ie\?\|&]) Start + ^Can't\s+find\s+neighbor ^Peer\s+ ^BGP\s+(routing|table)\s ^Status: diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.raw rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.yml rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw new file mode 100644 index 0000000000..3d3ea916f5 --- /dev/null +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw @@ -0,0 +1,20 @@ +Can't find neighbor 10.1.1.1 in VRF TEST_1 + +Peer 10.1.1.1 routes for address family IPv4 Unicast: +BGP table version is 401423, Local Router ID is 10.10.10.10 +Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best +Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected +Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2 + + Network Next Hop Metric LocPrf Weight Path +*>e10.20.20.0/27 10.1.1.1 5000 0 100 200 i +*>e10.10.202.0/30 10.10.2.1 0 64102 64202 i +*>l100.100.100.100/30 0.0.0.0 100 32768 i +x e100.100.100.104/30 10.10.2.1 0 64102 64002 i +*>e 10.10.1.1 0 64101 64002 i +*>e100.100.100.108/30 10.10.2.1 0 64102 {64201 64202} i +*>e100.100.100.112/30 10.10.2.1 0 64102 {64201 64202} 64203 i +*>e100.100.100.114/30 10.10.2.1 0 64102 {64201 64202} 64203 64500.2345 i +*>e100.100.100.116/30 10.10.2.1 0 {64102 64201 64202} 64203 64500.2345 i +*>e100.100.100.118/30 10.10.2.1 0 64102.444 {64201 64202} 64203 64500.2345 i +*>e100.100.100.120/30 10.10.2.1 0 {64102.333 64201 64202} 64203 64500.2345 i diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml new file mode 100644 index 0000000000..b4d30936ab --- /dev/null +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml @@ -0,0 +1,112 @@ +--- +parsed_sample: + - as_path: "100 200" + local_pref: "5000" + metric: "" + network: "10.20.20.0/27" + next_hop: "10.1.1.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 64202" + local_pref: "" + metric: "" + network: "10.10.202.0/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "" + local_pref: "100" + metric: "" + network: "100.100.100.100/30" + next_hop: "0.0.0.0" + origin: "i" + path_selection: ">" + route_source: "l" + status: "*" + weight: "32768" + - as_path: "64102 64002" + local_pref: "" + metric: "" + network: "100.100.100.104/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: " " + route_source: "e" + status: "x" + weight: "0" + - as_path: "64101 64002" + local_pref: "" + metric: "" + network: "100.100.100.104/30" + next_hop: "10.10.1.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202}" + local_pref: "" + metric: "" + network: "100.100.100.108/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202} 64203" + local_pref: "" + metric: "" + network: "100.100.100.112/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.114/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "{64102 64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.116/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102.444 {64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.118/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "{64102.333 64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.120/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0"