diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-10-15 18:01:41 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-10-15 18:01:41 +0000 |
commit | 2bc0e445bc09103b2a74af187a4babb2c3531f17 (patch) | |
tree | f793520db5e8ea534a3bee0ac1e88b2879a612e1 /data/templates/frr | |
parent | 741cd00fb687a1ce1e5f9e65c324bc229700e10b (diff) | |
download | vyos-1x-2bc0e445bc09103b2a74af187a4babb2c3531f17.tar.gz vyos-1x-2bc0e445bc09103b2a74af187a4babb2c3531f17.zip |
conf-mode: T915: Add mpls ldp explicit and holdtime commands
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/ldpd.frr.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/data/templates/frr/ldpd.frr.tmpl b/data/templates/frr/ldpd.frr.tmpl index dbaa917e8..5f080d75f 100644 --- a/data/templates/frr/ldpd.frr.tmpl +++ b/data/templates/frr/ldpd.frr.tmpl @@ -15,6 +15,12 @@ neighbor {{neighbor_id}} password {{ldp.neighbors[neighbor_id].password}} {% endfor -%} address-family ipv4 label local allocate host-routes +{% if old_ldp.export_ipv4_exp -%} +no label local advertise explicit-null +{% endif -%} +{% if ldp.export_ipv4_exp -%} +label local advertise explicit-null +{% endif -%} {% if old_ldp.d_transp_ipv4 -%} no discovery transport-address {{ old_ldp.d_transp_ipv4 }} {% endif -%} @@ -33,6 +39,12 @@ no discovery hello interval {{ old_ldp.hello_interval }} {% if ldp.hello_interval -%} discovery hello interval {{ ldp.hello_interval }} {% endif -%} +{% if old_ldp.ses_ipv4_hold -%} +no session holdtime {{ old_ldp.ses_ipv4_hold }} +{% endif -%} +{% if ldp.ses_ipv4_hold -%} +session holdtime {{ ldp.ses_ipv4_hold }} +{% endif -%} {% for interface in old_ldp.interfaces -%} no interface {{interface}} {% endfor -%} @@ -46,6 +58,18 @@ exit-address-family {% if ldp.d_transp_ipv6 -%} address-family ipv6 label local allocate host-routes +{% if old_ldp.export_ipv6_exp -%} +no label local advertise explicit-null +{% endif -%} +{% if ldp.export_ipv6_exp -%} +label local advertise explicit-null +{% endif -%} +{% if old_ldp.ses_ipv6_hold -%} +no session holdtime {{ old_ldp.ses_ipv6_hold }} +{% endif -%} +{% if ldp.ses_ipv6_hold -%} +session holdtime {{ ldp.ses_ipv6_hold }} +{% endif -%} {% if old_ldp.d_transp_ipv6 -%} no discovery transport-address {{ old_ldp.d_transp_ipv6 }} {% endif -%} |