Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tests/bgp/test_bgp_4-byte_as_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ def setup(tbinfo, nbrhosts, duthosts, enum_frontend_dut_hostname, enum_rand_one_
neigh_asn[v['description']] = v['remote AS']
neighbors[v['description']] = nbrhosts[v['description']]["host"]
if neighbors[neigh1].is_multi_asic:
neigh_cli_options = " -n " + neigh1.get_namespace_from_asic_id(asic_index)
neigh_cli_options = " -n " + neighbors[neigh1].get_namespace_from_asic_id(asic_index)
else:
neigh_cli_options = ''

if neighbors[neigh2].is_multi_asic:
neigh2_cli_options = " -n " + neighbors[neigh2].get_namespace_from_asic_id(asic_index)
else:
neigh2_cli_options = ''

dut_ip_v4 = tbinfo['topo']['properties']['configuration'][neigh1]['bgp']['peers'][dut_asn][0]
dut_ip_v6 = tbinfo['topo']['properties']['configuration'][neigh1]['bgp']['peers'][dut_asn][1]

Expand Down Expand Up @@ -104,6 +109,7 @@ def setup(tbinfo, nbrhosts, duthosts, enum_frontend_dut_hostname, enum_rand_one_
'neighbors': neighbors,
'cli_options': cli_options,
'neigh_cli_options': neigh_cli_options,
'neigh2_cli_options': neigh2_cli_options,
'dut_ip_v4': dut_ip_v4,
'dut_ip_v6': dut_ip_v6,
'neigh_ip_v4': neigh_ip_v4,
Expand Down Expand Up @@ -292,5 +298,6 @@ def test_4_byte_asn_translation(setup):
logger.debug(v['description'])
assert v['state'] == 'established'

cmd = 'vtysh -c "show bgp ipv4 all neighbors {}" received-routes'.format(setup['neigh_ipv4_network'])
cmd = 'vtysh{} -c "show bgp ipv4 all neighbors {}" received-routes'.format(
setup['neigh2_cli_options'], setup['neigh_ipv4_network'])
logger.debug(setup['neigh2host'].shell(cmd, module_ignore_errors=True))
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ bgp/test_4-byte_asn_community.py:
conditions:
- asic_type in ['vs'] and 't2' in topo_name
reason: This test case either cannot pass or should be skipped on virtual chassis
bgp/test_bgp_4-byte_as_trans.py:
skip:
conditions:
- asic_type in ['vs'] and 't2' in topo_name
reason: This test case either cannot pass or should be skipped on virtual chassis
bgp/test_bgp_azng_migration.py:
skip:
conditions:
Expand Down
Loading