From f188e68e5cac90175f6cf0cd821ad3e3e6d25cbb Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Sat, 28 Mar 2020 10:16:30 -0700 Subject: zebra: debug flags for MAC-IP sync Filters for zebra debug logs. Signed-off-by: Anuradha Karuppiah --- zebra/debug.c | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'zebra/debug.c') diff --git a/zebra/debug.c b/zebra/debug.c index 630614f5ed..8c53ab73e4 100644 --- a/zebra/debug.c +++ b/zebra/debug.c @@ -116,6 +116,12 @@ DEFUN_NOSH (show_debugging_zebra, if (IS_ZEBRA_DEBUG_EVPN_MH_NH) vty_out(vty, " Zebra EVPN-MH nexthop debugging is on\n"); + if (IS_ZEBRA_DEBUG_EVPN_MH_MAC) + vty_out(vty, " Zebra EVPN-MH MAC debugging is on\n"); + + if (IS_ZEBRA_DEBUG_EVPN_MH_NEIGH) + vty_out(vty, " Zebra EVPN-MH Neigh debugging is on\n"); + hook_call(zebra_debug_show_debugging, vty); return CMD_SUCCESS; } @@ -329,13 +335,15 @@ DEFPY (debug_zebra_mlag, DEFPY (debug_zebra_evpn_mh, debug_zebra_evpn_mh_cmd, - "[no$no] debug zebra evpn mh ", + "[no$no] debug zebra evpn mh ", NO_STR DEBUG_STR "Zebra configuration\n" "EVPN\n" "Multihoming\n" "Ethernet Segment Debugging\n" + "MAC Debugging\n" + "Neigh Debugging\n" "Nexthop Debugging\n") { if (es) { @@ -345,6 +353,23 @@ DEFPY (debug_zebra_evpn_mh, SET_FLAG(zebra_debug_evpn_mh, ZEBRA_DEBUG_EVPN_MH_ES); } + if (mac) { + if (no) + UNSET_FLAG(zebra_debug_evpn_mh, + ZEBRA_DEBUG_EVPN_MH_MAC); + else + SET_FLAG(zebra_debug_evpn_mh, ZEBRA_DEBUG_EVPN_MH_MAC); + } + + if (neigh) { + if (no) + UNSET_FLAG(zebra_debug_evpn_mh, + ZEBRA_DEBUG_EVPN_MH_NEIGH); + else + SET_FLAG(zebra_debug_evpn_mh, + ZEBRA_DEBUG_EVPN_MH_NEIGH); + } + if (nh) { if (no) UNSET_FLAG(zebra_debug_evpn_mh, ZEBRA_DEBUG_EVPN_MH_NH); @@ -596,6 +621,14 @@ static int config_write_debug(struct vty *vty) vty_out(vty, "debug zebra evpn mh nh\n"); write++; } + if (IS_ZEBRA_DEBUG_EVPN_MH_MAC) { + vty_out(vty, "debug zebra evpn mh mac\n"); + write++; + } + if (IS_ZEBRA_DEBUG_EVPN_MH_NEIGH) { + vty_out(vty, "debug zebra evpn mh neigh\n"); + write++; + } if (IS_ZEBRA_DEBUG_PW) { vty_out(vty, "debug zebra pseudowires\n"); write++; -- cgit v1.2.3