summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_l2.c')
-rw-r--r--zebra/zebra_l2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_l2.c b/zebra/zebra_l2.c
index 345637c04..2ee711e1c 100644
--- a/zebra/zebra_l2.c
+++ b/zebra/zebra_l2.c
@@ -52,11 +52,10 @@
static void map_slaves_to_bridge(struct interface *br_if, int link)
{
struct vrf *vrf;
- struct listnode *node;
struct interface *ifp;
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
- for (ALL_LIST_ELEMENTS_RO(vrf->iflist, node, ifp)) {
+ RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) {
struct zebra_if *zif;
struct zebra_l2info_brslave *br_slave;