diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-08-30 17:18:02 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-08-31 17:14:01 +0200 |
commit | 851fcbaebec0e12945239b56f0e14f7c43d5966f (patch) | |
tree | 71b0b5d0d26a27045f7f64d0897aa10ac4ba6ccb /ripd | |
parent | Merge pull request #1054 from dslicenc/eigrp-connected (diff) | |
download | frr-851fcbaebec0e12945239b56f0e14f7c43d5966f.tar.xz frr-851fcbaebec0e12945239b56f0e14f7c43d5966f.zip |
*: return CMD_WARNING if command was already configured
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
If the user configures some command that is already in the config we
should return CMD_WARNING instead of CMD_WARNING_CONFIG_FAILED
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/ripd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index d9b38bba8..cab25814c 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -2880,7 +2880,7 @@ DEFUN (rip_route, if (node->info) { vty_out(vty, "There is already same static route.\n"); route_unlock_node(node); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } node->info = (void *)1; @@ -3352,7 +3352,7 @@ DEFUN (rip_allow_ecmp, { if (rip->ecmp) { vty_out(vty, "ECMP is already enabled.\n"); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } rip->ecmp = 1; @@ -3368,7 +3368,7 @@ DEFUN (no_rip_allow_ecmp, { if (!rip->ecmp) { vty_out(vty, "ECMP is already disabled.\n"); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } rip->ecmp = 0; |