Skip to content

Fix bridge conflict detection #20

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 4 commits into from
Jun 29, 2021
Merged

Conversation

devplayer0
Copy link
Owner

Bridge conflict detection was broken since it would check bridge ranges that use the null IPAM driver (e.g. this very plugin!). null specifies a subnet of 0.0.0.0/0, which would obviously pass any IP range check. Any network using null or a /0 mask will be skipped, and other docker-net-dhcp networks' bridges will be compared in addition.

If the user wants to re-use the same bridge across multiple networks (not really recommended) or for some reason the conflict detection is still wrong, the new ignore_conflicts option can be used.

Fixes #18.

@devplayer0 devplayer0 merged commit 4b61eb0 into master Jun 29, 2021
@devplayer0 devplayer0 deleted the fix-bridge-use-detection branch June 29, 2021 10:56
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.

Unable to create more than one network of this type.
1 participant