]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix adding a circuit to the wrong area
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 16 Jun 2021 12:52:14 +0000 (15:52 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 18 Jun 2021 14:00:01 +0000 (17:00 +0300)
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 <iryzhov@nfware.com>
isisd/isisd.c

index 77b18f9cf7b67b20ea53142386d131364d6e6b4d..05d87419913f5bdfa40e46c6e552deb642910db1 100644 (file)
@@ -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);
                }
        }