nmcli, nmcli_force and systemctl wrappers in nmci.process
Add wrappers for nmcli and systemctl, as the usage is high and require special arguments.
-
nmci.process.nmcli()
: prependsnmcli
to command, returns stdout and does all checks, default timeout is 60s -
nmci.process.nmcli_force()
: same asnmci.process.nmcli()
, but ignores all checks (returncode and stderr), returnsRunResult
tuple -
nmci.process.systemctl
: same asnmci.process.nmcli_force()
, but prependssystemctl