test_bgp_distance_change.py::BGPDistanceChange
- ::startup
- ::bgp_converge:#85:r1/bgpd/vtysh[show ip bgp neighbor 10.101.0.2 json]
- ::_bgp_check_distance_change:#95:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]
- ::_bgp_check_distance_change:#105:r1/zebra/vtysh[show ip route 172.16.255.254/32 json]
- ::shutdown
::startup
passed after 0.83s
('test_bgp_distance_change.py', -inf, 'startup')
::bgp_converge
::bgp_converge:#85:r1/bgpd/vtysh[show ip bgp neighbor 10.101.0.2 json]
passed after 1.90s, CLI command: show ip bgp neighbor 10.101.0.2 json
Expected output:
{'10.101.0.2': {'bgpState': 'Established', 'addressFamilyInfo': {'ipv4Unicast': {'acceptedPrefixCounter': 2}}}}('test_bgp_distance_change.py', 85, '#85:r1/bgpd/vtysh[show ip bgp neighbor 10.101.0.2 json]')
::_bgp_check_distance_change
::_bgp_check_distance_change:#95:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]
passed after 0.00s, CLI command: enable
configure
router bgp 65000
address-family ipv4 unicast
distance bgp 123 123 123
('test_bgp_distance_change.py', 95, '#95:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]:r1/bgpd/vtysh[enable; configure; ; router bgp 65000; address-family ipv4 unicast; distance bgp 123 123 123; ]')
::_bgp_check_distance_change:#105:r1/zebra/vtysh[show ip route 172.16.255.254/32 json]
passed after 0.10s, CLI command: show ip route 172.16.255.254/32 json
Expected output:
{'172.16.255.254/32': [{'protocol': 'bgp', 'distance': 123}]}('test_bgp_distance_change.py', 105, '#105:r1/zebra/vtysh[show ip route 172.16.255.254/32 json]')
::shutdown
passed after 1.11s
('test_bgp_distance_change.py', inf, 'shutdown')