Skip to content

[config_mgmt.py]: Set leaf-list to empty list while port breakout. #1268

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

Merged
merged 4 commits into from
Jan 22, 2021

Conversation

praveen-li
Copy link
Member

@praveen-li praveen-li commented Nov 24, 2020

Changes:
-- Set leaf-list to empty list while port breakout, because deletions
are not done to fields once set.

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

Depends on sonic-net/sonic-buildimage#6029

- What I did
Changes:
-- Set leaf-list to empty list while port breakout, because deletions
are not done to fields once set.

- How I did it
Set list to empty while DPB.

- How to verify it
Build time tests are changes accordingly. PKGs build fine.

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

@jleveque
Copy link
Contributor

Retest this please

@zhenggen-xu
Copy link
Collaborator

retest this please

1 similar comment
@zhenggen-xu
Copy link
Collaborator

retest this please

Praveen Chaudhary added 2 commits January 7, 2021 15:50
Changes:
-- Set leaf-list to empty list while port breakout, because deletions
are not done to fields once set.
-- Minor changes in test file.

Signed-off-by: Praveen Chaudhary<[email protected]>
1.) Print whenever doPrint is true, it is needed for all error cases.
2.) Use deepcopy.
3.) Fix tests to accommodate empty string ports of ACL.
4.) Rebase.

Signed-off-by: Praveen Chaudhary<[email protected]>
@praveen-li praveen-li force-pushed the set_leaf_list_empty branch from 25b2cf1 to 4cf009a Compare January 8, 2021 06:41
@lgtm-com
Copy link

lgtm-com bot commented Jan 8, 2021

This pull request introduces 1 alert when merging 4cf009a into 0a4365a - view on LGTM.com

new alerts:

  • 1 for Unused import

And handle the case where configDb stores [] as [""].

Signed-off-by: Praveen Chaudhary<[email protected]>
@praveen-li
Copy link
Member Author

retest this please

@zhenggen-xu
Copy link
Collaborator

retest this please

@qiluo-msft
Copy link
Contributor

qiluo-msft commented Jan 21, 2021

You mentioned "Right now it is not verified because Utils is not build PY3 yet on Azure Master." I think the py3 build is ready. #Closed

@praveen-li
Copy link
Member Author

You mentioned "Right now it is not verified because Utils is not build PY3 yet on Azure Master." I think the py3 build is ready.

Fixed: Ideally, it should say, Build depends on #6029

@lguohan lguohan merged commit f1522b9 into sonic-net:master Jan 22, 2021
anand-kumar-subramanian pushed a commit to anand-kumar-subramanian/sonic-utilities that referenced this pull request Mar 2, 2021
…onic-net#1268)

-- Set leaf-list to empty list while port breakout, because deletions
are not done to fields once set.
-- Minor changes in test file.

Signed-off-by: Praveen Chaudhary <[email protected]>
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.

5 participants