ipv6 static routes configured for eni are incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
static routes rendered for eni configuration are not correct
example:
config:
- mac_address: aa:12:bc:34:ee:ac
name: eno3
subnets:
- address: fd00::12/64
gateway: fd00::1
ipv6: true
routes:
- netmask: '32'
network: 'fd00:12::'
gateway: fd00::2
type: static
type: physical
version: 1
Cloud init renders:
"""
auto lo
iface lo inet loopback
auto eno3
iface eno3 inet6 static
address fd00::12/64
dns-nameservers fd00:2::15
gateway fd00::1
post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true
pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true
"""
but the post-up/pre-down commands are incorrect (tested, even when replacing the 32 netmask by ffff:ffff::)
One working version
"""
post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true
pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true
"""
Fix proposal available here
https:/
Related branches
- Ryan Harper: Approve
- Server Team CI bot: Approve (continuous-integration)
- Dan Watkins: Abstain
-
Diff: 233 lines (+143/-20)2 files modifiedcloudinit/net/eni.py (+11/-5)
tests/unittests/test_net.py (+132/-15)
description: | updated |
This bug is fixed with commit 22e33293 to cloud-init on branch master. /git.launchpad. net/cloud- init/commit/ ?id=22e33293
To view that commit see the following URL:
https:/