subnet_is_ipv6() function does not work for types ipv6_dhcpv6-stateless|stateful
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cloud-init |
Fix Released
|
Undecided
|
Harald Jensås | ||
Bug Description
def subnet_
"""Common helper for checking network_state subnets for ipv6."""
# 'static6' or 'dhcp6'
if subnet[
# This is a request for DHCPv6.
return True
elif subnet['type'] == 'static' and is_ipv6_
return True
return False
Function return false for ipv6_dhcpv6-
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper: Approve
-
Diff: 41 lines (+18/-2) 2 files modifiedapicloudinit/net/network_state.py (+2/-2)
tests/unittests/test_net.py (+16/-0)
- Ryan Harper: Needs Fixing
-
Diff: 357 lines (+206/-6) 5 files modifiedapicloudinit/net/eni.py (+10/-0)
cloudinit/net/netplan.py (+4/-1)
cloudinit/net/network_state.py (+8/-4)
cloudinit/net/sysconfig.py (+9/-1)
tests/unittests/test_net.py (+175/-0)
This bug is fixed with commit fcc92ad1 to cloud-init on branch master.
To view that commit see the following URL:
https:/
This bug is believed to be fixed in cloud-init in version 19.2-76. If this is still a problem for you, please make a comment and set the state back to New
Thank you.
Tracked in Github Issues as https:/