diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-03-26 10:06:20 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-03-29 08:53:19 +0000 |
commit | c11daec3b06aaeaa0647fa13a3375e422b54735c (patch) | |
tree | e6731ce94f4b9baf565f3e70f5780eb31775b0e5 /data/templates/frr | |
parent | 4871e5bb5b8c3f1cab12fdc36a02ac99902a9eb1 (diff) | |
download | vyos-1x-c11daec3b06aaeaa0647fa13a3375e422b54735c.tar.gz vyos-1x-c11daec3b06aaeaa0647fa13a3375e422b54735c.zip |
T7286: Add CLI option to disable LDP establish packets
If a router has not formed an LDP neighbor adjacency yet, it
answers all received LDP Hello packets from non-neighbors with
new Hello packets.
This leads to flooding LDP packets to all routers for each LDP
incoming packet.
Add configuration option to disable this behavior
```
set protocols mpls ldp interface eth0 disable-establish-hello
```
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/ldpd.frr.j2 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/data/templates/frr/ldpd.frr.j2 b/data/templates/frr/ldpd.frr.j2 index 9a893cc55..b8fb0cfc7 100644 --- a/data/templates/frr/ldpd.frr.j2 +++ b/data/templates/frr/ldpd.frr.j2 @@ -82,8 +82,11 @@ mpls ldp {% endfor %} {% endif %} {% if ldp.interface is vyos_defined %} -{% for interface in ldp.interface %} +{% for interface, iface_config in ldp.interface.items() %} interface {{ interface }} +{% if iface_config.disable_establish_hello is vyos_defined %} + disable-establish-hello +{% endif %} exit {% endfor %} {% endif %} @@ -135,8 +138,11 @@ mpls ldp {% endfor %} {% endif %} {% if ldp.interface is vyos_defined %} -{% for interface in ldp.interface %} +{% for interface, iface_config in ldp.interface.items() %} interface {{ interface }} +{% if iface_config.disable_establish_hello is vyos_defined %} + disable-establish-hello +{% endif %} {% endfor %} {% endif %} exit-address-family |