summaryrefslogtreecommitdiff
path: root/zebra/zebra_l2.h
diff options
context:
space:
mode:
authorDinesh G Dutt <5016467+ddutt@users.noreply.github.com>2019-08-13 16:29:40 +0000
committerDinesh G Dutt <5016467+ddutt@users.noreply.github.com>2019-08-13 16:29:40 +0000
commitea7ec26162b248600626b81f8eddb74e6d059e36 (patch)
treec2b874936d13d6c1123804f5345cc4fdaf43e0cd /zebra/zebra_l2.h
parenteb4a93fb098a340e18cdfcfa4a2d1ebcf430ec83 (diff)
zebra: Ensure master's ifname is known, even if slave comes up first
In if_netlink.c, when an interface structure, ifp, is first created, its possible for the master to come up after the slave interface does. This means, the slave interface has no way to display the master's ifname in show outputs. To fix this, we need to allow creation by ifindex instead of by ifname so that this issue is handled. Signed-off-by: Dinesh G Dutt<5016467+ddutt@users.noreply.github.com>
Diffstat (limited to 'zebra/zebra_l2.h')
-rw-r--r--zebra/zebra_l2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_l2.h b/zebra/zebra_l2.h
index 33aa2e3746..d9f0eec3f8 100644
--- a/zebra/zebra_l2.h
+++ b/zebra/zebra_l2.h
@@ -81,7 +81,7 @@ extern void zebra_l2_map_slave_to_bridge(struct zebra_l2info_brslave *br_slave);
extern void
zebra_l2_unmap_slave_from_bridge(struct zebra_l2info_brslave *br_slave);
extern void
-zebra_l2_map_slave_to_bond(struct zebra_l2info_bondslave *bond_slave);
+zebra_l2_map_slave_to_bond(struct zebra_l2info_bondslave *bond_slave, vrf_id_t);
extern void
zebra_l2_unmap_slave_from_bond(struct zebra_l2info_bondslave *bond_slave);
extern void zebra_l2_bridge_add_update(struct interface *ifp,