summaryrefslogtreecommitdiff
path: root/ripd/rip_offset.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 /ripd/rip_offset.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 'ripd/rip_offset.c')
-rw-r--r--ripd/rip_offset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ripd/rip_offset.c b/ripd/rip_offset.c
index c047bb7768..3fb0daa86f 100644
--- a/ripd/rip_offset.c
+++ b/ripd/rip_offset.c
@@ -118,7 +118,7 @@ rip_offset_list_set (struct vty *vty, const char *alist, const char *direct_str,
else
{
vty_outln (vty, "Invalid direction: %s", direct_str);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
/* Check metric. */
@@ -126,7 +126,7 @@ rip_offset_list_set (struct vty *vty, const char *alist, const char *direct_str,
if (metric < 0 || metric > 16)
{
vty_outln (vty, "Invalid metric: %s", metric_str);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
/* Get offset-list structure with interface name. */
@@ -157,7 +157,7 @@ rip_offset_list_unset (struct vty *vty, const char *alist,
else
{
vty_outln (vty, "Invalid direction: %s", direct_str);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
/* Check metric. */
@@ -165,7 +165,7 @@ rip_offset_list_unset (struct vty *vty, const char *alist,
if (metric < 0 || metric > 16)
{
vty_outln (vty, "Invalid metric: %s", metric_str);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
/* Get offset-list structure with interface name. */
@@ -189,7 +189,7 @@ rip_offset_list_unset (struct vty *vty, const char *alist,
else
{
vty_outln (vty, "Can't find offset-list");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;
}