summaryrefslogtreecommitdiff
path: root/lib/ns.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-08-30 19:18:02 +0400
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-08-31 15:14:01 +0000
commit851fcbaebec0e12945239b56f0e14f7c43d5966f (patch)
tree71b0b5d0d26a27045f7f64d0897aa10ac4ba6ccb /lib/ns.c
parent3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe (diff)
*: 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 'lib/ns.c')
-rw-r--r--lib/ns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ns.c b/lib/ns.c
index 5e03a43e2a..ba920e31b9 100644
--- a/lib/ns.c
+++ b/lib/ns.c
@@ -312,7 +312,7 @@ DEFUN_NOSH (ns_netns,
if (ns->name && strcmp(ns->name, pathname) != 0) {
vty_out(vty, "NS %u is already configured with NETNS %s\n",
ns->ns_id, ns->name);
- return CMD_WARNING_CONFIG_FAILED;
+ return CMD_WARNING;
}
if (!ns->name)