nixos-module/container/bird: mangle upstream names for bgp instances
This commit is contained in:
parent
71087403bc
commit
c05f035b7b
|
@ -256,7 +256,7 @@ in
|
||||||
|
|
||||||
${lib.concatMapStrings ({ n, x }: let upstream = x; in ''
|
${lib.concatMapStrings ({ n, x }: let upstream = x; in ''
|
||||||
# upstream client instance #${toString n}
|
# upstream client instance #${toString n}
|
||||||
protocol bgp bgp_up_${upstream} {
|
protocol bgp bgp_up_${builtins.replaceStrings ["-"] ["_"] upstream} {
|
||||||
local as ${toString hostConf.bgp.asn};
|
local as ${toString hostConf.bgp.asn};
|
||||||
neighbor ${config.site.net.core.hosts6.dn42.${upstream}} as ${toString hostConf.bgp.asn};
|
neighbor ${config.site.net.core.hosts6.dn42.${upstream}} as ${toString hostConf.bgp.asn};
|
||||||
direct;
|
direct;
|
||||||
|
|
Loading…
Reference in New Issue