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')