root@ff:~# dpkg -l | grep netplan
ii libnetplan0:amd64 0.103-0ubuntu5~20.04.2
ii netplan.io 0.103-0ubuntu5~20.04.2
root@ff:~# netplan set network.bridges.br54.dhcp4=false
root@ff:~# netplan get # check that br54 is present
network:
bridges:
br54:
dhcp4: false
ethernets:
eth0:
dhcp4: true
root@ff:~# netplan apply
root@ff:~# ip link show br54 && echo OK
3: br54: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 06:0f:64:90:38:53 brd ff:ff:ff:ff:ff:ff
OK
root@ff:~# mkdir -p /tmp/np_backup/etc/ && cp -r /etc/netplan /tmp/np_backup/etc/
root@ff:~# netplan set network.bridges.br54=null
root@ff:~# netplan get # check that br54 is NOT present
network:
ethernets:
eth0:
dhcp4: true
netplan apply --state /tmp/np_backup
root@ff:~# ip link show br54 && echo ERROR
Device "br54" does not exist.
I Tested netplan.io 0.103-0ubuntu5~ 20.04.2 inside a fresh Focal LXD container:
$ lxc launch ubuntu-daily:focal ff
$ lxc exec ff bash
=> Enabled focal-proposed & installed/upgraded netplan.io
root@ff:~# dpkg -l | grep netplan 20.04.2 20.04.2 bridges. br54.dhcp4= false MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 bridges. br54=null
ii libnetplan0:amd64 0.103-0ubuntu5~
ii netplan.io 0.103-0ubuntu5~
root@ff:~# netplan set network.
root@ff:~# netplan get # check that br54 is present
network:
bridges:
br54:
dhcp4: false
ethernets:
eth0:
dhcp4: true
root@ff:~# netplan apply
root@ff:~# ip link show br54 && echo OK
3: br54: <BROADCAST,
link/ether 06:0f:64:90:38:53 brd ff:ff:ff:ff:ff:ff
OK
root@ff:~# mkdir -p /tmp/np_backup/etc/ && cp -r /etc/netplan /tmp/np_backup/etc/
root@ff:~# netplan set network.
root@ff:~# netplan get # check that br54 is NOT present
network:
ethernets:
eth0:
dhcp4: true
netplan apply --state /tmp/np_backup
root@ff:~# ip link show br54 && echo ERROR
Device "br54" does not exist.
In accordance with https:/ /wiki.ubuntu. com/NetplanUpda tes I'm also attaching the full autopkgtest logs for those builds: /git.launchpad. net/~slyon/ +git/files/ tree/LP1943120/ focal_amd64. log /git.launchpad. net/~slyon/ +git/files/ tree/LP1943120/ focal_arm64. log /git.launchpad. net/~slyon/ +git/files/ tree/LP1943120/ focal_armhf. log /git.launchpad. net/~slyon/ +git/files/ tree/LP1943120/ focal_ppc64el. log /git.launchpad. net/~slyon/ +git/files/ tree/LP1943120/ focal_s390x. log
https:/
https:/
https:/
https:/
https:/