containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.
Apache License 2.0
2.21k stars 784 forks source link

IP Allocator Does Not Support IPv4 /31s #908

Open mfeit-internet2 opened 1 year ago

mfeit-internet2 commented 1 year ago

Many network operators, including the one where I work, use IPv4 /31 blocks for point-to-point links instead of /30s because it reduces address consumption by 50%. The IP allocator treats /31s as too small to be usable, which means we can't deploy containers with point-to-point links on network interfaces.

This issue has been opened to put a flag in the sand; I will be developing a patch to fix this and will submit a PR once it has been wrung out.

Side note: I corrected a similar probem in Docker two years ago.