-
Notifications
You must be signed in to change notification settings - Fork 583
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
overlord/ifacestate: automatically rename connections on core snap #3160
Conversation
This patch completes the rename cycle by renaming stored connections to and from the core snap with clashing plug and slot name. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This branch depends on #3154 |
overlord/ifacestate/helpers.go
Outdated
oldPlugRef := interfaces.PlugRef{Snap: "core", Name: plugName} | ||
oldConnRef := interfaces.ConnRef{PlugRef: oldPlugRef, SlotRef: slotRef} | ||
oldID := oldConnRef.ID() | ||
// new connection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason not to have everything from here down inside the if
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(FTR I think it's alright, if a little surprising, to have it this way instead of inside the if; don't change it if you'd only start the tests over for this change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, good point. I'll make that happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I think we want @chipaca suggestion in.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
The network-bind plug is no longer present on the core snap so we don't need to rename it anymore. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This patch completes the rename cycle by renaming stored connections
to and from the core snap with clashing plug and slot name.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com