From 851fcbaebec0e12945239b56f0e14f7c43d5966f Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Wed, 30 Aug 2017 19:18:02 +0400 Subject: *: return CMD_WARNING if command was already configured Signed-off-by: Daniel Walton If the user configures some command that is already in the config we should return CMD_WARNING instead of CMD_WARNING_CONFIG_FAILED --- babeld/babel_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'babeld') diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index 9fa32ee6f..bf560b829 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -292,7 +292,7 @@ DEFUN (babel_network, if (ret < 0) { vty_out (vty, "There is same network configuration %s\n", argv[1]->arg); - return CMD_WARNING_CONFIG_FAILED; + return CMD_WARNING; } return CMD_SUCCESS; -- cgit v1.2.3