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:
parent
69f1308e7b
commit
c79ca35b6f
1 changed files with 1 additions and 23 deletions
|
@ -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
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue