summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-10-16 21:32:12 +0200
committerLubomir Rintel <lkundrak@v3.sk>2017-10-26 20:23:03 +0200
commit48d3a28391c7ec1e3d91af5ffc15227794e7dc15 (patch)
tree9e5b2afcd76b0a6fd0d8200337851cb2a9a53b12
parent5b3f8d9c0a964fa9caa5330e2a3441508875a161 (diff)
downloadNetworkManager-48d3a28391c7ec1e3d91af5ffc15227794e7dc15.tar.gz
all: add OVSDB connection failure device state reason
-rw-r--r--clients/common/nm-client-utils.c3
-rw-r--r--libnm-core/nm-dbus-interface.h2
-rw-r--r--src/devices/nm-device.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/clients/common/nm-client-utils.c b/clients/common/nm-client-utils.c
index fa7b720f46..bf4dcc77f3 100644
--- a/clients/common/nm-client-utils.c
+++ b/clients/common/nm-client-utils.c
@@ -399,6 +399,9 @@ nmc_device_reason_to_string (NMDeviceStateReason reason)
return _("The device's parent changed");
case NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED:
return _("The device parent's management changed");
+
+ case NM_DEVICE_STATE_REASON_OVSDB_FAILED:
+ return _("OpenVSwitch database connection failed");
}
/* TRANSLATORS: Unknown reason for a device state change (NMDeviceStateReason) */
diff --git a/libnm-core/nm-dbus-interface.h b/libnm-core/nm-dbus-interface.h
index 7618542697..7f75c84955 100644
--- a/libnm-core/nm-dbus-interface.h
+++ b/libnm-core/nm-dbus-interface.h
@@ -550,6 +550,7 @@ typedef enum {
* @NM_DEVICE_STATE_REASON_NEW_ACTIVATION: New connection activation was enqueued
* @NM_DEVICE_STATE_REASON_PARENT_CHANGED: the device's parent changed
* @NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED: the device parent's management changed
+ * @NM_DEVICE_STATE_REASON_OVSDB_FAILED: problem communicating with OpenVSwitch database
*
* Device state change reason codes
*/
@@ -617,6 +618,7 @@ typedef enum {
NM_DEVICE_STATE_REASON_NEW_ACTIVATION = 60,
NM_DEVICE_STATE_REASON_PARENT_CHANGED = 61,
NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED = 62,
+ NM_DEVICE_STATE_REASON_OVSDB_FAILED = 63,
} NMDeviceStateReason;
/**
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 816c83478e..948ecb4646 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -646,6 +646,7 @@ NM_UTILS_LOOKUP_STR_DEFINE_STATIC (_reason_to_string, NMDeviceStateReason,
NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_NEW_ACTIVATION, "new-activation"),
NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_PARENT_CHANGED, "parent-changed"),
NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED, "parent-managed-changed"),
+ NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_OVSDB_FAILED, "ovsdb-failed"),
);
#define reason_to_string(reason) \