summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-27 15:35:20 +0100
committerGitHub <noreply@github.com>2021-02-27 15:35:20 +0100
commit46af54fe7545913226585230dfffd7e722280d81 (patch)
tree1bb028a142222a7f1358d982d8c891c07f93fc26 /data
parentbf9c9146ba56c994985d33ac8f93f2378bc1d5cc (diff)
parente9733cc1f790346c055a97dfba083ec968e25b2c (diff)
downloadvyos-1x-46af54fe7545913226585230dfffd7e722280d81.tar.gz
vyos-1x-46af54fe7545913226585230dfffd7e722280d81.zip
Merge pull request #753 from sever-sever/T3365
bgp: T3365: Fix frr template for interface remote-as
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgp.frr.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 4a4d2449c..9340795bc 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -9,9 +9,9 @@
{% if config.remote_as is defined and config.remote_as is not none %}
neighbor {{ neighbor }} remote-as {{ config.remote_as }}
{% endif %}
-{% if config.interface.remote_as is defined and config.interface.remote_as is not none %}
+{% if config.interface is defined and config.interface.remote_as is defined and config.interface.remote_as is not none %}
neighbor {{ neighbor }} interface remote-as {{ config.interface.remote_as }}
-{% endif %}
+{% endif %}
{% if config.advertisement_interval is defined and config.advertisement_interval is not none %}
neighbor {{ neighbor }} advertisement-interval {{ config.advertisement_interval }}
{% endif %}