NetworkManager/examples
Íñigo Huguet 3355ba9380 core: rename NM_STATE_ASLEEP to NM_STATE_DISABLED
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 ...
2025-09-23 09:17:03 +02:00
..
C core: rename NM_STATE_ASLEEP to NM_STATE_DISABLED 2025-09-23 09:17:03 +02:00
dispatcher examples: add example device handler dispatcher for geneve 2024-02-21 11:49:18 +01:00
js all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
lua/lgi all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-conf.d examples: reword comments in "30-anon.conf" snippet 2022-05-27 15:05:03 +02:00
python typo fix: allows to -> allows one to 2025-03-26 19:22:01 +01:00
ruby docs: update URL for latest online documentation 2021-09-24 14:41:35 +02:00
shell all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00