# NETPLAN-DBUS - daemon to access Netplan functionality via a D-Bus API - man(8) - [phpMan]

[_NETPLAN-DBUS_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-DBUS/8/markdown)                                                                      [_NETPLAN-DBUS_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-DBUS/8/markdown)

## NAME
       **netplan-dbus **- daemon to access Netplan functionality via a D-Bus API

## SYNOPSIS
### netplan-dbus

## DESCRIPTION
       **netplan-dbus **is a D-Bus daemon, providing **io.netplan.Netplan **on the system bus.  The **/io/net‐**
       **plan/Netplan **object provides an **io.netplan.Netplan **interface, offering the following methods:

       • **Apply() -> b**: calls **netplan apply **and returns a success or failure status.

       • **Generate() -> b**: calls **netplan generate **and returns a success or failure status.

       • **Info()  ->  a(sv)**: returns a dictionary "Features -> as", containing an array of all avail‐
         able feature flags.

       • **Config() -> o**: prepares a new configuration object as  **/io/netplan/Netplan/config/<ID>**,  by
         copying the current state from **/{etc,run,lib}/netplan/*.yaml**.

       The  **/io/netplan/Netplan/config/<ID>  **objects  provide a **io.netplan.Netplan.Config **interface,
       offering the following methods:

       • **Get() -> s**: calls **netplan get --root-dir=/run/netplan/config-ID all **and returns the  merged
         YAML configuration of the the given configuration object's state

       • **Set(s:CONFIG_DELTA,  s:ORIGIN_HINT) -> b**: calls **netplan set --root-dir=/run/netplan/config-**
         **ID --origin-hint=ORIGIN_HINT CONFIG_DELTA**

         **CONFIG_DELTA **can be something like: **network.ethernets.eth0.dhcp4=true **and  **ORIGIN_HINT  **can
         be  something like: **70-snapd **(it will then write the configuration to **70-snapd.yaml**).  Once
         **Set() **is called on a configuration object, all other current and future  configuration  ob‐
         jects  are being invalidated and cannot **Set() **or **Try()/Apply() **anymore, due to this pending
         dirty state.  After the dirty configuration object is rejected via **Cancel()**, the other con‐
         figuration objects are valid again.  If the dirty configuration object is accepted via  **Ap‐**
         **ply()**,  newly created configuration objects will be valid, while the older states will stay
         invalid.

       • **Try(u:TIMEOUT_SEC) -> b**: replaces the main Netplan configuration  with  this  configuration
         object's state and calls **netplan try --timeout=TIMEOUT_SEC**.

       • **Cancel()  ->  b**:  rejects  a  currently  running **Try() **attempt on this configuration object
         and/or discards the configuration object.

       • **Apply() -> b**: replaces the main Netplan  configuration  with  this  configuration  object's
         state and calls **netplan apply**.

       For  information about the **Apply()**/**Try()**/**Get()**/**Set() **functionality, see [**netplan-apply**(8)](https://www.chedong.com/phpMan.php/man/netplan-apply/8/markdown)/**net‐**
       [**plan-try**(8)](https://www.chedong.com/phpMan.php/man/plan-try/8/markdown)/[**netplan-get**(8)](https://www.chedong.com/phpMan.php/man/netplan-get/8/markdown)/[**netplan-set**(8)](https://www.chedong.com/phpMan.php/man/netplan-set/8/markdown) accordingly.  For details of the configuration file
       format, see [**netplan**(5)](https://www.chedong.com/phpMan.php/man/netplan/5/markdown).

## SEE ALSO
       [**netplan**(5)](https://www.chedong.com/phpMan.php/man/netplan/5/markdown), [**netplan-apply**(8)](https://www.chedong.com/phpMan.php/man/netplan-apply/8/markdown), [**netplan-try**(8)](https://www.chedong.com/phpMan.php/man/netplan-try/8/markdown), [**netplan-get**(8)](https://www.chedong.com/phpMan.php/man/netplan-get/8/markdown), [**netplan-set**(8)](https://www.chedong.com/phpMan.php/man/netplan-set/8/markdown)

## AUTHORS
       Lukas Märdian (<<lukas.maerdian@canonical.com>>).

                                                                                     [_NETPLAN-DBUS_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-DBUS/8/markdown)
