summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-06-08 07:06:19 -0400
committerGitHub <noreply@github.com>2018-06-08 07:06:19 -0400
commite78f9d0137e4f0fa783e282bae9bad15d5bd3ec2 (patch)
treec8a34e9958554c39de777fe3682be317e4c3e96f /pimd/pim_cmd.c
parentc4a81cae7e9838925c52dffa80478239e1951bd5 (diff)
parent4795fff748d6b55479b60013fd2dc8fdf8b4c7c2 (diff)
Merge pull request #2380 from donaldsharp/pim_stuff
pimd: Fix ecmp_enable and ecmp_rebalance_enable
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 81191eb96c..55222ecddb 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -4428,9 +4428,9 @@ static void pim_cmd_show_ip_multicast_helper(struct pim_instance *pim,
vty_out(vty, "\n");
vty_out(vty, "Upstream Join Timer: %d secs\n", qpim_t_periodic);
vty_out(vty, "Join/Prune Holdtime: %d secs\n", PIM_JP_HOLDTIME);
- vty_out(vty, "PIM ECMP: %s\n", qpim_ecmp_enable ? "Enable" : "Disable");
+ vty_out(vty, "PIM ECMP: %s\n", pim->ecmp_enable ? "Enable" : "Disable");
vty_out(vty, "PIM ECMP Rebalance: %s\n",
- qpim_ecmp_rebalance_enable ? "Enable" : "Disable");
+ pim->ecmp_rebalance_enable ? "Enable" : "Disable");
vty_out(vty, "\n");
@@ -5734,7 +5734,7 @@ DEFUN (ip_pim_ecmp,
"Enable PIM ECMP \n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
- qpim_ecmp_enable = 1;
+ pim->ecmp_enable = true;
return CMD_SUCCESS;
}
@@ -5748,7 +5748,7 @@ DEFUN (no_ip_pim_ecmp,
"Disable PIM ECMP \n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
- qpim_ecmp_enable = 0;
+ pim->ecmp_enable = false;
return CMD_SUCCESS;
}
@@ -5762,8 +5762,8 @@ DEFUN (ip_pim_ecmp_rebalance,
"Enable PIM ECMP Rebalance\n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
- qpim_ecmp_enable = 1;
- qpim_ecmp_rebalance_enable = 1;
+ pim->ecmp_enable = true;
+ pim->ecmp_rebalance_enable = true;
return CMD_SUCCESS;
}
@@ -5778,7 +5778,7 @@ DEFUN (no_ip_pim_ecmp_rebalance,
"Disable PIM ECMP Rebalance\n")
{
PIM_DECLVAR_CONTEXT(vrf, pim);
- qpim_ecmp_rebalance_enable = 0;
+ pim->ecmp_rebalance_enable = false;
return CMD_SUCCESS;
}