Skip to content

Commit 66e89cc

Browse files
committed
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.
1 parent 2f64840 commit 66e89cc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/l2/test_l2_configure.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
]
2121

2222

23+
def test_blah(duthosts, rand_one_dut_hostname, tbinfo):
24+
duthost = duthosts[rand_one_dut_hostname]
25+
logger.info("start printing fact")
26+
logger.info(duthost.facts)
27+
ext_minig_facts = duthost.get_extended_minigraph_facts(tbinfo)
28+
logger.info("start printing minigraph fact")
29+
logger.info(ext_minig_facts)
30+
31+
2332
def test_l2_config_and_upgrade(request, duthosts, rand_one_dut_hostname, localhost):
2433
"""
2534
@summary: A testcase that verifies DB migrator does not add bad data.
@@ -71,7 +80,7 @@ def test_l2_config_and_upgrade(request, duthosts, rand_one_dut_hostname, localho
7180

7281
# Step 4: Verifies no config fro minigraph is written into ConfigDB.
7382
try:
74-
for table in ["TELEMETRY", "RESTAPI", "DEVICE_METADATA"]:
83+
for table in ["TELEMETRY", "RESTAPI"]:
7584
count = int(duthost.shell('sonic-db-cli CONFIG_DB KEYS "{}|* | wc -l'.format(table))['stdout'])
7685
pytest_assert(count == 0, "{} table is not empty!".format(table))
7786
except Exception:

0 commit comments

Comments
 (0)