mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 07:30:53 +00:00
pim-msdp: cleanup debug commands
And fixup display spacing. No functional change. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
This commit is contained in:
parent
15ad0c71e0
commit
886d1e80f6
@ -4837,6 +4837,8 @@ DEFUN (debug_pim,
|
|||||||
PIM_DO_DEBUG_PIM_EVENTS;
|
PIM_DO_DEBUG_PIM_EVENTS;
|
||||||
PIM_DO_DEBUG_PIM_PACKETS;
|
PIM_DO_DEBUG_PIM_PACKETS;
|
||||||
PIM_DO_DEBUG_PIM_TRACE;
|
PIM_DO_DEBUG_PIM_TRACE;
|
||||||
|
PIM_DO_DEBUG_MSDP_EVENTS;
|
||||||
|
PIM_DO_DEBUG_MSDP_PACKETS;
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4850,6 +4852,8 @@ DEFUN (no_debug_pim,
|
|||||||
PIM_DONT_DEBUG_PIM_EVENTS;
|
PIM_DONT_DEBUG_PIM_EVENTS;
|
||||||
PIM_DONT_DEBUG_PIM_PACKETS;
|
PIM_DONT_DEBUG_PIM_PACKETS;
|
||||||
PIM_DONT_DEBUG_PIM_TRACE;
|
PIM_DONT_DEBUG_PIM_TRACE;
|
||||||
|
PIM_DONT_DEBUG_MSDP_EVENTS;
|
||||||
|
PIM_DONT_DEBUG_MSDP_PACKETS;
|
||||||
|
|
||||||
PIM_DONT_DEBUG_PIM_PACKETDUMP_SEND;
|
PIM_DONT_DEBUG_PIM_PACKETDUMP_SEND;
|
||||||
PIM_DONT_DEBUG_PIM_PACKETDUMP_RECV;
|
PIM_DONT_DEBUG_PIM_PACKETDUMP_RECV;
|
||||||
@ -5632,7 +5636,7 @@ ip_msdp_show_peers(struct vty *vty, u_char uj)
|
|||||||
if (uj) {
|
if (uj) {
|
||||||
json = json_object_new_object();
|
json = json_object_new_object();
|
||||||
} else {
|
} else {
|
||||||
vty_out(vty, "Peer Local State Uptime SaCnt%s", VTY_NEWLINE);
|
vty_out(vty, "Peer Local State Uptime SaCnt%s", VTY_NEWLINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO(msdp->peer_list, mpnode, mp)) {
|
for (ALL_LIST_ELEMENTS_RO(msdp->peer_list, mpnode, mp)) {
|
||||||
@ -5654,7 +5658,7 @@ ip_msdp_show_peers(struct vty *vty, u_char uj)
|
|||||||
json_object_int_add(json_row, "saCount", mp->sa_cnt);
|
json_object_int_add(json_row, "saCount", mp->sa_cnt);
|
||||||
json_object_object_add(json, peer_str, json_row);
|
json_object_object_add(json, peer_str, json_row);
|
||||||
} else {
|
} else {
|
||||||
vty_out(vty, "%-15s %15s %11s %8s %5d%s",
|
vty_out(vty, "%-15s %15s %11s %8s %6d%s",
|
||||||
peer_str, local_str, state_str,
|
peer_str, local_str, state_str,
|
||||||
timebuf, mp->sa_cnt, VTY_NEWLINE);
|
timebuf, mp->sa_cnt, VTY_NEWLINE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user