Skip to content

Commit e5800b1

Browse files
ganglyugshemesh2
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: Guy Shemesh <[email protected]>
1 parent 4c810c1 commit e5800b1

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)