summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-05 13:15:43 +0100
committerGitHub <noreply@github.com>2020-11-05 13:15:43 +0100
commite64b4ad6909bedad8aa72c25b0c0615e4f4046f9 (patch)
tree98f7d07e6fe357249807d44fbc5235c90c016762 /data/templates
parent84c7ed21629db338b207dfb11320b49fffda3b3d (diff)
parentf0ba15aadbfca4ecb7f438a8f92f634e333b7976 (diff)
downloadvyos-1x-e64b4ad6909bedad8aa72c25b0c0615e4f4046f9.tar.gz
vyos-1x-e64b4ad6909bedad8aa72c25b0c0615e4f4046f9.zip
Merge pull request #596 from Cheeze-It/current
mpls-conf: T915: Add session hold time adjustment for LDP neighbors
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/ldpd.frr.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/frr/ldpd.frr.tmpl b/data/templates/frr/ldpd.frr.tmpl
index 3cdce8c70..4736adeb0 100644
--- a/data/templates/frr/ldpd.frr.tmpl
+++ b/data/templates/frr/ldpd.frr.tmpl
@@ -16,6 +16,9 @@ no neighbor {{neighbor_id}} ttl-security disable
no neighbor {{neighbor_id}} ttl-security hops {{old_ldp.neighbors[neighbor_id].ttl_security}}
{% endif -%}
{% endif -%}
+{% if 'session_holdtime' is defined -%}
+no neighbor {{neighbor_id}} session holdtime {{old_ldp.neighbors[neighbor_id].session_holdtime}}
+{% endif -%}
{% endfor -%}
{% for neighbor_id in ldp.neighbors -%}
neighbor {{neighbor_id}} password {{ldp.neighbors[neighbor_id].password}}
@@ -26,6 +29,9 @@ neighbor {{neighbor_id}} ttl-security disable
neighbor {{neighbor_id}} ttl-security hops {{ldp.neighbors[neighbor_id].ttl_security}}
{% endif -%}
{% endif -%}
+{% if 'session_holdtime' is defined -%}
+neighbor {{neighbor_id}} session holdtime {{ldp.neighbors[neighbor_id].session_holdtime}}
+{% endif -%}
{% endfor -%}
!
address-family ipv4
@@ -118,4 +124,4 @@ no address-family ipv6
{% else -%}
no mpls ldp
{% endif -%}
-!
+! \ No newline at end of file