nixos-module/container/bird: disable radvd in c3d2-gw{1,2}

This commit is contained in:
Astro 2021-06-02 20:02:31 +02:00
parent aba5796a57
commit 45174545f2
1 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,10 @@ let
# Configuring a gateway? If so, this is the associated net.
gatewayNet =
let
m = builtins.match "(.+)-gw.*" hostName;
in if m == [ "cls" ]
m = builtins.match "(.+)-gw" hostName;
in if hostName == "c3d2-gw3"
then "c3d2"
else if m == [ "cls" ]
then "cluster"
else if m == null
then null