summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-04-04 19:32:45 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-04-08 09:31:49 +0200
commitb634c5434db1609c6a9b728246634af4d26c6c6b (patch)
tree3e0db7dcc71e4bb0014be87db241534f4b12d0fc
parent0b51fd64478fd698c2b8f864dc215e16bd0a8325 (diff)
downloadNetworkManager-b634c5434db1609c6a9b728246634af4d26c6c6b.tar.gz
Revert "ovs-interface: dissociate the link on disconnection"
This might be too late. This reverts commit 3a55ec63e1295864ecae7f0975796f7793c3b0aa.
-rw-r--r--src/devices/ovs/nm-device-ovs-interface.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/devices/ovs/nm-device-ovs-interface.c b/src/devices/ovs/nm-device-ovs-interface.c
index 87c4b11f97..e3d3f9ee5f 100644
--- a/src/devices/ovs/nm-device-ovs-interface.c
+++ b/src/devices/ovs/nm-device-ovs-interface.c
@@ -118,16 +118,6 @@ link_changed (NMDevice *device,
}
}
-static void
-state_changed (NMDevice *device,
- NMDeviceState new_state,
- NMDeviceState old_state,
- NMDeviceStateReason reason)
-{
- if (new_state <= NM_DEVICE_STATE_DISCONNECTED)
- nm_device_update_from_platform_link (device, NULL);
-}
-
static gboolean
_is_internal_interface (NMDevice *device)
{
@@ -200,7 +190,6 @@ nm_device_ovs_interface_class_init (NMDeviceOvsInterfaceClass *klass)
device_class->is_available = is_available;
device_class->check_connection_compatible = check_connection_compatible;
device_class->link_changed = link_changed;
- device_class->state_changed = state_changed;
device_class->act_stage3_ip_config_start = act_stage3_ip_config_start;
device_class->can_unmanaged_external_down = can_unmanaged_external_down;
}