diff options
author | Renato Westphal <renato@openbsd.org> | 2017-08-31 18:23:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 18:23:25 +0200 |
commit | 8941a38520ca0c162015fd137311b2b9c6633cbc (patch) | |
tree | df0569b313fb6a09bd1a0e7e8ee0368f1b4ee667 /ripngd | |
parent | Merge pull request #1079 from qlyoung/fix-style-a (diff) | |
parent | *: return CMD_WARNING if command was already configured (diff) | |
download | frr-8941a38520ca0c162015fd137311b2b9c6633cbc.tar.xz frr-8941a38520ca0c162015fd137311b2b9c6633cbc.zip |
Merge pull request #1078 from dwalton76/ospfd-network-cmd-warning
*: return CMD_WARNING if command was already configured
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripngd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index d8017622d..e4368c9f9 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -2217,7 +2217,7 @@ DEFUN (ripng_route, if (rp->info) { vty_out(vty, "There is already same static route.\n"); route_unlock_node(rp); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } rp->info = (void *)1; @@ -2285,7 +2285,7 @@ DEFUN (ripng_aggregate_address, if (node->info) { vty_out(vty, "There is already same aggregate route.\n"); route_unlock_node(node); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } node->info = (void *)1; @@ -2621,7 +2621,7 @@ DEFUN (ripng_allow_ecmp, { if (ripng->ecmp) { vty_out(vty, "ECMP is already enabled.\n"); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } ripng->ecmp = 1; @@ -2637,7 +2637,7 @@ DEFUN (no_ripng_allow_ecmp, { if (!ripng->ecmp) { vty_out(vty, "ECMP is already disabled.\n"); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } ripng->ecmp = 0; |