Skip to content

Commit

Permalink
isisd: update link params after circuit is up
Browse files Browse the repository at this point in the history
Call from isis_circuit_create works only if we enable isis on an already
existing interface. If we configure isis on a pseudo interface and then
actually create it - this call doesn't work.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
  • Loading branch information
idryzhov committed Apr 29, 2021
1 parent e2b5b7d commit 0fdd8b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions isisd/isis_circuit.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ int isis_circuit_up(struct isis_circuit *circuit)

circuit->last_uptime = time(NULL);

if (circuit->area->mta && circuit->area->mta->status)
isis_link_params_update(circuit, circuit->interface);

#ifndef FABRICD
/* send northbound notification */
isis_notif_if_state_change(circuit, false);
Expand Down Expand Up @@ -1302,8 +1305,6 @@ struct isis_circuit *isis_circuit_create(struct isis_area *area,
if (circuit->state != C_STATE_CONF && circuit->state != C_STATE_UP)
return circuit;
isis_circuit_if_bind(circuit, ifp);
if (circuit->area->mta && circuit->area->mta->status)
isis_link_params_update(circuit, ifp);

return circuit;
}
Expand Down

0 comments on commit 0fdd8b2

Please sign in to comment.