fix: only set gateway on services vlan

This commit is contained in:
oddlama 2025-04-26 16:35:05 +02:00
parent 7c548d07cd
commit 1ee5b2aa1a
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ in
vlanCfg.hosts.sausebiene.cidrv4
vlanCfg.hosts.sausebiene.cidrv6
];
gateway = [ vlanCfg.hosts.ward.ipv4 ];
gateway = lib.optionals (vlanName == "services") [ vlanCfg.hosts.ward.ipv4 ];
matchConfig.Name = "vlan-${vlanName}";
networkConfig = {
IPv6PrivacyExtensions = "yes";

View file

@ -108,7 +108,7 @@ in
vlanCfg.hosts.sire.cidrv4
vlanCfg.hosts.sire.cidrv6
];
gateway = [ vlanCfg.hosts.ward.ipv4 ];
gateway = lib.optionals (vlanName == "services") [ vlanCfg.hosts.ward.ipv4 ];
matchConfig.Name = "me-${vlanName}";
networkConfig = {
IPv6PrivacyExtensions = "yes";