freifunk: enable ZW6_${upstream}
This commit is contained in:
parent
34dcd945d6
commit
699f29e271
|
@ -353,6 +353,26 @@ in {
|
||||||
};
|
};
|
||||||
'') upstreams)}
|
'') 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};
|
router id ${coreAddress};
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue