mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 18:41:56 +00:00
isisd: update link params after circuit is up
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>
This commit is contained in:
parent
e2b5b7d6d7
commit
0fdd8b2b11
@ -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);
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user