Skip to content

Commit

Permalink
Merge pull request #15661 from routingrocks/master
Browse files Browse the repository at this point in the history
pimd:  pim mlag summary should display the down connection status.
  • Loading branch information
ton31337 authored Apr 11, 2024
2 parents 1596d99 + 81f10b3 commit 0176f62
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pimd/pim_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1941,12 +1941,15 @@ DEFUN (show_ip_pim_mlag_summary,
json_object *json_stat = NULL;

json = json_object_new_object();
if (router->mlag_flags & PIM_MLAGF_LOCAL_CONN_UP)
json_object_boolean_true_add(json, "mlagConnUp");
if (router->mlag_flags & PIM_MLAGF_PEER_CONN_UP)
json_object_boolean_true_add(json, "mlagPeerConnUp");
if (router->mlag_flags & PIM_MLAGF_PEER_ZEBRA_UP)
json_object_boolean_true_add(json, "mlagPeerZebraUp");
json_object_boolean_add(json, "mlagConnUp",
CHECK_FLAG(router->mlag_flags,
PIM_MLAGF_LOCAL_CONN_UP));
json_object_boolean_add(json, "mlagPeerConnUp",
CHECK_FLAG(router->mlag_flags,
PIM_MLAGF_PEER_CONN_UP));
json_object_boolean_add(json, "mlagPeerZebraUp",
CHECK_FLAG(router->mlag_flags,
PIM_MLAGF_PEER_ZEBRA_UP));
json_object_string_add(json, "mlagRole",
mlag_role2str(router->mlag_role,
role_buf, sizeof(role_buf)));
Expand Down

0 comments on commit 0176f62

Please sign in to comment.