isisd: ignore unknown interfaces when adjusting IS-IS mtu
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 <nobody@nowhere.ws>
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 @@
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",