mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 00:56:19 +00:00
Merge pull request #5509 from manuhalo/fix_isis_circ_del
isisd: clean ipv4/6 circuit config on destroy
This commit is contained in:
commit
c3a964360d
@ -1550,9 +1550,13 @@ int lib_interface_isis_destroy(enum nb_event event,
|
|||||||
circuit = nb_running_unset_entry(dnode);
|
circuit = nb_running_unset_entry(dnode);
|
||||||
if (!circuit)
|
if (!circuit)
|
||||||
return NB_ERR_INCONSISTENCY;
|
return NB_ERR_INCONSISTENCY;
|
||||||
if (circuit->state == C_STATE_UP || circuit->state == C_STATE_CONF)
|
|
||||||
isis_csm_state_change(ISIS_DISABLE, circuit, circuit->area);
|
|
||||||
|
|
||||||
|
/* disable both AFs for this circuit. this will also update the
|
||||||
|
* CSM state by sending an ISIS_DISABLED signal. If there is no
|
||||||
|
* area associated to the circuit there is nothing to do
|
||||||
|
*/
|
||||||
|
if (circuit->area)
|
||||||
|
isis_circuit_af_set(circuit, false, false);
|
||||||
return NB_OK;
|
return NB_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user