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

Fix issue with close networks name on up and down command #9640

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

glours
Copy link
Contributor

@glours glours commented Jul 11, 2022

What I did
Regarding the API documentation, the list networks endpoints when used with the name filter may return more than one result

name=<network-name> Matches all or part of a network name.

So we check explicitly the name of the network to be sure we don't forget to create one during up process or to remove one during down process

Related issue
fix #9630

(not mandatory) A picture of a cute animal, if possible in relation with what you did
image

NetworkList API doesn't return the extact name match, so we can retrieve more than one network with a request

Signed-off-by: Guillaume Lours <[email protected]>
@glours glours requested a review from a team July 11, 2022 10:28
@glours glours self-assigned this Jul 11, 2022
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally a few times and wasn't able to replicate the linked issue anymore.

Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

LGTM - is this easy to add a test case for? (I don't actually know much about external networks + Compose 😅)

@glours
Copy link
Contributor Author

glours commented Jul 13, 2022

I'll add a test in a follow up PR

@glours glours merged commit 9fdd7d8 into docker:v2 Jul 13, 2022
@glours glours deleted the fix-close-network-name-issue branch January 11, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Named network is not created anymore
3 participants