summaryrefslogtreecommitdiff
path: root/src/devices/ovs/nm-ovsdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/ovs/nm-ovsdb.c')
-rw-r--r--src/devices/ovs/nm-ovsdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/ovs/nm-ovsdb.c b/src/devices/ovs/nm-ovsdb.c
index 78152cd8c5..149a152af8 100644
--- a/src/devices/ovs/nm-ovsdb.c
+++ b/src/devices/ovs/nm-ovsdb.c
@@ -12,6 +12,7 @@
#include "nm-glib-aux/nm-jansson.h"
#include "nm-glib-aux/nm-str-buf.h"
+#include "nm-config.h"
#include "nm-core-utils.h"
#include "nm-core-internal.h"
#include "devices/nm-device.h"
@@ -2277,6 +2278,9 @@ ovsdb_cleanup_initial_interfaces(NMOvsdb *self)
NMUtilsUserData * data;
GHashTableIter iter;
+ if (!nm_config_get_first_start(nm_config_get()))
+ return;
+
if (priv->cleanup_done)
return;
priv->cleanup_done = TRUE;