diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-04-08 22:30:34 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-04-08 22:30:34 -0700 |
commit | 28ac13f5a7ffde6873d49aced6e877697c7aff27 (patch) | |
tree | 319027bea8501e8ad8240cc135b33b7d51eedea4 /agent/src/main/resources/bird2.conf.ftlh | |
parent | 02c2f523606f81c8dcd452fe5ab54408c3aac8f1 (diff) | |
download | dn42peering-28ac13f5a7ffde6873d49aced6e877697c7aff27.tar dn42peering-28ac13f5a7ffde6873d49aced6e877697c7aff27.tar.gz dn42peering-28ac13f5a7ffde6873d49aced6e877697c7aff27.tar.bz2 dn42peering-28ac13f5a7ffde6873d49aced6e877697c7aff27.zip |
feat(agent): bird: use a concentrated configuration
Diffstat (limited to 'agent/src/main/resources/bird2.conf.ftlh')
-rw-r--r-- | agent/src/main/resources/bird2.conf.ftlh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/agent/src/main/resources/bird2.conf.ftlh b/agent/src/main/resources/bird2.conf.ftlh index fa98469..23ed1fd 100644 --- a/agent/src/main/resources/bird2.conf.ftlh +++ b/agent/src/main/resources/bird2.conf.ftlh @@ -1,12 +1,16 @@ -<#if !mpbgp> -protocol bgp dn42_${name?long?c} from dnpeers { - neighbor ${ipv4} as ${asn?long?c}; +# Generated by dn42peering agent. Do not modify. + +<#list sessions as session> +<#if !session.mpbgp> +protocol bgp dn42_${session.name?long?c} from dnpeers { + neighbor ${session.ipv4} as ${session.asn?long?c}; direct; } </#if> -<#if ipv6??> -protocol bgp dn42_${name?long?c}_v6 from dnpeers { - neighbor ${ipv6}%${dev} as ${asn?long?c}; +<#if session.ipv6??> +protocol bgp dn42_${session.name?long?c}_v6 from dnpeers { + neighbor ${session.ipv6}%${session.dev} as ${session.asn?long?c}; direct; } -</#if>
\ No newline at end of file +</#if> +</#list>
\ No newline at end of file |