mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 03:30:09 +01:00
When we do `nmcli networking off` it's shown as state "sleeping". This is confusing, and the only reason is that we share internally code to handle both situations in a similar way. Rename the state to the more generic name "disabled", situation that can happen either because of sleeping or networking off. Clients cannot differentiate the exact reason only with the NMState value, but better that they show "network off" as this is the most common reason that they will be able to display. If the system is suspending, there will be only a short period of time that they can show the state, and showing "network off" is not wrong because that's what NM has done as a response to suspend. In the logs, let's make explicit the exact reason why state is changing to DISABLED: sleeping or networking off. Logs before: manager: disable requested (sleeping: no enabled: yes) manager: NetworkManager state is now ASLEEP Logs after: manager: disable requested (sleeping: no enabled: yes) manager: NetworkManager state is now DISABLED (NEWORKING OFF) State before: $ nmcli general STATE ... asleep ... State after: $ nmcli general STATE ... network off ... |
||
|---|---|---|
| .. | ||
| add-connection-gdbus.c | ||
| add-connection-libnm.c | ||
| get-active-connections-gdbus.c | ||
| get-ap-info-libnm.c | ||
| list-connections-gdbus.c | ||
| list-connections-libnm.c | ||
| meson.build | ||
| monitor-nm-running-gdbus.c | ||
| monitor-nm-state-gdbus.c | ||
| vpn-import-libnm.c | ||