fix(modules/dgn-network): Make it work on web02

This is the only node still on 24.05 as the cas server is f*cked
This commit is contained in:
Tom Hubrecht 2024-12-15 23:31:34 +01:00
parent 1c74c67de6
commit 08d7dc46b3
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -17,10 +17,20 @@ let
net' = meta.network.${name};
mkAddress = { address, prefixLength, ... }: "${address}/${builtins.toString prefixLength}";
mkRoute = gateway: {
Gateway = gateway;
GatewayOnLink = true;
};
mkRoute =
Gateway:
if name == "web02" then
{
routeConfig = {
inherit Gateway;
GatewayOnLink = true;
};
}
else
{
inherit Gateway;
GatewayOnLink = true;
};
mkInterface = interface: net: {
name = "10-${interface}";