From a3aa0b7e2cd870223cd50d6536b219f8ff9249e2 Mon Sep 17 00:00:00 2001 From: sresri2 <125845681+sresri2@users.noreply.github.com> Date: Fri, 7 Aug 2026 16:59:24 -0700 Subject: [PATCH 1/2] Initial Fix Signed-off-by: sresri2 <125845681+sresri2@users.noreply.github.com> --- tests/bgp/test_bgp_4-byte_as_trans.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/bgp/test_bgp_4-byte_as_trans.py b/tests/bgp/test_bgp_4-byte_as_trans.py index 4510c5fdb84..1b21fa07e12 100644 --- a/tests/bgp/test_bgp_4-byte_as_trans.py +++ b/tests/bgp/test_bgp_4-byte_as_trans.py @@ -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] @@ -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, @@ -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)) From c66066fa419dd1f9aa8221e9c7aa2e51539ad57c Mon Sep 17 00:00:00 2001 From: sresri2 <125845681+sresri2@users.noreply.github.com> Date: Fri, 7 Aug 2026 16:59:33 -0700 Subject: [PATCH 2/2] Remove Skip Signed-off-by: sresri2 <125845681+sresri2@users.noreply.github.com> --- .../conditional_mark/tests_mark_conditions_vs_t2.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/common/plugins/conditional_mark/tests_mark_conditions_vs_t2.yaml b/tests/common/plugins/conditional_mark/tests_mark_conditions_vs_t2.yaml index 1cb5e2d3460..3add4a14357 100644 --- a/tests/common/plugins/conditional_mark/tests_mark_conditions_vs_t2.yaml +++ b/tests/common/plugins/conditional_mark/tests_mark_conditions_vs_t2.yaml @@ -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: