"netplan apply --debug" vs "netplan --debug apply"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
Triaged
|
Medium
|
Unassigned |
Bug Description
The output of:
"netplan apply --debug"net and "netplan --debug apply" is very different. One works, one does not but there is no indication that it does not work and the help output is misleading.
netplan apply --help
usage: /usr/sbin/netplan apply [-h] [--debug] [--sriov-only]
Apply current netplan config to running system
optional arguments:
-h, --help show this help message and exit
--debug Enable debug messages
--sriov-only Only apply SR-IOV related configuration and exit
--only-
--state STATE Directory containing previous YAML configuration
But:
$ sudo netplan apply --debug
[no output]
$ sudo netplan --debug apply
** (generate:56613): DEBUG: 20:16:28.101: Processing input file /etc/netplan/
** (generate:56613): DEBUG: 20:16:28.101: starting new processing pass
...
I agree this is confusing and should be fixed! We need to investigate why it is the way it is, I think this is some very old heritage.