Skip to content

ovs: don't allow peers with the same name #353

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 2 commits into from
May 2, 2023

Conversation

Image for: Conversation
Copy link
Contributor

daniloegea commented Apr 27, 2023

I found it thanks to a memory leak. If both peers have the same name, the netdef will end up with a netdef->peer_link pointing to itself and netdef->link strdup'ed twice.

Description

Image for: Description

Checklist

Image for: Checklist
  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.
Copy link
Collaborator

slyon left a comment

Choose a reason for hiding this comment

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

lgtm.

But we might want to improve this error message and the other OVS messages a bit.

daniloegea force-pushed the fix_ovs_ports_same_name branch from 70ac977 to 57a711f Compare May 1, 2023 14:21
daniloegea force-pushed the fix_ovs_ports_same_name branch from 57a711f to 0872b17 Compare May 1, 2023 16:43
Copy link
Collaborator

slyon left a comment

Choose a reason for hiding this comment

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

+1

slyon merged commit bb2d088 into canonical:main May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants