[systemd-devel] Antw: [EXT] networkd D-Bus API for link up/down?
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Thu Sep 22 06:17:07 UTC 2022
>>> "Kevin P. Fleming" <kevin at km6g.us> schrieb am 21.09.2022 um 12:48 in Nachricht
<CAE+UdoosOnT_yROxKHKq6BQbTYWZu0SjovgrtDh22WrH9ju-oQ at mail.gmail.com>:
> When the D-Bus API for systemd-networkd was added there were
> indications that it could be used for bringing links up and down.
> However, when I review the API docs at:
>
> https://www.freedesktop.org/software/systemd/man/org.freedesktop.network1.ht
> ml#
>
> I don't see any methods for doing those operations. networkctl uses
> netlink messages for these operations as well.
>
> I want to create a cluster resource agent for Pacemaker which can
> manage networkd links, and using D-Bus would be easier than using
> netlink since there is already D-Bus support in the resource agent for
> systemd units.
Personally I think it's preferable to write a true OCF resource agent rather than using systemd unit in pacemaker.
Pacemaker adds a lot of complexity, and things are much harder to debug.
Regards,
Ulrich
More information about the systemd-devel
mailing list