test_bgp_sender_as_path_loop_detection.py::BGPSenderAspathLoopDetection

::startup
::bgp_converge:#100:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 json]
::bgp_has_route_from_r1:#120:r2/bgpd/vtysh[show ip bgp 10.255.0.1/32 json]
::bgp_suppress_route_to_r3:#131:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.3 advertised-routes json]
::shutdown

::startup

passed after 1.20s
('test_bgp_sender_as_path_loop_detection.py', -inf, 'startup')

::bgp_converge

::bgp_converge:#100:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 json]

passed after 4.20s, CLI command: show ip bgp neighbor 10.101.0.1 json
Expected output:
{'10.101.0.1': {'bgpState': 'Established', 'addressFamilyInfo': {'ipv4Unicast': {'acceptedPrefixCounter': 2}}}}
('test_bgp_sender_as_path_loop_detection.py', 100, '#100:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 json]')

::bgp_has_route_from_r1

::bgp_has_route_from_r1:#120:r2/bgpd/vtysh[show ip bgp 10.255.0.1/32 json]

passed after 0.00s, CLI command: show ip bgp 10.255.0.1/32 json
Expected output:
{'paths': [{'aspath': {'segments': [{'type': 'as-sequence', 'list': [65001, 65003]}], 'length': 2}}]}
('test_bgp_sender_as_path_loop_detection.py', 120, '#120:r2/bgpd/vtysh[show ip bgp 10.255.0.1/32 json]')

::bgp_suppress_route_to_r3

::bgp_suppress_route_to_r3:#131:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.3 advertised-routes json]

passed after 0.00s, CLI command: show ip bgp neighbor 10.101.0.3 advertised-routes json
Expected output:
{'totalPrefixCounter': 0}
('test_bgp_sender_as_path_loop_detection.py', 131, '#131:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.3 advertised-routes json]')

::shutdown

passed after 1.16s
('test_bgp_sender_as_path_loop_detection.py', inf, 'shutdown')
net router-r1 r1 10.255.0.1/32 fd00::1/128 r1-s1 fe:01:00:bc:01:00 10.101.0.1/16 fdbc:1::fc01:ff:febc:100/64 lan-s1 s1 10.101.0.0/16 fdbc:1::/64 router-r1:r1-s1--lan-s1 router-r3 r3 10.255.0.3/32 fd00::3/128 r3-s1 fe:03:00:bc:01:00 10.101.0.3/16 fdbc:1::fc03:ff:febc:100/64 r3-s2 fe:03:00:bc:02:00 10.102.0.3/16 fdbc:2::fc03:ff:febc:200/64 router-r3:r3-s1--lan-s1 lan-s2 s2 10.102.0.0/16 fdbc:2::/64 router-r3:r3-s2--lan-s2 router-r2 r2 10.255.0.2/32 fd00::2/128 r2-s2 fe:02:00:bc:02:00 10.102.0.2/16 fdbc:2::fc02:ff:febc:200/64 r2-s1 fe:02:00:bc:01:00 10.101.0.2/16 fdbc:1::fc02:ff:febc:100/64 router-r2:r2-s1--lan-s1 router-r2:r2-s2--lan-s2