Переглянути джерело

bird template doesn't require uplinks any more

Till Klocke 9 роки тому
батько
коміт
35c2dc6d41

+ 2 - 0
roles/supernode-interfaces/templates/bird.conf.j2

@@ -28,6 +28,7 @@ template bgp ibgp {
         multihop 64;
 };
 
+{% if supernode_uplinks is defined %}
 {% for uplink in supernode_uplinks %}
 protocol bgp {{uplink.name}} from ibgp {
         source address {{uplink.address}};
@@ -36,6 +37,7 @@ protocol bgp {{uplink.name}} from ibgp {
 };
 
 {% endfor %}
+{% endif %}
 
 {% for meshlink in supernode_mesh_backbones%}
 protocol bgp {{meshlink.name}} from ibgp {

+ 2 - 0
roles/supernode-interfaces/templates/bird6.conf.j2

@@ -37,6 +37,7 @@ template bgp ibgp {
         gateway direct;
 }
 
+{% if supernode_uplinks is defined %}
 template bgp uplink {
         local as {{supernode_uplinks[0].as}};
         import all;
@@ -53,6 +54,7 @@ protocol bgp {{uplink.name}} from uplink {
 }
 
 {% endfor %}
+{% endif %}
 
 {% for meshlink in supernode_mesh_backbones %}
 protocol bgp {{meshlink.name}} from ibgp {