Skip to content

Commit

Permalink
Replacing rand_asic_namespace fixture with existing enum_rand_one_fro…
Browse files Browse the repository at this point in the history
…ntend_asic_index
  • Loading branch information
okaravasi committed Feb 7, 2025
1 parent 6d76453 commit dd51dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/generic_config_updater/test_bgp_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,14 @@ def bgp_prefix_tc1_remove(duthost, community, namespace=None):


@pytest.mark.parametrize("community", ["empty", "1010:1010"])
def test_bgp_prefix_tc1_suite(rand_selected_front_end_dut, rand_asic_namespace, community):
def test_bgp_prefix_tc1_suite(rand_selected_front_end_dut, enum_rand_one_frontend_asic_index, community):
""" Test suite for bgp prefix for v4 and v6 w/ and w/o community ID
Sample CONFIG_DB entry:
BGP_ALLOWED_PREFIXES|DEPLOYMENT_ID|0
BGP_ALLOWED_PREFIXES|DEPLOYMENT_ID|0|1010:1010
"""
asic_namespace, _asic_id = rand_asic_namespace
asic_namespace = rand_selected_front_end_dut.get_namespace_from_asic_id(enum_rand_one_frontend_asic_index)
community_table = "" if community == "empty" else "|" + community

bgp_prefix_test_setup(rand_selected_front_end_dut, namespace=asic_namespace)
Expand Down

0 comments on commit dd51dad

Please sign in to comment.