aboutsummaryrefslogtreecommitdiff
path: root/agent/src/main/resources/bird2.conf.ftlh
diff options
context:
space:
mode:
Diffstat (limited to 'agent/src/main/resources/bird2.conf.ftlh')
-rw-r--r--agent/src/main/resources/bird2.conf.ftlh18
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