@@ -641,17 +641,20 @@ def test_router_case_local_bgpcpe():
641641 assert 3 in d ["interfaces" ]["ifp-0/1/2" ]["units" ]
642642 assert 4 in d ["interfaces" ]["ifp-0/1/2" ]["units" ]
643643 assert 5 in d ["interfaces" ]["ifp-0/1/2" ]["units" ]
644+ assert "ifp-0/1/3" in d ["interfaces" ]
645+ assert 3 in d ["interfaces" ]["ifp-0/1/3" ]["units" ]
644646 assert "lo-0/0/0" in d ["interfaces" ]
645- assert len (d ["interfaces" ]) == 2
647+ assert len (d ["interfaces" ]) == 3
646648
647649 assert "protocols" in d ["routing_instances" ]["default" ]
648650 assert "bgp" in d ["routing_instances" ]["default" ]["protocols" ]
649651
650652 groups_default = d ["routing_instances" ]["default" ]["protocols" ]["bgp" ]["groups" ]
651- assert len (groups_default ) == 1
653+ assert len (groups_default ) == 2
652654 assert (
653655 "CUST_cl390287" in groups_default
654656 ) # parent interface has tobago line attached
657+ assert groups_default ["CUST_cl390287" ]["any_as" ] == True
655658 assert groups_default ["CUST_cl390287" ]["neighbors" ][0 ]["interface" ] == "ifp-0/1/2.3"
656659 assert groups_default ["CUST_cl390287" ]["family" ]["ipv4_unicast" ]["policy" ][
657660 "export"
@@ -666,6 +669,12 @@ def test_router_case_local_bgpcpe():
666669 "import_list"
667670 ] == ["2a0e:b941:2:42::/64" , "2a0e:b941:2::/122" ]
668671
672+ assert (
673+ "CPE_ifp-0-1-3-3_V4" in groups_default
674+ ) # no tobago line attached, so no new naming
675+ assert groups_default ["CPE_ifp-0-1-3-3_V4" ]["peer_as" ] == 65086
676+ assert groups_default ["CPE_ifp-0-1-3-3_V4" ]["neighbors" ][0 ]["peer" ] == "10.129.6.12"
677+
669678 groups_L3VPN = d ["routing_instances" ]["L3VPN" ]["protocols" ]["bgp" ]["groups" ]
670679
671680 assert "CPE_ifp-0-1-2-4" in groups_L3VPN # sub interface using legacy naming tag
0 commit comments