Skip to content

Commit

Permalink
Merge pull request #922 from qlyoung/pim-cli
Browse files Browse the repository at this point in the history
pimd: some pim cli fixes
  • Loading branch information
Jafaral authored Aug 7, 2017
2 parents ac3da8f + 9643e2c commit 68b39ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pimd/pim_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5235,7 +5235,7 @@ DEFUN (ip_pim_rp_keep_alive,
"Seconds\n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
pim->rp_keep_alive_time = atoi(argv[3]->arg);
pim->rp_keep_alive_time = atoi(argv[4]->arg);
return CMD_SUCCESS;
}

Expand Down Expand Up @@ -5461,7 +5461,7 @@ DEFUN (ip_pim_ssm_prefix_list,
"Name of a prefix-list\n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
return pim_ssm_cmd_worker(pim, vty, argv[0]->arg);
return pim_ssm_cmd_worker(pim, vty, argv[4]->arg);
}

DEFUN (no_ip_pim_ssm_prefix_list,
Expand Down Expand Up @@ -5490,10 +5490,10 @@ DEFUN (no_ip_pim_ssm_prefix_list_name,
PIM_DECLVAR_CONTEXT(vrf, pim);
struct pim_ssm *ssm = pim->ssm_info;

if (ssm->plist_name && !strcmp(ssm->plist_name, argv[0]->arg))
if (ssm->plist_name && !strcmp(ssm->plist_name, argv[5]->arg))
return pim_ssm_cmd_worker(pim, vty, NULL);

vty_out(vty, "%% pim ssm prefix-list %s doesn't exist\n", argv[0]->arg);
vty_out(vty, "%% pim ssm prefix-list %s doesn't exist\n", argv[5]->arg);

return CMD_WARNING_CONFIG_FAILED;
}
Expand Down

0 comments on commit 68b39ad

Please sign in to comment.