It would be great if the dbus API would support multi-line Set().
I did a draft here https://github.com/canonical/netplan/pull/210
Gustavo actually suggested to just pass the yaml as single line json, that would make my PR pointless.
Single line JSON is already supported (below the "network" key), like this:
$ busctl call io.netplan.Netplan /io/netplan/Netplan/config/2HG220 io.netplan.Netplan.Config Set ss "network={ethernets:{eth42:{dhcp4: true, dhcp6: false}}}" ""
Would that work for you?
Hey @mvo! Is what Lukas proposed good enough for you? Or is this feature-request still valid?
I think we are fine with the json based setting.
Bug watches keep track of this bug in other bug trackers.
I did a draft here https:/ /github. com/canonical/ netplan/ pull/210