mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Using iptables.OnReloaded to restore individual per-network rules on firewalld reload means rules for deleted networks pop back in to existence (because there was no way to delete the callbacks on network-delete). So, on firewalld reload, walk over current networks and ask them to restore their iptables rules. Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commita527e5a546) Test that firewalld reload doesn't re-create deleted iptables rules Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commitc3fa7c1779) Signed-off-by: Andrey Epifanov <aepifanov@mirantis.com>