summaryrefslogtreecommitdiffstats
path: root/babeld/babel_zebra.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-07-14 12:24:01 +0200
committerGitHub <noreply@github.com>2017-07-14 12:24:01 +0200
commit905c15079393987f8cfdd55c30e7e1a3248c8c48 (patch)
tree0a210b213a525f2880cd694b2e45833e8430d282 /babeld/babel_zebra.c
parentMerge pull request #817 from donaldsharp/babel_redist (diff)
parentvtysh: return non-zero for configuration failures (diff)
downloadfrr-905c15079393987f8cfdd55c30e7e1a3248c8c48.tar.xz
frr-905c15079393987f8cfdd55c30e7e1a3248c8c48.zip
Merge pull request #815 from dwalton76/CMD_WARNING_take2
vtysh: return non-zero for configuration failures
Diffstat (limited to 'babeld/babel_zebra.c')
-rw-r--r--babeld/babel_zebra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c
index 438dc9911..a3217076f 100644
--- a/babeld/babel_zebra.c
+++ b/babeld/babel_zebra.c
@@ -223,7 +223,7 @@ DEFUN (babel_redistribute_type,
if (type < 0) {
vty_outln (vty, "Invalid type %s", argv[1]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
zclient_redistribute (ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP, type, 0, VRF_DEFAULT);
@@ -245,7 +245,7 @@ DEFUN (no_babel_redistribute_type,
if (type < 0) {
vty_outln (vty, "Invalid type %s", argv[2]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
zclient_redistribute (ZEBRA_REDISTRIBUTE_DELETE, zclient, AFI_IP, type, 0, VRF_DEFAULT);
@@ -281,7 +281,7 @@ DEFUN (debug_babel,
vty_outln (vty, "Invalid type %s", argv[2]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
/* [Babel Command] */
@@ -311,7 +311,7 @@ DEFUN (no_debug_babel,
vty_outln (vty, "Invalid type %s", argv[3]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
#endif /* NO_DEBUG */