]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.c
zebra: Ensure master's ifname is known, even if slave comes up first
authorDinesh G Dutt <5016467+ddutt@users.noreply.github.com>
Tue, 13 Aug 2019 16:29:40 +0000 (16:29 +0000)
committerDinesh G Dutt <5016467+ddutt@users.noreply.github.com>
Tue, 13 Aug 2019 16:29:40 +0000 (16:29 +0000)
commitea7ec26162b248600626b81f8eddb74e6d059e36
treec2b874936d13d6c1123804f5345cc4fdaf43e0cd
parenteb4a93fb098a340e18cdfcfa4a2d1ebcf430ec83
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>
lib/if.c
lib/if.h
zebra/if_netlink.c
zebra/zebra_l2.c
zebra/zebra_l2.h