summaryrefslogtreecommitdiff
path: root/src/devices/ovs
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-06-29 22:52:43 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-07-10 13:12:02 +0200
commit8d65f636e1e1692c3043b368390c6f39f8a1466f (patch)
tree876338d3a2cff1a64c2bee3ec1a9b2ba77aa5129 /src/devices/ovs
parent889961f8b6c3a29c93fa01fa9cfae21cf0373af6 (diff)
downloadNetworkManager-8d65f636e1e1692c3043b368390c6f39f8a1466f.tar.gz
devices/ovs: expose slaves on D-Bus for OVS bridges and ports
Diffstat (limited to 'src/devices/ovs')
-rw-r--r--src/devices/ovs/nm-device-ovs-bridge.c3
-rw-r--r--src/devices/ovs/nm-device-ovs-port.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/ovs/nm-device-ovs-bridge.c b/src/devices/ovs/nm-device-ovs-bridge.c
index 5244ca8bfb..2e4d1cbdf8 100644
--- a/src/devices/ovs/nm-device-ovs-bridge.c
+++ b/src/devices/ovs/nm-device-ovs-bridge.c
@@ -134,6 +134,9 @@ nm_device_ovs_bridge_init (NMDeviceOvsBridge *self)
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_bridge = {
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
NM_DBUS_INTERFACE_DEVICE_OVS_BRIDGE,
+ .properties = NM_DEFINE_GDBUS_PROPERTY_INFOS (
+ NM_DEFINE_DBUS_PROPERTY_INFO_EXTENDED_READABLE ("Slaves", "ao", NM_DEVICE_SLAVES),
+ ),
.signals = NM_DEFINE_GDBUS_SIGNAL_INFOS (
&nm_signal_info_property_changed_legacy,
),
diff --git a/src/devices/ovs/nm-device-ovs-port.c b/src/devices/ovs/nm-device-ovs-port.c
index 91cf4f4d8b..a9a2b24a2b 100644
--- a/src/devices/ovs/nm-device-ovs-port.c
+++ b/src/devices/ovs/nm-device-ovs-port.c
@@ -180,6 +180,9 @@ nm_device_ovs_port_init (NMDeviceOvsPort *self)
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_port = {
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
NM_DBUS_INTERFACE_DEVICE_OVS_PORT,
+ .properties = NM_DEFINE_GDBUS_PROPERTY_INFOS (
+ NM_DEFINE_DBUS_PROPERTY_INFO_EXTENDED_READABLE ("Slaves", "ao", NM_DEVICE_SLAVES),
+ ),
.signals = NM_DEFINE_GDBUS_SIGNAL_INFOS (
&nm_signal_info_property_changed_legacy,
),