network: expose Describe Varlink, use for networkctl list & status
Both `list` and `status` with `--json=pretty|short` show the description. It is fetched via D-Bus by org.freedesktop.network1.Manager.Describe This change exposes the same data via Varlink API `io.systemd.Network.Describe` and migrates networkctl list and status commands to use Varlink API. Update GetStates IDL to use enums for link states.
This commit is contained in:
committed by
Yu Watanabe
parent
7240ec54ea
commit
dd2934d44e
@@ -185,6 +185,11 @@ varlinkctl info /run/systemd/io.systemd.Manager
|
||||
varlinkctl introspect /run/systemd/io.systemd.Manager io.systemd.Manager
|
||||
varlinkctl call /run/systemd/io.systemd.Manager io.systemd.Manager.Describe '{}'
|
||||
|
||||
# test io.systemd.Network
|
||||
varlinkctl info /run/systemd/netif/io.systemd.Network
|
||||
varlinkctl introspect /run/systemd/netif/io.systemd.Network io.systemd.Network
|
||||
varlinkctl call /run/systemd/netif/io.systemd.Network io.systemd.Network.Describe '{}'
|
||||
|
||||
# test io.systemd.Unit
|
||||
varlinkctl info /run/systemd/io.systemd.Manager
|
||||
varlinkctl introspect /run/systemd/io.systemd.Manager io.systemd.Unit
|
||||
|
||||
Reference in New Issue
Block a user