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

DPB: Infra code to track dependencies on Port object #1147

Closed

Conversation

vasant17
Copy link
Contributor

@vasant17 vasant17 commented Dec 13, 2019

What I did
Added infrastructure code to track objects dependent on Port.

Why I did it

To support Dynamic PortBreakout feature, we need to support deletion of Port. But before deleting a port, we need to cleanup the objects dependent on Port. For example, VLAN members, ACL polrt list, interfaces, etc.

How I verified it

This code has been used with ACL and VLAN dependency handling code for DPB feature. PRs for those will raised soon. I have verified for both those PRs that existing VS test cases and feature related test cases pass.

Details if related

Before deleting a port, we will check if any module/feature/object is depending on port. If so, we will skip the port and pict the next one in the queue. That is until the dependency are removed, we keep looping the doPortTask. Once all dependencies are removed, we will delete the port.

@vasant17 vasant17 changed the title Infra code to track dependencies on Port object DPB: Infra code to track dependencies on Port object Dec 13, 2019
@zhenggen-xu
Copy link
Collaborator

retest this please!

@lguohan
Copy link
Contributor

lguohan commented Jan 29, 2020

do we need this?

@lguohan
Copy link
Contributor

lguohan commented Jan 29, 2020

discussed with @zhenggen-xu , close it.

@lguohan lguohan closed this Jan 29, 2020
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
* Fix `show queue watermark` command fail

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>

* Fix Python3 copatible issue

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
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.

3 participants