summaryrefslogtreecommitdiffstats
path: root/zebra/irdp_interface.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-07-13 21:56:08 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-07-13 21:56:08 +0200
commitf1a05de982b2466907838a7e74d7d15ad4060db2 (patch)
treea41d430cf69e6603accec78238c8d86d59a389ad /zebra/irdp_interface.c
parentMerge pull request #807 from Jafaral/qua2frr (diff)
downloadfrr-f1a05de982b2466907838a7e74d7d15ad4060db2.tar.xz
frr-f1a05de982b2466907838a7e74d7d15ad4060db2.zip
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 'zebra/irdp_interface.c')
-rw-r--r--zebra/irdp_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c
index ca932ac43..5fce704af 100644
--- a/zebra/irdp_interface.c
+++ b/zebra/irdp_interface.c
@@ -480,7 +480,7 @@ DEFUN (ip_irdp_minadvertinterval,
else {
vty_outln (vty, "%% MinAdvertInterval must be less than or equal to "
"MaxAdvertInterval");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
}
@@ -507,7 +507,7 @@ DEFUN (ip_irdp_maxadvertinterval,
else {
vty_outln (vty, "%% MaxAdvertInterval must be greater than or equal to "
"MinAdvertInterval");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
}
@@ -561,7 +561,7 @@ DEFUN (ip_irdp_address_preference,
irdp=&zi->irdp;
ret = inet_aton(argv[idx_ipv4]->arg, &ip);
- if(!ret) return CMD_WARNING;
+ if(!ret) return CMD_WARNING_CONFIG_FAILED;
pref = atoi(argv[idx_number]->arg);
@@ -603,7 +603,7 @@ DEFUN (no_ip_irdp_address_preference,
ret = inet_aton(argv[idx_ipv4]->arg, &ip);
if (!ret)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
for (ALL_LIST_ELEMENTS (irdp->AdvPrefList, node, nnode, adv))
{