-
Lukas Märdian authored
This implements the io.netplan.Netplan /io/netplan/Netplan io.netplan.Netplan Config method, which creates new /io/netplan/Netplan/config/<ID> objects, providing the following methods: io.netplan.Netplan.Config Get io.netplan.Netplan.Config Set io.netplan.Netplan.Config Try io.netplan.Netplan.Config Apply io.netplan.Netplan.Config Cancel And also the io.netplan.Netplan.Config Changed signal. Each new config object will copy the current global netplan state (from /etc/netplan) to /tmp/netplan-config-<ID> then Get/Set can be called on that temp directory. On Apply/Try it will backup the current global config to /tmp/netplan-config-BACKUP and copy over the current config state to /etc/netplan. On revert the data from /tmp/netplan-config-BACKUP will be restored.