core/cli: add missing device state-reason to string conversions
for NM_DEVICE_STATE_REASON_PARENT_CHANGED
and NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED
Fixes: cd3df12c8f
This commit is contained in:
@@ -708,6 +708,12 @@ nmc_device_reason_to_string (NMDeviceStateReason reason)
|
||||
case NM_DEVICE_STATE_REASON_NEW_ACTIVATION:
|
||||
return _("New connection activation was enqueued");
|
||||
|
||||
case NM_DEVICE_STATE_REASON_PARENT_CHANGED:
|
||||
return _("The device's parent changed");
|
||||
|
||||
case NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED:
|
||||
return _("The device parent's management changed");
|
||||
|
||||
default:
|
||||
/* TRANSLATORS: Unknown reason for a device state change (NMDeviceStateReason) */
|
||||
return _("Unknown");
|
||||
|
@@ -456,6 +456,8 @@ static const char *reason_table[] = {
|
||||
[NM_DEVICE_STATE_REASON_MODEM_AVAILABLE] = "modem-available",
|
||||
[NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT] = "sim-pin-incorrect",
|
||||
[NM_DEVICE_STATE_REASON_NEW_ACTIVATION] = "new-activation",
|
||||
[NM_DEVICE_STATE_REASON_PARENT_CHANGED] = "parent-changed",
|
||||
[NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED] = "parent-managed-changed",
|
||||
};
|
||||
|
||||
static const char *
|
||||
|
Reference in New Issue
Block a user