mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 18:48:14 +00:00
isis: fix double-adding a circuit to the area
isis_circuit_enable can be called for an already enabled circuit. In this case we would add the circuit to the area multiple times. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
6eadfc2d41
commit
3ae43012b2
@ -78,12 +78,14 @@ DEFINE_HOOK(isis_circuit_del_hook, (struct isis_circuit *circuit), (circuit));
|
||||
|
||||
static void isis_circuit_enable(struct isis_circuit *circuit)
|
||||
{
|
||||
struct isis_area *area;
|
||||
struct isis_area *area = circuit->area;
|
||||
struct interface *ifp = circuit->interface;
|
||||
|
||||
if (!area) {
|
||||
area = isis_area_lookup(circuit->tag, ifp->vrf_id);
|
||||
if (area)
|
||||
isis_area_add_circuit(area, circuit);
|
||||
}
|
||||
|
||||
if (if_is_operative(ifp))
|
||||
isis_csm_state_change(IF_UP_FROM_Z, circuit, ifp);
|
||||
|
Loading…
Reference in New Issue
Block a user