NetworkManager/src/nmcli
Íñigo Huguet 28e53fed89 nmcli: warn if daemon version mismatch
When updating NetworkManager to a new version, normally the service is
not restarted by the installer to avoid interrupting networking.
However, next nmcli invocation will use the updated version, but against
the older version of the daemon that is still running. Although this is
suposed to work, it is advisable that nmcli and daemon's versions are
the same. Emit a warning recommending restarting the daemon.

Add nmcli test to check the new feature. To avoid breaking the existing
tests, test-networkmanager-service now reports the same version than the
running nmcli except if it's instructed to report a different one.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1703
(cherry picked from commit fb851f3294)
2023-08-09 16:40:54 +02:00
..
agent.c nmcli: replace all uses of g_print()/g_printerr() with nmc_print()/nmc_printerr() 2023-02-08 10:11:18 +01:00
common.c nmcli: warn if daemon version mismatch 2023-08-09 16:40:54 +02:00
common.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
connections.c nmcli: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:18:22 +02:00
connections.h nmcli/trivial: rename monitor functions in internal header file 2023-02-08 10:11:15 +01:00
devices.c nmcli: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:18:22 +02:00
devices.h nmcli/trivial: rename monitor functions in internal header file 2023-02-08 10:11:15 +01:00
gen-metadata-nm-settings-nmcli.c docs: don't generate <description> tag in "gen-metadata-nm-settings-nmcli" 2023-05-19 12:52:00 +02:00
gen-metadata-nm-settings-nmcli.xml.in libnm/docs: better descripe "ipv[46].dns-options" in man nm-settings-nmcli 2023-06-12 10:01:23 +02:00
general.c nmcli: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:18:22 +02:00
meson.build nmcli: rename "generate-docs-nm-settings-nmcli" to "gen-metadata-nm-settings-nmcli" 2022-10-31 09:11:30 +01:00
nmcli-completion nmcli-completion: fix support for embedded quote characters 2022-08-04 08:59:01 +02:00
nmcli.c nmcli: move offline flag from NmCli to NmcConfig struct 2023-07-17 12:56:03 +02:00
nmcli.h nmcli: move offline flag from NmCli to NmcConfig struct 2023-07-17 12:56:03 +02:00
polkit-agent.c nmcli: replace all uses of g_print()/g_printerr() with nmc_print()/nmc_printerr() 2023-02-08 10:11:18 +01:00
polkit-agent.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00
settings.c nmcli: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:18:22 +02:00
settings.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
utils.c nmcli: warn if daemon version mismatch 2023-08-09 16:40:54 +02:00
utils.h nmcli: warn if daemon version mismatch 2023-08-09 16:40:54 +02:00

nmcli

The command line user interface of NetworkManager. It uses the D-Bus API of NetworkManager (via libnm).

See:

  • man 1 nmcli ([www])
  • man 7 nmcli-examples ([www])
  • man 5 nm-settings-nmcli ([www])

Try also with bash-completion!