Skip to content

Commit

Permalink
Test config mgmt (sonic-net#32)
Browse files Browse the repository at this point in the history
* [sonic-utilities-tests/config_mgmt_test.py]: Bringing config_mgmt tests.

Changes:
-- Bringing config_mgmt tests.
-- Change test as per dpb repo code

Signed-off-by: Praveen Chaudhary [email protected]

* [config/config_mgmt.py]: Remove unneccessary print.

Signed-off-by: Praveen Chaudhary [email protected]
  • Loading branch information
Praveen Chaudhary authored Jun 30, 2020
1 parent 942f49f commit f27c350
Show file tree
Hide file tree
Showing 2 changed files with 726 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,10 @@ def insertHandler(diff, inp, outp, config):

elif isinstance(outp, list):
# just take list from output
# print("Delete from List: {} {} {}".format(inp, outp, list))
config.extend(outp)
# in config DB, empty lists are represented by [""]
if "" in config:
config.remove("")

return

Expand Down
Loading

0 comments on commit f27c350

Please sign in to comment.