mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 06:50:25 +00:00
Merge pull request #4917 from manuhalo/fix_isis_circuit_del
isisd: fix northbound circuit deletion
This commit is contained in:
commit
39fbea23a6
@ -1561,21 +1561,8 @@ static int lib_interface_isis_destroy(enum nb_event event,
|
||||
circuit = nb_running_unset_entry(dnode);
|
||||
if (!circuit)
|
||||
return NB_ERR_INCONSISTENCY;
|
||||
/* delete circuit through csm changes */
|
||||
switch (circuit->state) {
|
||||
case C_STATE_UP:
|
||||
isis_csm_state_change(IF_DOWN_FROM_Z, circuit,
|
||||
circuit->interface);
|
||||
if (circuit->state == C_STATE_UP || circuit->state == C_STATE_CONF)
|
||||
isis_csm_state_change(ISIS_DISABLE, circuit, circuit->area);
|
||||
break;
|
||||
case C_STATE_CONF:
|
||||
isis_csm_state_change(ISIS_DISABLE, circuit, circuit->area);
|
||||
break;
|
||||
case C_STATE_INIT:
|
||||
isis_csm_state_change(IF_DOWN_FROM_Z, circuit,
|
||||
circuit->interface);
|
||||
break;
|
||||
}
|
||||
|
||||
return NB_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user