cockpit icon indicating copy to clipboard operation
cockpit copied to clipboard

Networking: show networkd status

Open psztoch opened this issue 2 years ago • 3 comments

Page: Status

Add initial support for systemd-networkd.

I encounter more and more servers where networkd is enabled. NetworkManager and networkd are often running simultaneously.

If networkd is enabled then information from this service should be displayed: State: routable Online state: online Address: 192.168.109.16 on end0 Gateway: 192.168.109.1 on end0 DNS: 192.168.3.24 192.168.3.25 1.1.1.1 Search Domains: example.com

I know I can't count on editing support for networkd. But at least the overall status of the networkd service and network connection is needed.

psztoch avatar Sep 27 '23 12:09 psztoch

See issue #17040 for a longer discussion. TL/DR: networkd is not designed for an interactive UI like Cockpit, it has no API. (This is not a deficiency, but a design decision). Showing read-only information is fine of course.

Note that we won't work on this in the cockpit team, but we'll gladly help interested contributors.

martinpitt avatar Sep 29 '23 05:09 martinpitt

networkd is not designed for an interactive UI like Cockpit, it has no API

It does seem to have a D-Bus API now, although I haven't confirmed that it's enough to cover what is currently needed from NetworkManager

https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.network1.html

jokeyrhyme avatar Mar 20 '24 23:03 jokeyrhyme

Please start to list network interfaces, address and status. Configuration page may be done in second stage.

psztoch avatar Apr 23 '24 07:04 psztoch