Skip to content
Merged
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
13 changes: 12 additions & 1 deletion tests/vxlan/test_vxlan_bfd_tsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from tests.ptf_runner import ptf_runner
from tests.common.vxlan_ecmp_utils import Ecmp_Utils
from tests.common.config_reload import config_system_checks_passed
from tests.common.fixtures.duthost_utils import backup_and_restore_config_db_on_duts # noqa F401
from tests.common.config_reload import config_reload
Logger = logging.getLogger(__name__)
ecmp_utils = Ecmp_Utils()

Expand Down Expand Up @@ -69,7 +71,8 @@ def fixture_setUp(duthosts,
rand_one_dut_hostname,
minigraph_facts,
tbinfo,
encap_type):
encap_type,
backup_and_restore_config_db_on_duts): # noqa F811
'''
Setup for the entire script.
The basic steps in VxLAN configs are:
Expand Down Expand Up @@ -223,6 +226,14 @@ def fixture_setUp(duthosts,
time.sleep(1)


@pytest.fixture(scope="module", autouse=True)
def restore_config_by_config_reload(duthosts, rand_one_dut_hostname, localhost):
yield
duthost = duthosts[rand_one_dut_hostname]

config_reload(duthost, safe_reload=True)


class Test_VxLAN_BFD_TSA():
'''
Class for all the Vxlan tunnel cases where primary and secondary next hops are configured.
Expand Down
Loading