nixos/routing-common: Start / stop radvd only for IPv6
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 16m56s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 16m56s
This commit is contained in:
parent
ced82fc002
commit
d5bb2f6787
@ -36,10 +36,6 @@ let
|
|||||||
virtualRouterId = routerId;
|
virtualRouterId = routerId;
|
||||||
virtualIps = vrrpIPs family;
|
virtualIps = vrrpIPs family;
|
||||||
trackScripts = [ "${family}Alive" ];
|
trackScripts = [ "${family}Alive" ];
|
||||||
extraConfig = ''
|
|
||||||
notify_master "${config.systemd.package}/bin/systemctl start radvd.service" root
|
|
||||||
notify_backup "${config.systemd.package}/bin/systemctl stop radvd.service" root
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -66,7 +62,12 @@ in
|
|||||||
};
|
};
|
||||||
vrrpInstances = {
|
vrrpInstances = {
|
||||||
v4 = mkVRRP "v4" 51;
|
v4 = mkVRRP "v4" 51;
|
||||||
v6 = mkVRRP "v6" 52;
|
v6 = (mkVRRP "v6" 52) // {
|
||||||
|
extraConfig = ''
|
||||||
|
notify_master "${config.systemd.package}/bin/systemctl start radvd.service" root
|
||||||
|
notify_backup "${config.systemd.package}/bin/systemctl stop radvd.service" root
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# Actually disable this for now, don't want to fault IPv4 just because IPv6 is broken...
|
# Actually disable this for now, don't want to fault IPv4 just because IPv6 is broken...
|
||||||
# extraConfig = ''
|
# extraConfig = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user