diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2018-12-02 19:08:22 -0800 | 
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2018-12-03 16:56:00 -0800 | 
| commit | 1883de666fccfe1c74124a5e87fbb9154fe7ae77 (patch) | |
| tree | 977a926e5f8c4fe5d00d8bf56efaa2ba2ea67e02 /zebra/zebra_vxlan.h | |
| parent | a1f0a9ac23cc0bcc456e15e5b69f23ad817f8b6e (diff) | |
zebra: dup addr detect clear cmd non-zero return
Clear dup address vni needs to return non-zero value
in case of command is not successful.
Ticket:CM-23122
Testing Done:
run clear command and check upon failure return code is non-zero.
root@TORS1:~# vtysh -c "clear evpn dup-addr vni 1000 ip 45.0.1.26"
% Requested IP's associated MAC 00:01:02:03:04:05 is still in duplicate
% state
root@TORS1:~# echo $?
1
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan.h')
| -rw-r--r-- | zebra/zebra_vxlan.h | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/zebra/zebra_vxlan.h b/zebra/zebra_vxlan.h index de120ae0eb..9eb8aa3570 100644 --- a/zebra/zebra_vxlan.h +++ b/zebra/zebra_vxlan.h @@ -185,17 +185,17 @@ extern void zebra_vxlan_evpn_vrf_route_add(vrf_id_t vrf_id,  extern void zebra_vxlan_evpn_vrf_route_del(vrf_id_t vrf_id,  					   struct ipaddr *vtep_ip,  					   struct prefix *host_prefix); -extern void zebra_vxlan_clear_dup_detect_vni_mac(struct vty *vty, -						 struct zebra_vrf *zvrf, -						 vni_t vni, -						 struct ethaddr *macaddr); -extern void zebra_vxlan_clear_dup_detect_vni_ip(struct vty *vty, +extern int zebra_vxlan_clear_dup_detect_vni_mac(struct vty *vty,  						struct zebra_vrf *zvrf, -						vni_t vni, struct ipaddr *ip); -extern void zebra_vxlan_clear_dup_detect_vni_all(struct vty *vty, -						 struct zebra_vrf *zvrf); -extern void zebra_vxlan_clear_dup_detect_vni(struct vty *vty, -					     struct zebra_vrf *zvrf, -					     vni_t vni); +						vni_t vni, +						struct ethaddr *macaddr); +extern int zebra_vxlan_clear_dup_detect_vni_ip(struct vty *vty, +					       struct zebra_vrf *zvrf, +					       vni_t vni, struct ipaddr *ip); +extern int zebra_vxlan_clear_dup_detect_vni_all(struct vty *vty, +						struct zebra_vrf *zvrf); +extern int zebra_vxlan_clear_dup_detect_vni(struct vty *vty, +					    struct zebra_vrf *zvrf, +					    vni_t vni);  #endif /* _ZEBRA_VXLAN_H */  | 
