vxlan over wireless: fix

This commit is contained in:
Astro 2022-01-18 21:06:02 +01:00
parent 2789589c25
commit 77c0477bd0
1 changed files with 4 additions and 4 deletions

View File

@ -240,9 +240,9 @@ in ''
uci set network.${net}.ipaddr=${config.site.net.${net}.hosts4.${hostName}}
uci set network.${net}.netmask=${self.lib.netmasks.${toString config.site.net.${net}.subnet4Len}}
''}
${lib.concatMapStrings (ctx: lib.optionalString (ctx ? ${hostName}) ''
uci set network.mgmt.ip6addr=${config.site.net.${net}.hosts6.${ctx}.${hostName}}/64
'') (builtins.attrNames config.site.net.${net}.hosts6)}
${lib.concatMapStrings (hosts6: lib.optionalString (hosts6 ? ${hostName}) ''
uci set network.${net}.ip6addr=${hosts6.${hostName}}/64
'') (builtins.attrValues config.site.net.${net}.hosts6)}
'') (builtins.attrNames hostConfig.interfaces)
}
@ -252,7 +252,7 @@ in ''
iface = hostConfig.interfaces.${name};
in optionalString (iface.type == "vxlan") ''
uci set network.${name}=interface
uci set network.${name}.proto=vxlan
uci set network.${name}.proto=vxlan6
uci set network.${name}.peer6addr='${iface.vxlan.peer}'
uci set network.${name}.port=4789
uci set network.${name}.mtu=1600