summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorDevon Mar <devonm@mdmm.ca>2023-10-11 22:42:41 -0700
committerDevon Mar <devonm@mdmm.ca>2023-10-11 22:51:42 -0700
commitdf6ced3811ebe6446039277ff3fc301a83776dc1 (patch)
tree6ed142a6c4454770b5815c83b6ae9eb66ed1d63e /data/templates/frr
parent526f19eaf7953ff96e6b92c798aa7b3df42a7472 (diff)
downloadvyos-1x-df6ced3811ebe6446039277ff3fc301a83776dc1.tar.gz
vyos-1x-df6ced3811ebe6446039277ff3fc301a83776dc1.zip
ldpd: T5648: Fix ldpd template errors
Bug introduced in https://github.com/vyos/vyos-1x/commit/8fb6e715d32e7eff77e413d8577059dd55b24c0a
Diffstat (limited to 'data/templates/frr')
-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 %}