diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-04-03 17:46:28 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-06 14:07:09 +0200 |
commit | be2fdb51075830030ad8bea4981ba72a27731932 (patch) | |
tree | 538a6b7ca0d0c3fcb37780b1bc900b03760d5612 /isisd | |
parent | isisd: make sure that all interface addresses are advertised (diff) | |
download | frr-be2fdb51075830030ad8bea4981ba72a27731932.tar.xz frr-be2fdb51075830030ad8bea4981ba72a27731932.zip |
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>
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isisd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c index 9a9c77cc6..6d2bb45cd 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -1620,6 +1620,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", |