[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Netplan in Debian cloud images



Am 13.07.23 um 22:03 schrieb Ross Vandegrift:
On Thu, Jul 06, 2023 at 01:03:12PM +0200, Lukas Märdian wrote:
I'd like to congratulate on a solid Bookworm release!
With delight I followed your process of switching to the new system-networkd +
Netplan stack [0,1,2,3] and as the maintainer of netplan.io in Debian I did my
very best to deliver a polished (and tested!) netplan.io package.
I know there are currently some autopkgtest failures on Trixie;
I'm working on those!

Thanks for the nice note, and your work on netplan!  And thanks for the
blog post showing off some usage examples - that should be useful for
lots of folks getting started.

Thanks!
FTR, I guess you're referring to the "Netplan and systemd-networkd on Debian
Bookworm" post here:
https://blog.slyon.de/2023/07/10/netplan-and-systemd-networkd-on-debian-bookworm/

I do have some plans to re-structure the netplan.io package a bit, splitting
out a netplan-cli package (Recommends), which should allow to install Netplan
(the actual systemd generator, used at image boot time) without any Python
dependencies.

I started drafting that package split here (it shouldn't affect the cloud images):
https://salsa.debian.org/debian/netplan.io/-/merge_requests/9
But as it needs to go through NEW, I'm waiting for some more reviews before
uploading it into unstable.

Let me know if there's anything else that could improve your use case.
Nice - is there another api or tool to interact with netplan?  Though
honestly, I've never really had to, it's been basically fire and forget
for me.

Yes, there is libnetplan0, providing a C API to Netplan's parser and validation
stages. Furthermore, we're currently working on Python bindings for this API, which
will eventually be deployed as part of a python3-netplan package.
In Ubuntu we're currently using it to improve the Netplan integration with cloud-init
and NetworkManager, to validate YAML input and handle files in /etc/netplan/
programmatically, as briefly outlined in my most recent blog post [1].

-- Lukas

[1] https://blog.slyon.de/2023/07/18/a-declarative-approach-to-linux-networking-with-netplan/


Reply to: