mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 21:54:01 +00:00
Merge pull request #15661 from routingrocks/master
pimd: pim mlag summary should display the down connection status.
This commit is contained in:
commit
0176f62b30
@ -1941,12 +1941,15 @@ DEFUN (show_ip_pim_mlag_summary,
|
|||||||
json_object *json_stat = NULL;
|
json_object *json_stat = NULL;
|
||||||
|
|
||||||
json = json_object_new_object();
|
json = json_object_new_object();
|
||||||
if (router->mlag_flags & PIM_MLAGF_LOCAL_CONN_UP)
|
json_object_boolean_add(json, "mlagConnUp",
|
||||||
json_object_boolean_true_add(json, "mlagConnUp");
|
CHECK_FLAG(router->mlag_flags,
|
||||||
if (router->mlag_flags & PIM_MLAGF_PEER_CONN_UP)
|
PIM_MLAGF_LOCAL_CONN_UP));
|
||||||
json_object_boolean_true_add(json, "mlagPeerConnUp");
|
json_object_boolean_add(json, "mlagPeerConnUp",
|
||||||
if (router->mlag_flags & PIM_MLAGF_PEER_ZEBRA_UP)
|
CHECK_FLAG(router->mlag_flags,
|
||||||
json_object_boolean_true_add(json, "mlagPeerZebraUp");
|
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",
|
json_object_string_add(json, "mlagRole",
|
||||||
mlag_role2str(router->mlag_role,
|
mlag_role2str(router->mlag_role,
|
||||||
role_buf, sizeof(role_buf)));
|
role_buf, sizeof(role_buf)));
|
||||||
|
Loading…
Reference in New Issue
Block a user