freifunk: enable ZW6_${upstream}

This commit is contained in:
Astro 2022-03-22 23:07:53 +01:00
parent 34dcd945d6
commit 699f29e271
1 changed files with 20 additions and 0 deletions

View File

@ -353,6 +353,26 @@ in {
};
'') upstreams)}
${lib.concatStrings (lib.imap0 (i: upstream: ''
# OSPFv3 to receive a default route from ${upstream}
protocol ospf v3 ZW6_${upstream} {
ipv6 {
import filter {
preference = preference + ${toString (200 - i)};
accept;
};
};
area 0 {
interface "core" instance ${toString zentralwerk.lib.config.site.hosts.${upstream}.ospf.upstreamInstance} {
hello 10;
wait 20;
authentication cryptographic;
password "${pkgs.zentralwerk-ospf-message-digest-key}";
};
};
};
'') upstreams)}
router id ${coreAddress};
'';
};