diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index eef6a0238e..2d481ffc03 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -12,13 +12,15 @@ let NAME=$2 TYPE=$1 + BIRDC=${pkgs.bird2}/bin/birdc + case $ENDSTATE in - "MASTER") birdc enable export4 - birdc enable export6 + "MASTER") $BIRDC enable export4 + $BIRDC enable export6 exit 0 ;; - *) birdc disable export4 - birdc disable export6 + *) $BIRDC disable export4 + $BIRDC disable export6 exit 0 ;; esac