networkd tears down bridge ip address when the last device is pulled out from the bridge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 18.04.1 LTS (systemd 237) pulling out the last device out of the bridge removes the bridge ip address.
given the following config:
# cat /etc/systemd/
[NetDev]
Name=vmbr0
Kind=bridge
[Bridge]
HelloTimeSec=0
ForwardDelaySec=0
STP=no
# cat /etc/systemd/
[Match]
Name=vmbr0
[Network]
Address=
ConfigureWithou
DHCP=no
IPForward=yes
IPv6AcceptRA=no
LinkLocalAddres
networkd would bring up vmbr0 with 10.10.0.1/16 on system boot despite it not having any devices, allowing services to bind to 10.10.0.1.
However, if you add a device and then remove it (e.g. by starting and then stopping a virtual machine connected to the bridge), networkd would tear down the interface:
3: vmbr0: <NO-CARRIER,
link/ether 16:19:4c:7f:e8:c4 brd ff:ff:ff:ff:ff:ff
thus making any service listening on 10.10.0.1 inaccessible.
previously on Xenial the bridge would stay intact.
Seems to be related to https:/ /github. com/systemd/ systemd/ pull/7403 which isn't merged still.