Skip to content

Commit 9f6fe9e

Browse files
ganglyuytzur1
authored andcommitted
Fix configuration after gnmi test (sonic-net#19150)
What is the motivation for this PR? Some end to end tests failed because the configuration is wrong after gnmi test. How did you do it? Run "config save" command to make sure configuration is persistent. How did you verify/test it? Run gnmi end to end test and check configuration. Signed-off-by: Yael Tzur <ytzur@nvidia.com>
1 parent b52f8fb commit 9f6fe9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/gnmi/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ def setup_gnmi_server(duthosts, rand_one_dut_hostname, localhost, ptfhost):
237237

238238
# Rollback configuration
239239
rollback(duthost, SETUP_ENV_CP)
240+
# Save the configuration
241+
cmd = "config save -y"
242+
duthost.shell(cmd, module_ignore_errors=True)
240243
recover_cert_config(duthost)
241244

242245

0 commit comments

Comments
 (0)