From f63f5f1947c3b4a99e97494198520f03fb6b063e Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Sat, 3 Oct 2020 15:34:33 -0700 Subject: *: 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 --- ripngd/ripng_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripngd') diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c index f66de175f..365082f80 100644 --- a/ripngd/ripng_cli.c +++ b/ripngd/ripng_cli.c @@ -496,7 +496,7 @@ DEFPY_YANG (clear_ipv6_rip, listnode_add(input, yang_vrf); } - ret = nb_cli_rpc("/frr-ripngd:clear-ripng-route", input, NULL); + ret = nb_cli_rpc(vty, "/frr-ripngd:clear-ripng-route", input, NULL); list_delete(&input); -- cgit v1.2.3