devices/ovs: expose slaves on D-Bus for OVS bridges and ports
This commit is contained in:
@@ -7,6 +7,16 @@
|
|||||||
-->
|
-->
|
||||||
<interface name="org.freedesktop.NetworkManager.Device.OvsBridge">
|
<interface name="org.freedesktop.NetworkManager.Device.OvsBridge">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Slaves:
|
||||||
|
|
||||||
|
Array of object paths representing ports which are currently enslaved to
|
||||||
|
this bridge.
|
||||||
|
|
||||||
|
Since: 1.14
|
||||||
|
-->
|
||||||
|
<property name="Slaves" type="ao" access="read"/>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
PropertiesChanged:
|
PropertiesChanged:
|
||||||
@properties: A dictionary mapping property names to variant boxed values
|
@properties: A dictionary mapping property names to variant boxed values
|
||||||
|
@@ -7,6 +7,16 @@
|
|||||||
-->
|
-->
|
||||||
<interface name="org.freedesktop.NetworkManager.Device.OvsPort">
|
<interface name="org.freedesktop.NetworkManager.Device.OvsPort">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Slaves:
|
||||||
|
|
||||||
|
Array of object paths representing interfaces which are currently enslaved to
|
||||||
|
this port.
|
||||||
|
|
||||||
|
Since: 1.14
|
||||||
|
-->
|
||||||
|
<property name="Slaves" type="ao" access="read"/>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
PropertiesChanged:
|
PropertiesChanged:
|
||||||
@properties: A dictionary mapping property names to variant boxed values
|
@properties: A dictionary mapping property names to variant boxed values
|
||||||
|
@@ -120,7 +120,8 @@ nm_device_state_reason_check (NMDeviceStateReason reason)
|
|||||||
#define NM_DEVICE_PARENT "parent"
|
#define NM_DEVICE_PARENT "parent"
|
||||||
|
|
||||||
/* the "slaves" property is internal in the parent class, but exposed
|
/* the "slaves" property is internal in the parent class, but exposed
|
||||||
* by the derived classes NMDeviceBond, NMDeviceBridge and NMDeviceTeam. */
|
* by the derived classes NMDeviceBond, NMDeviceBridge, NMDeviceTeam,
|
||||||
|
* NMDeviceOvsBridge and NMDeviceOvsPort. */
|
||||||
#define NM_DEVICE_SLAVES "slaves" /* partially internal */
|
#define NM_DEVICE_SLAVES "slaves" /* partially internal */
|
||||||
|
|
||||||
#define NM_DEVICE_TYPE_DESC "type-desc" /* Internal only */
|
#define NM_DEVICE_TYPE_DESC "type-desc" /* Internal only */
|
||||||
|
@@ -134,6 +134,9 @@ nm_device_ovs_bridge_init (NMDeviceOvsBridge *self)
|
|||||||
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_bridge = {
|
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_bridge = {
|
||||||
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
|
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
|
||||||
NM_DBUS_INTERFACE_DEVICE_OVS_BRIDGE,
|
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 (
|
.signals = NM_DEFINE_GDBUS_SIGNAL_INFOS (
|
||||||
&nm_signal_info_property_changed_legacy,
|
&nm_signal_info_property_changed_legacy,
|
||||||
),
|
),
|
||||||
|
@@ -180,6 +180,9 @@ nm_device_ovs_port_init (NMDeviceOvsPort *self)
|
|||||||
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_port = {
|
static const NMDBusInterfaceInfoExtended interface_info_device_ovs_port = {
|
||||||
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
|
.parent = NM_DEFINE_GDBUS_INTERFACE_INFO_INIT (
|
||||||
NM_DBUS_INTERFACE_DEVICE_OVS_PORT,
|
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 (
|
.signals = NM_DEFINE_GDBUS_SIGNAL_INFOS (
|
||||||
&nm_signal_info_property_changed_legacy,
|
&nm_signal_info_property_changed_legacy,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user