From 47d615fe0ae6d364f956e474a9f057a4139a85ed Mon Sep 17 00:00:00 2001 From: Dawei Huang Date: Tue, 8 Oct 2024 13:50:00 -0500 Subject: [PATCH] Add a config reload command to create an initial config for L2 mode. Step 1 in L2 config wiki actually serve the purpose of remove existing minigraph config except for those that are absolutely necessary. We should not skip that. --- tests/l2/test_l2_configure.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/l2/test_l2_configure.py b/tests/l2/test_l2_configure.py index 00770e9755b..edd7e3ac763 100644 --- a/tests/l2/test_l2_configure.py +++ b/tests/l2/test_l2_configure.py @@ -53,6 +53,24 @@ def test_l2_config_and_upgrade(request, duthosts, rand_one_dut_hostname, localho # Save original config duthost.shell("sudo cp {} {}".format(CONFIG_DB, CONFIG_DB_BAK)) # Perform L2 configuration + mgmt_fact = duthost.get_extended_minigraph_facts()["minigraph_mgmt_interface"] + init_cfg = ''' + cat <