diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2020-01-08 11:30:17 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2020-01-08 10:30:17 -0700 |
commit | dacdd30080bd8183d1f1c1dc9dbcbc8448301529 (patch) | |
tree | ba79741418d3fb6f5c779fe37674263a3545c131 /cloudinit/net/network_state.py | |
parent | 6aa14766a7039333aac6f75dc442fa58dc4e692f (diff) | |
download | vyos-cloud-init-dacdd30080bd8183d1f1c1dc9dbcbc8448301529.tar.gz vyos-cloud-init-dacdd30080bd8183d1f1c1dc9dbcbc8448301529.zip |
net: fix rendering of 'static6' in network config (#77)
* net: fix rendering of 'static6' in network config
A V1 static6 network typo was misrendered in eni, it's not valid.
It was ignored in sysconfig and netplan. This branch fixes eni,
updates sysconfig, netplan to render it correctly and adds unittests
for all cases.
Reported-by: Raphaƫl Enrici
LP: #1850988
* net: add comment about static6 type in subnet_is_ipv6
Co-authored-by: Chad Smith <blackboxsw@gmail.com>
Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
Diffstat (limited to 'cloudinit/net/network_state.py')
-rw-r--r-- | cloudinit/net/network_state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/network_state.py b/cloudinit/net/network_state.py index f3e8e250..9b126100 100644 --- a/cloudinit/net/network_state.py +++ b/cloudinit/net/network_state.py @@ -941,7 +941,7 @@ def subnet_is_ipv6(subnet): # 'static6', 'dhcp6', 'ipv6_dhcpv6-stateful', 'ipv6_dhcpv6-stateless' or # 'ipv6_slaac' if subnet['type'].endswith('6') or subnet['type'] in IPV6_DYNAMIC_TYPES: - # This is a request for DHCPv6. + # This is a request either static6 type or DHCPv6. return True elif subnet['type'] == 'static' and is_ipv6_addr(subnet.get('address')): return True |