diff options
author | vivek <vivek@cumulusnetworks.com> | 2021-04-13 21:12:40 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-02-16 13:44:51 +0100 |
commit | f88889ba7a48c6126e7f389b023cd232cdee5078 (patch) | |
tree | d3c7debe998cfd053d7dd735b61209639f8ea1a7 /zebra | |
parent | bgpd: Prevent multipathing among EVPN and non-EVPN paths (diff) | |
download | frr-f88889ba7a48c6126e7f389b023cd232cdee5078.tar.xz frr-f88889ba7a48c6126e7f389b023cd232cdee5078.zip |
zebra: Add debug for bridge capability
Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
Ticket: #2609944
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 6e5fef3b3..823785ce1 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -2164,7 +2164,15 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (tb[IFLA_PROTO_DOWN]) netlink_proc_dplane_if_protodown(ifp->info, tb); - + if (IS_ZEBRA_IF_BRIDGE(ifp)) { + zif = ifp->info; + if (IS_ZEBRA_DEBUG_KERNEL) + zlog_debug( + "RTM_NEWLINK ADD for %s(%u), vlan-aware %d", + name, ifp->ifindex, + IS_ZEBRA_IF_BRIDGE_VLAN_AWARE( + zif)); + } } else if (ifp->vrf->vrf_id != vrf_id) { /* VRF change for an interface. */ if (IS_ZEBRA_DEBUG_KERNEL) @@ -2300,6 +2308,14 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) else if (IS_ZEBRA_IF_BOND_SLAVE(ifp) || was_bond_slave) zebra_l2if_update_bond_slave(ifp, bond_ifindex, !!bypass); + if (IS_ZEBRA_IF_BRIDGE(ifp)) { + if (IS_ZEBRA_DEBUG_KERNEL) + zlog_debug( + "RTM_NEWLINK update for %s(%u), vlan-aware %d", + name, ifp->ifindex, + IS_ZEBRA_IF_BRIDGE_VLAN_AWARE( + zif)); + } } zif = ifp->info; |