summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-12 19:01:31 +0200
committerGitHub <noreply@github.com>2023-10-12 19:01:31 +0200
commitc4bea386c66259f642f4695f376b4c544903bc7e (patch)
tree374a553bdf9f93d057b0b83d4520dc571bcbf549 /data/templates
parentbf0ade04be9fcb1bade3624758603f6043d914cc (diff)
parentdf6ced3811ebe6446039277ff3fc301a83776dc1 (diff)
downloadvyos-1x-c4bea386c66259f642f4695f376b4c544903bc7e.tar.gz
vyos-1x-c4bea386c66259f642f4695f376b4c544903bc7e.zip
Merge pull request #2357 from devon-mar/ldpd-template-errors
ldpd: T5648: Fix ldpd template errors
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/ldpd.frr.j210
1 files changed, 5 insertions, 5 deletions
diff --git a/data/templates/frr/ldpd.frr.j2 b/data/templates/frr/ldpd.frr.j2
index 11aff331a..9a893cc55 100644
--- a/data/templates/frr/ldpd.frr.j2
+++ b/data/templates/frr/ldpd.frr.j2
@@ -14,19 +14,19 @@ mpls ldp
ordered-control
{% endif %}
{% if ldp.neighbor is vyos_defined %}
-{% for neighbor, neighbor_config in ldp.neighbor %}
+{% for neighbor, neighbor_config in ldp.neighbor.items() %}
{% if neighbor_config.password is vyos_defined %}
- neighbor {{ neighbors }} password {{ neighbor_config.password }}
+ neighbor {{ neighbor }} password {{ neighbor_config.password }}
{% endif %}
{% if neighbor_config.ttl_security is vyos_defined %}
{% if neighbor_config.ttl_security.disable is vyos_defined %}
- neighbor {{ neighbors }} ttl-security disable
+ neighbor {{ neighbor }} ttl-security disable
{% else %}
- neighbor {{ neighbors }} ttl-security hops {{ neighbor_config.ttl_security }}
+ neighbor {{ neighbor }} ttl-security hops {{ neighbor_config.ttl_security }}
{% endif %}
{% endif %}
{% if neighbor_config.session_holdtime is vyos_defined %}
- neighbor {{ neighbors }} session holdtime {{ neighbor_config.session_holdtime }}
+ neighbor {{ neighbor }} session holdtime {{ neighbor_config.session_holdtime }}
{% endif %}
{% endfor %}
{% endif %}