summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r--ripd/ripd.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 9cb1ae8cf..ca2bad6de 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -3290,7 +3290,7 @@ DEFUN (no_rip_distance_source_access_list,
}
/* Update ECMP routes to zebra when ECMP is disabled. */
-static void rip_ecmp_disable(void)
+void rip_ecmp_disable(void)
{
struct route_node *rp;
struct rip_info *rinfo, *tmp_rinfo;
@@ -3327,38 +3327,6 @@ static void rip_ecmp_disable(void)
}
}
-DEFUN (rip_allow_ecmp,
- rip_allow_ecmp_cmd,
- "allow-ecmp",
- "Allow Equal Cost MultiPath\n")
-{
- if (rip->ecmp) {
- vty_out(vty, "ECMP is already enabled.\n");
- return CMD_WARNING;
- }
-
- rip->ecmp = 1;
- zlog_info("ECMP is enabled.");
- return CMD_SUCCESS;
-}
-
-DEFUN (no_rip_allow_ecmp,
- no_rip_allow_ecmp_cmd,
- "no allow-ecmp",
- NO_STR
- "Allow Equal Cost MultiPath\n")
-{
- if (!rip->ecmp) {
- vty_out(vty, "ECMP is already disabled.\n");
- return CMD_WARNING;
- }
-
- rip->ecmp = 0;
- zlog_info("ECMP is disabled.");
- rip_ecmp_disable();
- return CMD_SUCCESS;
-}
-
/* Print out routes update time. */
static void rip_vty_out_uptime(struct vty *vty, struct rip_info *rinfo)
{
@@ -3684,10 +3652,6 @@ static int config_write_rip(struct vty *vty)
? rdistance->access_list
: "");
- /* ECMP configuration. */
- if (rip->ecmp)
- vty_out(vty, " allow-ecmp\n");
-
/* RIP static route configuration. */
for (rn = route_top(rip->route); rn; rn = route_next(rn))
if (rn->info)
@@ -3982,8 +3946,6 @@ void rip_init(void)
install_element(RIP_NODE, &no_rip_distance_source_cmd);
install_element(RIP_NODE, &rip_distance_source_access_list_cmd);
install_element(RIP_NODE, &no_rip_distance_source_access_list_cmd);
- install_element(RIP_NODE, &rip_allow_ecmp_cmd);
- install_element(RIP_NODE, &no_rip_allow_ecmp_cmd);
/* Debug related init. */
rip_debug_init();