summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-23 12:26:17 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-23 12:26:21 +0100
commitbe3f095f92c5728ebbf5e970f52cffb45b5bea8e (patch)
tree403e0e6588440c4020b56a823f96a10fe0d672fd
parentd915a15e665654207e3df9f59bca86c259d00d88 (diff)
downloadvyos-1x-be3f095f92c5728ebbf5e970f52cffb45b5bea8e.tar.gz
vyos-1x-be3f095f92c5728ebbf5e970f52cffb45b5bea8e.zip
mpls: T915: drop superfluous "-%}" from Jinja2 template
Trimming blocks manually is not needed as the renderer is already called with the 'trim_blocks' option.
-rw-r--r--data/templates/frr/ldpd.frr.tmpl160
1 files changed, 80 insertions, 80 deletions
diff --git a/data/templates/frr/ldpd.frr.tmpl b/data/templates/frr/ldpd.frr.tmpl
index 3384efd00..280df41eb 100644
--- a/data/templates/frr/ldpd.frr.tmpl
+++ b/data/templates/frr/ldpd.frr.tmpl
@@ -1,120 +1,120 @@
!
-{% if ldp is defined -%}
+{% if ldp is defined %}
mpls ldp
-{% if ldp.router_id is defined -%}
+{% if ldp.router_id is defined %}
router-id {{ ldp.router_id }}
-{% endif -%}
-{% if ldp.parameters is defined -%}
-{% if ldp.parameters.cisco_interop_tlv is defined -%}
+{% endif %}
+{% if ldp.parameters is defined %}
+{% if ldp.parameters.cisco_interop_tlv is defined %}
dual-stack cisco-interop
-{% endif -%}
-{% if ldp.parameters.transport_prefer_ipv4 is defined-%}
+{% endif %}
+{% if ldp.parameters.transport_prefer_ipv4 is defined%}
dual-stack transport-connection prefer ipv4
-{% endif -%}
-{% endif -%}
-{% if ldp.neighbor is defined -%}
-{% for neighbors in ldp.neighbor -%}
-{% if ldp.neighbor[neighbors].password is defined -%}
+{% endif %}
+{% endif %}
+{% if ldp.neighbor is defined %}
+{% for neighbors in ldp.neighbor %}
+{% if ldp.neighbor[neighbors].password is defined %}
neighbor {{neighbors}} password {{ldp.neighbor[neighbors].password}}
-{% endif -%}
-{% if ldp.neighbor[neighbors].ttl_security is defined -%}
+{% endif %}
+{% if ldp.neighbor[neighbors].ttl_security is defined %}
{% if 'disable' in ldp.neighbor[neighbors].ttl_security %}
neighbor {{neighbors}} ttl-security disable
-{% else -%}
+{% else %}
neighbor {{neighbors}} ttl-security hops {{ldp.neighbor[neighbors].ttl_security}}
-{% endif -%}
-{% endif -%}
-{% if ldp.neighbor[neighbors].session_holdtime is defined -%}
+{% endif %}
+{% endif %}
+{% if ldp.neighbor[neighbors].session_holdtime is defined %}
neighbor {{neighbors}} session holdtime {{ldp.neighbor[neighbors].session_holdtime}}
-{% endif -%}
-{% endfor -%}
-{% endif -%}
+{% endif %}
+{% endfor %}
+{% endif %}
!
-{% if ldp.discovery is defined -%}
-{% if ldp.discovery.transport_ipv4_address is defined -%}
+{% if ldp.discovery is defined %}
+{% if ldp.discovery.transport_ipv4_address is defined %}
address-family ipv4
label local allocate host-routes
-{% if ldp.discovery.transport_ipv4_address is defined -%}
+{% if ldp.discovery.transport_ipv4_address is defined %}
discovery transport-address {{ ldp.discovery.transport_ipv4_address }}
-{% endif -%}
-{% if ldp.discovery.hello_ipv4_holdtime is defined -%}
+{% endif %}
+{% if ldp.discovery.hello_ipv4_holdtime is defined %}
discovery hello holdtime {{ ldp.discovery.hello_ipv4_holdtime }}
-{% endif -%}
-{% if ldp.discovery.hello_ipv4_interval is defined -%}
+{% endif %}
+{% if ldp.discovery.hello_ipv4_interval is defined %}
discovery hello interval {{ ldp.discovery.hello_ipv4_interval }}
-{% endif -%}
-{% if ldp.discovery.session_ipv4_holdtime is defined -%}
+{% endif %}
+{% if ldp.discovery.session_ipv4_holdtime is defined %}
session holdtime {{ ldp.discovery.session_ipv4_holdtime }}
-{% endif -%}
-{% if ldp.export is defined -%}
-{% if ldp.export.ipv4.explicit_null is defined -%}
+{% endif %}
+{% if ldp.export is defined %}
+{% if ldp.export.ipv4.explicit_null is defined %}
label local advertise explicit-null
-{% endif -%}
-{% endif -%}
-{% if ldp.targeted_neighbor is defined -%}
-{% if ldp.targeted_neighbor.ipv4.enable is defined -%}
+{% endif %}
+{% endif %}
+{% if ldp.targeted_neighbor is defined %}
+{% if ldp.targeted_neighbor.ipv4.enable is defined %}
discovery targeted-hello accept
-{% endif -%}
-{% if ldp.targeted_neighbor.ipv4.hello_holdtime is defined -%}
+{% endif %}
+{% if ldp.targeted_neighbor.ipv4.hello_holdtime is defined %}
discovery targeted-hello holdtime {{ ldp.targeted_neighbor.ipv4.hello_holdtime }}
-{% endif -%}
-{% if ldp.targeted_neighbor.ipv4.hello_interval is defined -%}
+{% endif %}
+{% if ldp.targeted_neighbor.ipv4.hello_interval is defined %}
discovery targeted-hello interval {{ ldp.targeted_neighbor.ipv4.hello_interval }}
-{% endif -%}
-{% for addresses in ldp.targeted_neighbor.ipv4.address -%}
+{% endif %}
+{% for addresses in ldp.targeted_neighbor.ipv4.address %}
neighbor {{addresses}} targeted
-{% endfor -%}
-{% endif -%}
-{% for interfaces in ldp.interface -%}
+{% endfor %}
+{% endif %}
+{% for interfaces in ldp.interface %}
interface {{interfaces}}
-{% endfor -%}
+{% endfor %}
exit-address-family
-{% else -%}
+{% else %}
no address-family ipv4
-{% endif -%}
-{% endif -%}
+{% endif %}
+{% endif %}
!
-{% if ldp.discovery is defined -%}
-{% if ldp.discovery.transport_ipv6_address is defined -%}
+{% if ldp.discovery is defined %}
+{% if ldp.discovery.transport_ipv6_address is defined %}
address-family ipv6
label local allocate host-routes
-{% if ldp.discovery.transport_ipv6_address is defined -%}
+{% if ldp.discovery.transport_ipv6_address is defined %}
discovery transport-address {{ ldp.discovery.transport_ipv6_address }}
-{% endif -%}
-{% if ldp.discovery.hello_ipv6_holdtime is defined -%}
+{% endif %}
+{% if ldp.discovery.hello_ipv6_holdtime is defined %}
discovery hello holdtime {{ ldp.discovery.hello_ipv6_holdtime }}
-{% endif -%}
-{% if ldp.discovery.hello_ipv6_interval is defined -%}
+{% endif %}
+{% if ldp.discovery.hello_ipv6_interval is defined %}
discovery hello interval {{ ldp.discovery.hello_ipv6_interval }}
-{% endif -%}
-{% if ldp.discovery.session_ipv6_holdtime is defined -%}
+{% endif %}
+{% if ldp.discovery.session_ipv6_holdtime is defined %}
session holdtime {{ ldp.discovery.session_ipv6_holdtime }}
-{% endif -%}
-{% if ldp.export is defined -%}
-{% if ldp.export.ipv6.explicit_null is defined -%}
+{% endif %}
+{% if ldp.export is defined %}
+{% if ldp.export.ipv6.explicit_null is defined %}
label local advertise explicit-null
-{% endif -%}
-{% endif -%}
-{% if ldp.targeted_neighbor is defined -%}
-{% if ldp.targeted_neighbor.ipv6.enable is defined -%}
+{% endif %}
+{% endif %}
+{% if ldp.targeted_neighbor is defined %}
+{% if ldp.targeted_neighbor.ipv6.enable is defined %}
discovery targeted-hello accept
-{% endif -%}
-{% if ldp.targeted_neighbor.ipv6.hello_holdtime is defined -%}
+{% endif %}
+{% if ldp.targeted_neighbor.ipv6.hello_holdtime is defined %}
discovery targeted-hello holdtime {{ ldp.targeted_neighbor.ipv6.hello_holdtime }}
-{% endif -%}
-{% if ldp.targeted_neighbor.ipv6.hello_interval is defined -%}
+{% endif %}
+{% if ldp.targeted_neighbor.ipv6.hello_interval is defined %}
discovery targeted-hello interval {{ ldp.targeted_neighbor.ipv6.hello_interval }}
-{% endif -%}
-{% for addresses in ldp.targeted_neighbor.ipv6.address -%}
+{% endif %}
+{% for addresses in ldp.targeted_neighbor.ipv6.address %}
neighbor {{addresses}} targeted
-{% endfor -%}
-{% endif -%}
-{% for interfaces in ldp.interface -%}
+{% endfor %}
+{% endif %}
+{% for interfaces in ldp.interface %}
interface {{interfaces}}
-{% endfor -%}
+{% endfor %}
exit-address-family
-{% else -%}
+{% else %}
no address-family ipv6
-{% endif -%}
-{% endif -%}
-{% endif -%}
+{% endif %}
+{% endif %}
+{% endif %}