Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[configdb]: add mod_entry, rename set_config to mod_config #25

Merged
merged 3 commits into from
Dec 7, 2017

Conversation

lguohan
Copy link
Contributor

@lguohan lguohan commented Dec 7, 2017

mod_entry will not delete extra data in the db.

change the set_config to mod_config so that mod_config does not
delete extra data in the db

mod_entry will not delete extra data in the db.

change the set_config to mod_config so that mod_config does not
delete extra data in the db
def set_config(self, data):
"""Write multiple tables into config db.
def mod_config(self, data):
"""Write multiple tables into config db. Existing entries in the db are kept.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not "Existing entries are kept" (if existing entry occurs in data it will be modified), but "Untouched entries and untouched attributes of existing entries are kept".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "extra entries/attributes in the db are kept"?

@lguohan lguohan merged commit 1c7a6b4 into sonic-net:master Dec 7, 2017
praveen-li pushed a commit to praveen-li/sonic-py-swsssdk that referenced this pull request May 4, 2021
* msft_github/master:
  [configdb]: Addopt get_table method to work with python3. (sonic-net#26)
  [configdb]: add mod_entry, rename set_config to mod_config (sonic-net#25)
  [configdb] fix bug of leaving unwanted columns in a hash (sonic-net#23)
  Revert "Add support to remove the key of table entry (sonic-net#15)" (sonic-net#24)
  Add support to remove the key of table entry (sonic-net#15)
  [configdb] support redis connecting methods other than TCP (sonic-net#22)
  [interface]: Extend the max data wait time to 60s (sonic-net#21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants