Skip to content

[DPB] Enhance the code to shutdown interface before delete ports #2521

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chiourung
Copy link

What I did

Make sure the port shutdown is done before delete the port.

How I did it

Check the admin status on the ports to be deleted.
If the port admin status is up, do shutdown ports.
If the port admin status is down, do nothing.
Wait until the admin status of the ports to be removed on state DB has changed to down.

How to verify it

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)

Signed-off-by: chiourung_huang [email protected]

Enhancement done in this commit:
Check the admin status on the ports to be deleted.
If the port admin status is up, do shutdown ports.
If the port admin status is down, do nothing.
Wait until the admin status of the ports to be removed on state DB has
changed to down.

Signed-off-by: chiourung_huang [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.

1 participant