summaryrefslogtreecommitdiff
path: root/bgpd/rfapi/vnc_debug.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-07-13 19:56:08 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-07-13 19:56:08 +0000
commitf1a05de982b2466907838a7e74d7d15ad4060db2 (patch)
treea41d430cf69e6603accec78238c8d86d59a389ad /bgpd/rfapi/vnc_debug.c
parent4b8197a4f7c1b510c7a0eadc64c78e78ff98f578 (diff)
vtysh: return non-zero for configuration failures
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> This allows frr-reload.py (or anything else that scripts via vtysh) to know if the vtysh command worked or hit an error.
Diffstat (limited to 'bgpd/rfapi/vnc_debug.c')
-rw-r--r--bgpd/rfapi/vnc_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfapi/vnc_debug.c b/bgpd/rfapi/vnc_debug.c
index e43b152e50..53669ce3b2 100644
--- a/bgpd/rfapi/vnc_debug.c
+++ b/bgpd/rfapi/vnc_debug.c
@@ -86,7 +86,7 @@ DEFUN (debug_bgp_vnc,
}
}
vty_outln (vty, "Unknown debug flag: %s", argv[3]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
DEFUN (no_debug_bgp_vnc,
@@ -125,7 +125,7 @@ DEFUN (no_debug_bgp_vnc,
}
}
vty_outln (vty, "Unknown debug flag: %s", argv[3]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}