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โ callsnetplan applyand returns a success or failure status.Generate() -> bโ callsnetplan generateand 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โ callsnetplan get --root-dir=/run/netplan/config-ID alland returns the merged YAML configuration of the given configuration objectโs state.Set(s:CONFIG_DELTA, s:ORIGIN_HINT) -> bโ callsnetplan set --root-dir=/run/netplan/config-ID --origin-hint=ORIGIN_HINT CONFIG_DELTA.CONFIG_DELTAcan be something likenetwork.ethernets.eth0.dhcp4=true, andORIGIN_HINTcan be something like70-snapd(it will then write the configuration to70-snapd.yaml). OnceSet()is called on a configuration object, all other current and future configuration objects are being invalidated and cannotSet()orTry()/Apply()anymore, due to this pending dirty state. After the dirty configuration object is rejected viaCancel(), the other configuration objects are valid again. If the dirty configuration object is accepted viaApply(), 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 callsnetplan try --timeout=TIMEOUT_SEC.Cancel() -> bโ rejects a currently runningTry()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 callsnetplan 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
- arch rolling: netplan 1.2.2-1 ยท GPL-3.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms