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 } ''; };