diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-05-05 10:58:00 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-05-21 08:35:46 +0200 |
commit | 1f82020865a982a3f82934b420165ceb331a3505 (patch) | |
tree | 7ac305f8cc6b0b73b32db56b126bc53bef3a0176 /nixos | |
parent | 4522b0bd7aca100312fffcbaee54582614ae3b7a (diff) |
nixos/tests/keepalived: use openFirewall option
Instead of networking.firewall.extraCommands.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/keepalived.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/keepalived.nix b/nixos/tests/keepalived.nix index 16564511d85d..052b36266d03 100644 --- a/nixos/tests/keepalived.nix +++ b/nixos/tests/keepalived.nix @@ -4,8 +4,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { nodes = { node1 = { pkgs, ... }: { - networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT"; services.keepalived.enable = true; + services.keepalived.openFirewall = true; services.keepalived.vrrpInstances.test = { interface = "eth1"; state = "MASTER"; @@ -16,8 +16,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { environment.systemPackages = [ pkgs.tcpdump ]; }; node2 = { pkgs, ... }: { - networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT"; services.keepalived.enable = true; + services.keepalived.openFirewall = true; services.keepalived.vrrpInstances.test = { interface = "eth1"; state = "MASTER"; |