all: add OVSDB connection failure device state reason
This commit is contained in:
@@ -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) */
|
||||
|
@@ -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;
|
||||
|
||||
/**
|
||||
|
@@ -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) \
|
||||
|
Reference in New Issue
Block a user