summaryrefslogtreecommitdiff
path: root/data/templates/frr/ldpd.frr.j2
diff options
context:
space:
mode:
authorDevon Mar <devonm@mdmm.ca>2023-10-11 22:42:41 -0700
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-11-07 07:07:26 +0000
commitf9bc65c93fb7078ed90f46f18ca9a5ed140f8fb4 (patch)
tree0ad8adf0dd35bea3e0cf8eb369730a47c9440c87 /data/templates/frr/ldpd.frr.j2
parent7a4d59acaf62908a20f7aa143816c608f5479fb2 (diff)
downloadvyos-1x-f9bc65c93fb7078ed90f46f18ca9a5ed140f8fb4.tar.gz
vyos-1x-f9bc65c93fb7078ed90f46f18ca9a5ed140f8fb4.zip
ldpd: T5648: Fix ldpd template errors
Bug introduced in https://github.com/vyos/vyos-1x/commit/8fb6e715d32e7eff77e413d8577059dd55b24c0a (cherry picked from commit df6ced3811ebe6446039277ff3fc301a83776dc1)
Diffstat (limited to 'data/templates/frr/ldpd.frr.j2')
-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 %}