nixos-module/container/bird: add escaping

This commit is contained in:
Astro 2022-09-18 01:47:40 +02:00
parent 05641a7f74
commit 5a88fedebe
1 changed files with 6 additions and 2 deletions

View File

@ -208,7 +208,9 @@ in
${text}
# OSPFv2 to receive a default route from ${upstream}
protocol ospf v2 ZW4_${upstream} {
protocol ospf v2 ZW4_${
builtins.replaceStrings [ "-" ] [ "_" ] upstream
} {
ipv4 {
import filter {
preference = preference + ${toString (100 - n)};
@ -324,7 +326,9 @@ in
${text}
# OSPFv3 to receive a default route from ${upstream}
protocol ospf v3 ZW6_${upstream} {
protocol ospf v3 ZW6_${
builtins.replaceStrings [ "-" ] [ "_" ] upstream
} {
ipv6 {
import filter {
preference = preference + ${toString (100 - n)};