diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-09-18 15:07:40 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-09-18 15:07:40 +0000 |
| commit | 7eb09438dd06175ab6e5e11578d0fa1d83aa3cae (patch) | |
| tree | cfbfc556023e17d748b62c029c881573677b1a84 /lib/ferr.h | |
| parent | a7dd519b58c9f68d0b74bd6fb5daaf88e84ece63 (diff) | |
lib: CMD_FERR_RETURN should return CMD_WARNING_CONFIG_FAILED
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Testing the patch:
root@cel-redxp-10[frr-dwalton76]# vtysh -c 'conf t' -c ' int vlan2' -c
'ip igmp join 233.200.0.1 10.1.1.1'
Failure joining IGMP group: multicast not enabled on interface vlan2
root@cel-redxp-10[frr-dwalton76]# echo $?
1
root@cel-redxp-10[frr-dwalton76]
Diffstat (limited to 'lib/ferr.h')
| -rw-r--r-- | lib/ferr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ferr.h b/lib/ferr.h index a570637372..c4f83f1710 100644 --- a/lib/ferr.h +++ b/lib/ferr.h @@ -162,7 +162,7 @@ void vty_print_error(struct vty *vty, ferr_r err, const char *msg, ...); } while (0) #define CMD_FERR_RETURN(func, ...) \ - CMD_FERR_DO(func, return CMD_WARNING, __VA_ARGS__) + CMD_FERR_DO(func, return CMD_WARNING_CONFIG_FAILED, __VA_ARGS__) #define CMD_FERR_GOTO(func, label, ...) \ CMD_FERR_DO(func, goto label, __VA_ARGS__) |
