[systemd-devel] networkd: dbus API for networkd runtime configuration.

Hariharasubramanian Ramasubramanian hramasub at in.ibm.com
Mon Dec 7 06:26:00 PST 2015


Hi Tom/Lennart,

I am interested in extending networkd with dbus API for runtime
configuration of interfaces.

This thead
(http://lists.freedesktop.org/archives/systemd-devel/2015-May/032136.html)
started the discussion on the requirements of the dbus interfaces.
I would like to explore this further.

For a start, I hacked the code from networkd-dhcp4.c to implement a
SetAddress method on the org.freedesktop.network1.Network interface:
 /* index, IP, netmask, family, flags, scope, gateway */
SD_BUS_METHOD("SetAddress", "yssyyys", "x", method_set_address,
SD_BUS_VTABLE_UNPRIVILEGED),

The goal is to have the user space app(s) in our system to make
link/network configuration changes by calling the dbus API *instead of*
making changes to networkd config files.

Please revert back with your views/ideas.

thanks in advance,
Hari !

Hariharasubramanian R.
Power Firmware Development
IBM India Systems & Technology Lab, Bangalore, India
Phone:  +91 80 4025 6950
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151207/003926fc/attachment.html>


More information about the systemd-devel mailing list