diff options
| author | Chirag Shah <chirag@nvidia.com> | 2020-10-03 15:34:33 -0700 | 
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2020-10-05 13:15:59 -0700 | 
| commit | f63f5f1947c3b4a99e97494198520f03fb6b063e (patch) | |
| tree | 8c1071614c685dc9d8a68322ecd6cf0ce85b7e37 /ripd/rip_cli.c | |
| parent | 002bac8b5bc229f892c66e3c13c4c058a2b10e27 (diff) | |
*: add errmsg to nb rpc
Display human readable error message in northbound rpc
transaction failure. In case of vtysh nb client, the error
message will be displayed to user.
Testing:
bharat# clear evpn dup-addr vni 1002 ip 11.11.11.11
Error type: generic error
Error description: Requested IP's associated MAC aa:aa:aa:aa:aa:aa is still
in duplicate state
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'ripd/rip_cli.c')
| -rw-r--r-- | ripd/rip_cli.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index 5e64b7afdb..87098ece64 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -1012,7 +1012,7 @@ DEFPY_YANG (clear_ip_rip,  		listnode_add(input, yang_vrf);  	} -	ret = nb_cli_rpc("/frr-ripd:clear-rip-route", input, NULL); +	ret = nb_cli_rpc(vty, "/frr-ripd:clear-rip-route", input, NULL);  	list_delete(&input);  | 
