Commit 6c862b50 authored by Nigel Kukard's avatar Nigel Kukard

a

parent 11b1fa0d
Pipeline #4656 failed with stage
in 33 seconds
......@@ -472,85 +472,6 @@ class TestBirdClient():
result = birdclient.show_route_table('t_bgp6', self._load_file('test_show_route_table_t_bgp6.txt'))
correct_result = {
'fc00:130::/48': [{'attributes': {'BGP.as_path': '65007',
'BGP.large_community': [('65000',
'4',
'65414'),
('65007', '3', '1'),
('65000', '3', '2'),
('65000',
'1',
'901')],
'BGP.local_pref': '750',
'BGP.next_hop': 'fc61::3 '
'fe80::61:1ff:fe00:1',
'BGP.origin': 'IGP'},
'nexthops': [{'gateway': 'fc61::3', 'interface': 'eth1'}],
'pref': '100',
'prefix_type': 'unicast',
'protocol': 'bgp_AS65007_client3_peer6',
'since': '2019-09-30 17:14:00',
'type': ['BGP', 'univ']},
{'attributes': {'BGP.as_path': '',
'BGP.cluster_list': '0.0.0.1',
'BGP.large_community': [('65000', '3', '1')],
'BGP.local_pref': '940',
'BGP.next_hop': 'fc50::5',
'BGP.origin': 'IGP',
'BGP.originator_id': '100.64.10.2'},
'bestpath': False,
'bgp_type': 'i',
'from': 'fc20::3',
'nexthops': [{'gateway': 'fe80::20:1ff:fe00:1',
'interface': 'eth0',
'weight': '1'},
{'gateway': 'fe80::20:1ff:fe02:1',
'interface': 'eth0',
'weight': '1'}],
'pref': '100',
'prefix_type': 'unicast',
'protocol': 'bgp_AS65000_rr2_peer6',
'since': '2019-09-30 17:14:20',
'type': ['BGP', 'univ']}],
'fc20::/64': [{'attributes': {'BGP.as_path': '',
'BGP.cluster_list': '0.0.0.1',
'BGP.large_community': [('65000', '3', '1')],
'BGP.local_pref': '930',
'BGP.next_hop': 'fc20::1',
'BGP.origin': 'IGP',
'BGP.originator_id': '100.64.20.1'},
'bestpath': True,
'bgp_type': 'i',
'from': 'fc10::3',
'nexthops': [{'gateway': 'fc20::1', 'interface': 'eth0'}],
'pref': '100',
'prefix_type': 'unicast',
'protocol': 'bgp_AS65000_rr1_peer6',
'since': '2019-09-30 17:14:15',
'type': ['BGP', 'univ']},
{'asn': 'AS65006',
'attributes': {'BGP.as_path': '65006',
'BGP.cluster_list': '0.0.0.1',
'BGP.large_community': [('65000', '3', '3'),
('65006', '3', '1')],
'BGP.local_pref': '450',
'BGP.next_hop': 'fc40::11 fe80::40:1ff:fe00:1',
'BGP.origin': 'IGP',
'BGP.originator_id': '100.64.10.1'},
'bestpath': False,
'bgp_type': 'i',
'from': 'fc20::3',
'nexthops': [{'gateway': 'fe80::20:1ff:fe00:1',
'interface': 'eth0',
'weight': '1'},
{'gateway': 'fe80::20:1ff:fe02:1',
'interface': 'eth0',
'weight': '1'}],
'pref': '100',
'prefix_type': 'unicast',
'protocol': 'bgp_AS65000_rr2_peer6',
'since': '2019-09-30 17:14:14',
'type': ['BGP', 'univ']}]
}
assert result == correct_result, 'The show_route_table() result does not match what it should be'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment