summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-14 17:25:06 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-14 17:25:06 +0100
commit580baddebb933ef388c7adabf4f4971c03decf5f (patch)
tree93c1e6d32da56b5567bfeb5315c7658f2f02153f /data/templates/frr
parentb01c23d48a3ff3b95175568198fb307ffbc04b86 (diff)
downloadvyos-1x-580baddebb933ef388c7adabf4f4971c03decf5f.tar.gz
vyos-1x-580baddebb933ef388c7adabf4f4971c03decf5f.zip
bgp: T1513: add per VNI advertise-default-gw, advertise-svi-ip options
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgp.frr.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index ab0f94c33..56a54ef38 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -245,8 +245,14 @@ router bgp {{ asn }}
{% endif %}
{% endif %}
{% if afi_config.vni is defined and afi_config.vni is not none %}
-{% for vni in afi_config.vni %}
+{% for vni, vni_config in afi_config.vni.items() %}
vni {{ vni }}
+{% if vni_config.advertise_default_gw is defined %}
+ advertise-default-gw
+{% endif %}
+{% if vni_config.advertise_svi_ip is defined %}
+ advertise-svi-ip
+{% endif %}
exit-vni
{% endfor %}
{% endif %}