From c79ca35b6f4189c24930e6049b11657d586a45f5 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 14 Aug 2021 21:07:37 +0000 Subject: [PATCH] nixos/blade-router: disable routes-VRRP This is no longer needed; I think actually it was some of the NixOS default reverse-path filtering that was throwing me for a loop after all and nothing to do with what was going on with Veloxserv. --- ops/nixos/lib/blade-router.nix | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index a88b25ec06..9fed9d5fa3 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -4,28 +4,7 @@ { lib, config, pkgs, ... }: with lib; -let - notifyBird = pkgs.writeScript "blade-router-vrrp-bird.sh" '' - #!${pkgs.runtimeShell} - - ENDSTATE=$3 - NAME=$2 - TYPE=$1 - - BIRDC=${pkgs.bird2}/bin/birdc - - case $ENDSTATE in - "MASTER") $BIRDC enable export4 - $BIRDC enable export6 - exit 0 - ;; - *) $BIRDC disable export4 - $BIRDC disable export6 - exit 0 - ;; - esac - ''; -in { +{ imports = [ ../lib/bgp.nix ]; @@ -157,7 +136,6 @@ in { mgmtGateway4 mgmtGateway6 } - notify ${notifyBird} bird2 } ''; };