cli: add alias to nmcli device connect|disconnect

nmcli now accepts `nmcli device up|down` which works the same way as
`nmcli device connect|disconnect`

I also edited man pages of nmcli with new options.
This commit is contained in:
Vojtech Bubela
2021-06-23 15:59:10 +02:00
committed by Thomas Haller
parent 478754a504
commit 5cd1b2669d
2 changed files with 29 additions and 2 deletions

View File

@@ -5032,6 +5032,8 @@ nmc_command_func_device(const NMCCommand *cmd, NmCli *nmc, int argc, const char
{"lldp", do_device_lldp, usage_device_lldp, FALSE, FALSE},
{"modify", do_device_modify, usage_device_modify, TRUE, TRUE},
{NULL, do_devices_status, usage, TRUE, TRUE},
{"up", do_device_connect, usage_device_connect, TRUE, TRUE},
{"down", do_devices_disconnect, usage_device_disconnect, TRUE, TRUE},
};
next_arg(nmc, &argc, &argv, NULL);