]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.h
zebra: display rpc error msg to vtysh
authorChirag Shah <chirag@nvidia.com>
Sat, 3 Oct 2020 23:12:31 +0000 (16:12 -0700)
committerChirag Shah <chirag@nvidia.com>
Mon, 5 Oct 2020 20:57:54 +0000 (13:57 -0700)
commit9bee02322f69e34c54510f8dff245e52794fdfc8
tree13d272969c3abf5a94b472fb9312a186df339b1b
parentf63f5f1947c3b4a99e97494198520f03fb6b063e
zebra: display rpc error msg to vtysh

Zebra's clear duplicate detect command is rpc converted.
There is condition where cli fails with human readable message.
Using northboun's errmsg buffer to display error message to
user.

Testing:

bharat# clear evpn dup-addr vni 1002 ip 2011:11::11
Error type: generic error
Error description: Requested IP's associated MAC aa:aa:aa:aa:aa:aa is still in duplicate state

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>
zebra/zebra_nb_rpcs.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h