"netplan apply --debug" vs "netplan --debug apply"

Bug #1949895 reported by Michael Vogt
20
This bug affects 4 people
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]
                               [--only-ovs-cleanup] [--state STATE]

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-ovs-cleanup Only clean up old OpenVSwitch interfaces and exit
  --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/01-network-manager-all.yaml..
** (generate:56613): DEBUG: 20:16:28.101: starting new processing pass
...

Revision history for this message
Lukas Märdian (slyon) wrote :

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.

Changed in netplan:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Lukas Märdian (slyon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.