NETPLAN-DBUS(8)

๐Ÿ’… netplan-dbus(8) โ€” daemon to access Netplan functionality via a D-Bus API ๐Ÿ’…

okay bestie, welcome to the System Managerโ€™s Manual page for netplan-dbus(8) โ€” the D-Bus daemon that lets stuff talk to Netplan like itโ€™s in the group chat. ๐Ÿ’ฌโœจ

๐ŸŒธ 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/netplan/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 available 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 an 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 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 objects 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 configuration objects are valid again. If the dirty configuration object is accepted via Apply(), 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)/netplan-try(8)/netplan-get(8)/netplan-set(8) accordingly. For details of the configuration file format, see netplan(5).

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

๐ŸŒท AUTHORS ๐ŸŒท

Lukas Mรคrdian (lukas.maerdian@canonical.com).


thatโ€™s a wrap, bestie! Footer vibe check: the originalโ€™s last line was just NETPLAN-DBUS(8), with no separate source/version/date line in this page โ€” so consider this your cute sign-off. stay iconic. ๐Ÿ’…๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from