Hi Nick,

Thanks for the feedback and keep sponsoring this.

Yes, the actual routes created are the same, this PR for cloud-init fixes the 
netplan change:
https://github.com/canonical/cloud-init/pull/1794

In the unittest: 
https://github.com/canonical/cloud-init/pull/1794/files#diff-5f2dee2a7c430ef84faae149c70e4269685133db03a62c3bca9f3f295cb44ac6

"gateway{4,6}" is replaced directly by "routes", and used to config the
network route.


Regarding the test case:
initramfs-tools only generates netplan config. After booting up the system, 
cloud-init will be executed by systemd and then cloud-init will read the 
netplan config.

If we need to check the return value from cloud-init in the test case,
we might need to include cloud-init package, but I think it might not be
proper to do this in initramfs-tools.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2093164

Title:
  initramfs-tools generates deprecated netplan config gateway4 and
  gateway6

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2093164/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to