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

Deleting a switch port settings object can cause dangling references #6874

Open
internet-diglett opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
networking Related to the networking.

Comments

@internet-diglett
Copy link
Contributor

Currently the switch port configuration process is as follows:

  1. an operator defines a desired configuration via switch-port-settings
  2. the operator then applies the defined configuration via switch-port-settings apply

However, if an operator decides to delete a defined configuration object, we do not currently check to see if it is "in use" or "applied" to any switch ports. This means you can delete the configuration and the RPWs will then attempt to apply a nonexistent configuration to the switch port.

To resolve this bug, we should probably update the transaction to check to see if a configuration is in use before deleting it.

@internet-diglett internet-diglett added the networking Related to the networking. label Oct 15, 2024
@internet-diglett internet-diglett self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
networking Related to the networking.
Projects
None yet
Development

No branches or pull requests

1 participant