summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2019-11-15 20:58:27 +0100
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2019-11-15 23:16:08 +0100
commit5c9a72ef477313ba1c6444e7d0cfc136bb7c66f2 (patch)
tree0d3802eb8d0dada317b997ffc531b8e0e12fd2a8 /pimd/pim_cmd.c
parentpimd: RPF change to unreachable was leaving a stale entry in the jp-agg list (diff)
downloadfrr-5c9a72ef477313ba1c6444e7d0cfc136bb7c66f2.tar.xz
frr-5c9a72ef477313ba1c6444e7d0cfc136bb7c66f2.zip
pimd: rename the upstream-join-desired command to "show ip pim channel"
This re-naming was needed because the JD state on an upstream is not just based on channel info i.e. we can have JD=true even if there is no downstream channel. The "show ip upstream-join-desired" command will be changed to display that info i.e. upstream's JD state instead of downstream channel params. The downstream channel params are now available via "show ip pim channel" PS: This change maybe reverted if upstream NAKs it. But there is a pressing need for it to debug some not-so-reproduible problems. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index e49566089..47710b6a3 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -2577,7 +2577,7 @@ static void pim_show_upstream(struct pim_instance *pim, struct vty *vty,
}
}
-static void pim_show_join_desired_helper(struct pim_instance *pim,
+static void pim_show_channel_helper(struct pim_instance *pim,
struct vty *vty,
struct pim_interface *pim_ifp,
struct pim_ifchannel *ch,
@@ -2636,7 +2636,7 @@ static void pim_show_join_desired_helper(struct pim_instance *pim,
}
}
-static void pim_show_join_desired(struct pim_instance *pim, struct vty *vty,
+static void pim_show_channel(struct pim_instance *pim, struct vty *vty,
bool uj)
{
struct pim_interface *pim_ifp;
@@ -2660,7 +2660,7 @@ static void pim_show_join_desired(struct pim_instance *pim, struct vty *vty,
RB_FOREACH (ch, pim_ifchannel_rb, &pim_ifp->ifchannel_rb) {
/* scan all interfaces */
- pim_show_join_desired_helper(pim, vty, pim_ifp, ch,
+ pim_show_channel_helper(pim, vty, pim_ifp, ch,
json, uj);
}
}
@@ -4809,14 +4809,14 @@ DEFUN (show_ip_pim_upstream_vrf_all,
return CMD_SUCCESS;
}
-DEFUN (show_ip_pim_upstream_join_desired,
- show_ip_pim_upstream_join_desired_cmd,
- "show ip pim [vrf NAME] upstream-join-desired [json]",
+DEFUN (show_ip_pim_channel,
+ show_ip_pim_channel_cmd,
+ "show ip pim [vrf NAME] channel [json]",
SHOW_STR
IP_STR
PIM_STR
VRF_CMD_HELP_STR
- "PIM upstream join-desired\n"
+ "PIM downstream channel info\n"
JSON_STR)
{
int idx = 2;
@@ -4826,7 +4826,7 @@ DEFUN (show_ip_pim_upstream_join_desired,
if (!vrf)
return CMD_WARNING;
- pim_show_join_desired(vrf->info, vty, uj);
+ pim_show_channel(vrf->info, vty, uj);
return CMD_SUCCESS;
}
@@ -10456,7 +10456,7 @@ void pim_cmd_init(void)
install_element(VIEW_NODE, &show_ip_pim_state_vrf_all_cmd);
install_element(VIEW_NODE, &show_ip_pim_upstream_cmd);
install_element(VIEW_NODE, &show_ip_pim_upstream_vrf_all_cmd);
- install_element(VIEW_NODE, &show_ip_pim_upstream_join_desired_cmd);
+ install_element(VIEW_NODE, &show_ip_pim_channel_cmd);
install_element(VIEW_NODE, &show_ip_pim_upstream_rpf_cmd);
install_element(VIEW_NODE, &show_ip_pim_rp_cmd);
install_element(VIEW_NODE, &show_ip_pim_rp_vrf_all_cmd);