summaryrefslogtreecommitdiff
path: root/ripngd/ripng_interface.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 /ripngd/ripng_interface.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 'ripngd/ripng_interface.c')
-rw-r--r--ripngd/ripng_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index d739540c2d..8daad08035 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -858,7 +858,7 @@ static int
ripng_passive_interface_set (struct vty *vty, const char *ifname)
{
if (ripng_passive_interface_lookup (ifname) >= 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
vector_set (Vripng_passive_interface, strdup (ifname));
@@ -875,7 +875,7 @@ ripng_passive_interface_unset (struct vty *vty, const char *ifname)
i = ripng_passive_interface_lookup (ifname);
if (i < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
str = vector_slot (Vripng_passive_interface, i);
free (str);
@@ -962,7 +962,7 @@ DEFUN (ripng_network,
{
vty_outln (vty, "There is same network configuration %s",
argv[idx_if_or_addr]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;
@@ -991,7 +991,7 @@ DEFUN (no_ripng_network,
if (ret < 0)
{
vty_outln (vty, "can't find network %s",argv[idx_if_or_addr]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;