Hello,

there seems to be a patch available to fix this bug:

https://github.com/canonical/cloud-init/commit/f75be2ebe15b0dc78092fe47b1ef8d506607e9da

The earliest official release of cloud-init that includes this fix is cloud-init version 23.1

To test this you can use this comand to simulate the config generation:
cloud-init devel net-convert -D debian -p /path/to/network-config.yaml -k yaml -d /some/outputdir/ -O networkd

With the config from #10 (after adding a missing "'" to the ipv6 gateway address) this would result in this working systemd .network file:
[Address]
Address=192.0.2.60/24

[Address]
Address=2001:db8:aaa:bbb::ccc/64

[Match]
MACAddress=ff:ff:ff:ff:ff:ff
Name=eth0

[Network]
DHCP=no
DNS=127.0.0.1

[Route]
Gateway=192.0.2.62

[Route]
Gateway=2001:db8:aaa:bbb::ddd

Would it be possible to backport this to stable?

Attachment: smime.p7s
Description: Kryptografische S/MIME-Signatur

Reply via email to