diff options
author | Dan Williams <dcbw@redhat.com> | 2014-10-09 12:42:29 -0500 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-12-04 12:16:41 +0100 |
commit | 20906ca7a338661776a0a8364e41df9fd0ee3467 (patch) | |
tree | 5193316fb04f0b16aa1ebc901a2da0c77c2212c4 /src/devices/nm-device-bridge.c | |
parent | 4dbaac4ba24ebc8b257fffe5197cc8e362804a58 (diff) | |
download | NetworkManager-20906ca7a338661776a0a8364e41df9fd0ee3467.tar.gz |
core: ensure platform links are compatible with the NMDevice
Ensure the platform link with the same interface name as the
NMDevice is actually compatible with it before using the link
for initialization of device properties. If not, remove the
NMDevice and create a new one since there are kernel resources
with a different type.
Diffstat (limited to 'src/devices/nm-device-bridge.c')
-rw-r--r-- | src/devices/nm-device-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c index 2a2f234c16..e152bb38b9 100644 --- a/src/devices/nm-device-bridge.c +++ b/src/devices/nm-device-bridge.c @@ -475,7 +475,7 @@ nm_device_bridge_class_init (NMDeviceBridgeClass *klass) g_type_class_add_private (object_class, sizeof (NMDeviceBridgePrivate)); - parent_class->connection_type = NM_SETTING_BRIDGE_SETTING_NAME; + NM_DEVICE_CLASS_DECLARE_TYPES (klass, NM_SETTING_BRIDGE_SETTING_NAME, NM_LINK_TYPE_BRIDGE) /* virtual methods */ object_class->get_property = get_property; |