Empty (but defined) bridges.*.interfaces = [ ] doesn't trigger restart of network-setup
service on config switch
#98311
Labels
network-setup
service on config switch
#98311
Describe the bug
When a bridge is declared (in this case for container networking purposes) like this:
it does not get created and set-up on
nixos-rebuild switch
. According to #50208 this is because the interfaces list is empty.This breaks declarative containers and possibly other use cases where bridge creation is static (i.e. declarative) but config is done on-the-fly. One has to manually restart the
network-setup
service, thebridge-netdev
service and, in case of containers, all the containers' services.It also basically kills all the containers connected to the bridge.
To Reproduce
Steps to reproduce the behavior:
nixos-rebuild switch
Expected behavior
The declared bridge should be up with proper IP, etc. The containers connected to the bridge should be up and connected.
Notify maintainers
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: