After applying the update I can successfully run 'netplan apply' on a system on which a label exists; this would otherwise fail even if the interface isn't mentioned in YAML:
ubuntu@oddish:~$ cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ubuntu@oddish:~$ ip addr show wlp58s0
2: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 44:85:00:1d:8f:df brd ff:ff:ff:ff:ff:ff
inet 10.3.1.243/22 brd 10.3.3.255 scope global dynamic noprefixroute wlp58s0
valid_lft 14118sec preferred_lft 14118sec
inet 192.168.0.1/24 scope global wlp58s0:0
valid_lft forever preferred_lft forever
inet6 2001:470:b0cc::78b/128 scope global dynamic noprefixroute
valid_lft 28528sec preferred_lft 6928sec
inet6 fe80::3070:bc33:a203:cbc3/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Before:
ubuntu@oddish:~$ sudo netplan apply
Traceback (most recent call last):
File "/usr/sbin/netplan", line 23, in <module>
netplan.main()
File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 106, in command_apply
stderr=subprocess.DEVNULL)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 'net_setup_link', '/sys/class/net/wlp58s0:0']' returned non-zero exit status 1.
After:
ubuntu@oddish:~$ sudo netplan apply
[prompt returns with no error]
Verification-done on disco as well:
After applying the update I can successfully run 'netplan apply' on a system on which a label exists; this would otherwise fail even if the interface isn't mentioned in YAML:
ubuntu@oddish:~$ cat /etc/netplan/ 01-network- manager- all.yaml MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc mq state UP group default qlen 1000 b0cc::78b/ 128 scope global dynamic noprefixroute bc33:a203: cbc3/64 scope link noprefixroute
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ubuntu@oddish:~$ ip addr show wlp58s0
2: wlp58s0: <BROADCAST,
link/ether 44:85:00:1d:8f:df brd ff:ff:ff:ff:ff:ff
inet 10.3.1.243/22 brd 10.3.3.255 scope global dynamic noprefixroute wlp58s0
valid_lft 14118sec preferred_lft 14118sec
inet 192.168.0.1/24 scope global wlp58s0:0
valid_lft forever preferred_lft forever
inet6 2001:470:
valid_lft 28528sec preferred_lft 6928sec
inet6 fe80::3070:
valid_lft forever preferred_lft forever
Before:
ubuntu@oddish:~$ sudo netplan apply netplan" , line 23, in <module> netplan/ netplan/ cli/core. py", line 50, in main run_command( ) netplan/ netplan/ cli/utils. py", line 130, in run_command netplan/ netplan/ cli/commands/ apply.py" , line 43, in run run_command( ) netplan/ netplan/ cli/utils. py", line 130, in run_command netplan/ netplan/ cli/commands/ apply.py" , line 106, in command_apply subprocess. DEVNULL) python3. 7/subprocess. py", line 347, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['udevadm', 'test-builtin', 'net_setup_link', '/sys/class/ net/wlp58s0: 0']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
stderr=
File "/usr/lib/
raise CalledProcessEr
subprocess.
After:
ubuntu@oddish:~$ sudo netplan apply
[prompt returns with no error]