From: Christian Franke <[email protected]>

For example during startup of isisd, the MTU of interfaces is not
known, since this information will only be available once the
interfaces have been learned from zebra.

It makes no sense to include the MTU 0 that is stored for interfaces
in this state in the consideration whether a new lsp-mtu for an
area is valid, so skip interfaces which are in this state.

Signed-off-by: Christian Franke <[email protected]>
---
 isisd/isisd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/isisd/isisd.c b/isisd/isisd.c
index c446e7f..26b7125 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -1619,6 +1619,8 @@ int area_set_lsp_mtu(struct vty *vty, struct isis_area 
*area, unsigned int lsp_m
 
   for (ALL_LIST_ELEMENTS_RO(area->circuit_list, node, circuit))
     {
+      if(circuit->state != C_STATE_INIT && circuit->state != C_STATE_UP)
+        continue;
       if(lsp_mtu > isis_circuit_pdu_size(circuit))
         {
           vty_out(vty, "ISIS area contains circuit %s, which has a maximum PDU 
size of %zu.%s",
-- 
2.7.4


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to