These are my subjective judgments. They might bugs, or not. Not tested.
Developers can close this thread at any time.
1
|
if subnet.get("type").endswith("6") or is_ipv6_address( |
If this line also applies to network config v1. The v1 types ipv6_dhcpv6-stateful, ipv6_dhcpv6-stateless, and ipv6_slaac results false here
Obviously, it is handled well here:
|
if subnet["type"].endswith("6") or subnet["type"] in IPV6_DYNAMIC_TYPES: |
2
As far as I know, in the Subnet type of network configuration, dhcp6 is equivalent to ipv6_dhcpv6-stateful.
However, in the following places, dhcp6 and ipv6_dhcpv6-stateful are treated differently, resulting in different outcomes:
|
method_map = { |
|
"static": "manual", |
|
"static6": "manual", |
|
"dhcp6": "auto", |
|
"ipv6_slaac": "auto", |
|
"ipv6_dhcpv6-stateless": "auto", |
|
"ipv6_dhcpv6-stateful": "dhcp", |
|
"dhcp4": "auto", |
|
"dhcp": "auto", |
|
} |
|
if subnet_type in [ |
|
"ipv6_dhcpv6-stateful", |
|
"ipv6_dhcpv6-stateless", |
|
"ipv6_slaac", |
|
]: |
|
subnet_type == "ipv6_dhcpv6-stateful" |
The last one I previously reported #4615
There might be similar issues elsewhere.
3
|
if ( |
|
subnet["type"] == "dhcp4" |
|
or subnet["type"] == "dhcp6" |
|
or subnet["type"] == "ipv6_dhcpv6-stateful" |
|
): |
Similar issues.
dhcp is equivalent to
dhcp4.
Should add
dhcp here
4
|
if network_state.use_ipv6: |
|
netcfg.append("NETWORKING_IPV6=yes") |
|
netcfg.append("IPV6_AUTOCONF=no") |
IPV6_AUTOCONF=no is set here. It should be enabled by default.
These are my subjective judgments. They might bugs, or not. Not tested.
Developers can close this thread at any time.
1
cloud-init/cloudinit/net/network_state.py
Line 406 in d7eb828
If this line also applies to network config v1. The v1 types
ipv6_dhcpv6-stateful,ipv6_dhcpv6-stateless, andipv6_slaacresultsfalsehereObviously, it is handled well here:
cloud-init/cloudinit/net/__init__.py
Line 1301 in d7eb828
2
As far as I know, in the Subnet type of network configuration,
dhcp6is equivalent toipv6_dhcpv6-stateful.However, in the following places,
dhcp6andipv6_dhcpv6-statefulare treated differently, resulting in different outcomes:cloud-init/cloudinit/net/network_manager.py
Lines 137 to 146 in d7eb828
cloud-init/cloudinit/net/network_manager.py
Lines 167 to 171 in d7eb828
cloud-init/cloudinit/net/networkd.py
Line 211 in d7eb828
cloud-init/cloudinit/net/sysconfig.py
Line 439 in d7eb828
The last one I previously reported #4615
There might be similar issues elsewhere.
3
cloud-init/cloudinit/net/eni.py
Lines 577 to 581 in d7eb828
Similar issues.
dhcpis equivalent todhcp4.Should add
dhcphere4
cloud-init/cloudinit/net/sysconfig.py
Lines 1119 to 1121 in d7eb828
IPV6_AUTOCONF=nois set here. It should be enabled by default.