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.
This commit is contained in:
Luke Granger-Brown 2021-08-14 21:07:37 +00:00
parent 69f1308e7b
commit c79ca35b6f

View file

@ -4,28 +4,7 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }:
with lib; 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 = [ imports = [
../lib/bgp.nix ../lib/bgp.nix
]; ];
@ -157,7 +136,6 @@ in {
mgmtGateway4 mgmtGateway4
mgmtGateway6 mgmtGateway6
} }
notify ${notifyBird} bird2
} }
''; '';
}; };