diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vrf.h | 1 | ||||
| -rw-r--r-- | lib/vty.c | 15 | ||||
| -rw-r--r-- | lib/zclient.c | 1 |
3 files changed, 16 insertions, 1 deletions
@@ -51,6 +51,7 @@ enum { IFLA_VRF_UNSPEC, IFLA_VRF_TABLE, __IFLA_VRF_MAX }; */ #define VRF_CMD_HELP_STR "Specify the VRF\nThe VRF name\n" #define VRF_ALL_CMD_HELP_STR "Specify the VRF\nAll VRFs\n" +#define VRF_FULL_CMD_HELP_STR "Specify the VRF\nThe VRF name\nAll VRFs\n" /* * Pass some OS specific data up through @@ -2279,6 +2279,21 @@ static void vty_read_file(FILE *confp) case CMD_ERR_NO_MATCH: message = "No such command"; break; + case CMD_WARNING: + message = "Command returned Warning"; + break; + case CMD_WARNING_CONFIG_FAILED: + message = "Command returned Warning Config Failed"; + break; + case CMD_ERR_INCOMPLETE: + message = "Command returned Incomplete"; + break; + case CMD_ERR_EXEED_ARGC_MAX: + message = "Command exceeded maximum number of Arguments"; + break; + default: + message = "Command returned unhandled error message"; + break; } nl = strchr(vty->error_buf, '\n'); diff --git a/lib/zclient.c b/lib/zclient.c index d23e5fbd79..8ada2cf978 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -574,7 +574,6 @@ void zclient_init(struct zclient *zclient, int redist_default, /* Set default-information redistribute to zero. */ zclient->default_information = vrf_bitmap_init(); - ; if (zclient_debug) zlog_debug("zclient_start is called"); |
