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