Hm, maybe I'm holding it wrong (again) but I'm not sure this is fully fixed:
$ apt list netplan.io
netplan.io/now 0.103-0ubuntu5~21.04.2 amd64 [installed,local]
$ $ zcat /usr/share/doc/netplan.io/changelog.Debian.gz |head -n 6
netplan.io (0.103-0ubuntu5~21.04.2) hirsute; urgency=medium
* Backport patches from impish:
+ Add d/p/0006-netplan-set-make-it-possible-to-unset-a-whole-devtyp.patch:
Fix unset of a devtype subtree, e.g. "netplan set network.ethernets=null"
(LP: #1942930)
$ netplan get
network:
renderer: NetworkManager
version: 2
netplan set network=null
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 310, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/set.py", line 53, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 310, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/set.py", line 103, in command_set
hints = self.split_tree_by_hint(set_tree)
File "/usr/share/netplan/netplan/cli/commands/set.py", line 59, in split_tree_by_hint
for devtype in network:
TypeError: 'NoneType' object is not iterable
But maybe that is a different bug that needs to be reported differently. Anyway, I can probably work around this one.
Hm, maybe I'm holding it wrong (again) but I'm not sure this is fully fixed: 21.04.2 amd64 [installed,local] doc/netplan. io/changelog. Debian. gz |head -n 6 0ubuntu5~ 21.04.2) hirsute; urgency=medium
$ apt list netplan.io
netplan.io/now 0.103-0ubuntu5~
$ $ zcat /usr/share/
netplan.io (0.103-
* Backport patches from impish: netplan- set-make- it-possible- to-unset- a-whole- devtyp. patch: ethernets= null" netplan" , line 23, in <module> netplan/ netplan/ cli/core. py", line 50, in main run_command( ) netplan/ netplan/ cli/utils. py", line 310, in run_command netplan/ netplan/ cli/commands/ set.py" , line 53, in run run_command( ) netplan/ netplan/ cli/utils. py", line 310, in run_command netplan/ netplan/ cli/commands/ set.py" , line 103, in command_set tree_by_ hint(set_ tree) netplan/ netplan/ cli/commands/ set.py" , line 59, in split_tree_by_hint
+ Add d/p/0006-
Fix unset of a devtype subtree, e.g. "netplan set network.
(LP: #1942930)
$ netplan get
network:
renderer: NetworkManager
version: 2
netplan set network=null
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/
hints = self.split_
File "/usr/share/
for devtype in network:
TypeError: 'NoneType' object is not iterable
But maybe that is a different bug that needs to be reported differently. Anyway, I can probably work around this one.