ovs: only finish waiting for a link when we actually got one

https://bugzilla.redhat.com/show_bug.cgi?id=1546659
(cherry picked from commit 7af1bc7cf0)
This commit is contained in:
Lubomir Rintel 2018-06-14 17:14:50 +02:00
parent ce5b8ac8a4
commit 00bdd67e08

View file

@ -118,7 +118,7 @@ link_changed (NMDevice *device,
{
NMDeviceOvsInterfacePrivate *priv = NM_DEVICE_OVS_INTERFACE_GET_PRIVATE (device);
if (priv->waiting_for_interface) {
if (pllink && priv->waiting_for_interface) {
priv->waiting_for_interface = FALSE;
nm_device_bring_up (device, TRUE, NULL);
nm_device_activate_schedule_stage3_ip_config_start (device);