When setting activation-mode=off, netplan generates the incorrect value in the YAML file (activation-mode: false), causing it to fail due to incorrect syntax.
$ sudo netplan set ethernets.eth0.activation-mode=off
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 247, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/set.py", line 55, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 247, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/set.py", line 126, in command_set
self.write_file(subtree, hint + '.yaml', self.root_dir)
File "/usr/share/netplan/netplan/cli/commands/set.py", line 193, in write_file
libnetplan.netplan_parse(tmpp)
File "/usr/share/netplan/netplan/libnetplan.py", line 64, in netplan_parse
raise Exception(err.contents.message.decode('utf-8'))
Exception: /tmp/netplan-set_o73ewgp4/etc/netplan/50-cloud-init.yaml:4:24: Error in network definition: Value of 'activation-mode' needs to be 'manual' or 'off'
activation-mode: false ^
When setting activation- mode=off, netplan generates the incorrect value in the YAML file (activation-mode: false), causing it to fail due to incorrect syntax.
$ sudo netplan set ethernets. eth0.activation -mode=off netplan" , line 23, in <module> netplan/ netplan/ cli/core. py", line 50, in main run_command( ) netplan/ netplan/ cli/utils. py", line 247, in run_command netplan/ netplan/ cli/commands/ set.py" , line 55, in run run_command( ) netplan/ netplan/ cli/utils. py", line 247, in run_command netplan/ netplan/ cli/commands/ set.py" , line 126, in command_set write_file( subtree, hint + '.yaml', self.root_dir) netplan/ netplan/ cli/commands/ set.py" , line 193, in write_file netplan_ parse(tmpp) netplan/ netplan/ libnetplan. py", line 64, in netplan_parse err.contents. message. decode( 'utf-8' )) set_o73ewgp4/ etc/netplan/ 50-cloud- init.yaml: 4:24: Error in network definition: Value of 'activation-mode' needs to be 'manual' or 'off' n-mode: false
^
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/
self.
File "/usr/share/
libnetplan.
File "/usr/share/
raise Exception(
Exception: /tmp/netplan-
activatio