network-manager renderer does not honour IPv6 default route subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
High
|
James Falcon |
Bug Description
Hello,
When using the following network configuration to setup an IPv6 network :
# cat network_config.yaml
version: 2
ethernets:
ens2:
addresses:
- {redacted IPv6 address}/64
routes:
- to: ::/0
via: fe80::dc00:
The network-manager configuration generated does not honour the /0 in the to: statement and generates a configuration with a /64 subnet as can be seen here :
# cloud-init devel net-convert -p network_config.yaml -k yaml -d. -D centos -O network-manager
Read input format 'yaml' from '/tmp/network_
Wrote output format 'network-manager' to './'
# cat etc/NetworkMana
# Generated by cloud-init. Changes will be lost.
[connection]
id=cloud-init ens2
uuid=260f75fb-
type=ethernet
interface-name=ens2
[user]
org.freedesktop
[ethernet]
[ipv6]
method=manual
may-fail=false
address1=
route1=
^^^^
As seen here the subnet is /64 and not the /0 found in the configuration.
This has been tested on Debian using 22.4.2-1
Thanks for the bug report. I have reproduced the behavior.