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

lxd/device/nic_ovn: Prevent setting static IPv6 if static IPv4 is not set #12311

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

MusicDin
Copy link
Member

Due to a bug in OVN, we should not allow setting static IPv6 if static IPv4 is not set.

Closes #12297

… set

Signed-off-by: Din Music <din.music@canonical.com>
@tomponline tomponline merged commit b8564e4 into canonical:main Sep 25, 2023
24 checks passed
@xlmnxp
Copy link
Contributor

xlmnxp commented Oct 19, 2023

What about IPv6-only networks?

@MusicDin
Copy link
Member Author

You can create an IPv6 only OVN network if you disable ipv4.dhcp.

lxc network set ovn ipv4.dhcp=false ipv6.address=fd42:1000:1000:1000::1/64

lxc launch ubuntu:22.04 c1 --network ovn

lxc ls
+------+---------+------+-----------------------------------------------+-----------+-----------+
| NAME |  STATE  | IPV4 |                     IPV6                      |   TYPE    | SNAPSHOTS |
+------+---------+------+-----------------------------------------------+-----------+-----------+
| c1   | RUNNING |      | fd42:1000:1000:1000:216:3eff:feca:818f (eth0) | CONTAINER | 0         |
+------+---------+------+-----------------------------------------------+-----------+-----------+

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.

3 participants