I have a firewall zone that includes a podman network interface, but at some point in the last year the behavior has changed, and it now fails to get added to the firewall zone at boot, but works on commit. I am thankful however that the firewall now still loads, as VyOS used to just fail to load the firewall if there were any errors at all in the configuration.
A simple solution for this is to just load the firewall last.
Reproduction config would be as follows:
container {
network containers {
description "Network for containers"
prefix 172.18.0.0/16
}
}
firewall {
zone CONTAINER {
member {
interface pod-containers
}
}
}Should apply okay when running but will not re-apply properly on reboot with following log entry:
Set ['firewall' 'zone' 'CONTAINER' 'member' 'interface' 'pod-containers'] failed
For now I'm literally just using a post startup hook to reload the config at boot and re-apply it.