From 6eadfc2d41547b74bab9c760ce7f61f40f1ad2c1 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 16 Jun 2021 15:52:14 +0300 Subject: [PATCH] isisd: fix adding a circuit to the wrong area When creating a new area, we're adding all circuits in the same VRF to this area. We should only add circuits configured with the same tag. Signed-off-by: Igor Ryzhov --- isisd/isisd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isisd.c b/isisd/isisd.c index 77b18f9cf7..05d8741991 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -402,7 +402,7 @@ struct isis_area *isis_area_create(const char *area_tag, const char *vrf_name) continue; circuit = ifp->info; - if (circuit) + if (circuit && strmatch(circuit->tag, area->area_tag)) isis_area_add_circuit(area, circuit); } }