diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2019-07-25 14:35:46 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2019-07-25 16:15:27 +0200 |
commit | f65d330cbcd24e782c65d8f7ef9338bb10f8739a (patch) | |
tree | 450d16edd4cebd150cf7ff0df982d5734eb091b0 /zebra | |
parent | vtysh: send "exit-vrf" command to staticd (diff) | |
download | frr-f65d330cbcd24e782c65d8f7ef9338bb10f8739a.tar.xz frr-f65d330cbcd24e782c65d8f7ef9338bb10f8739a.zip |
lib: fix missing M:A:C to X:X:X:X:X:X changes
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_vty.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 74baabbf2..4d18045fb 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -2383,7 +2383,7 @@ DEFUN (show_pbr_iptable, DEFPY (clear_evpn_dup_addr, clear_evpn_dup_addr_cmd, - "clear evpn dup-addr vni <all$vni_all |" CMD_VNI_RANGE"$vni [mac M:A:C$mac_val | ip <A.B.C.D|X:X::X:X>]>", + "clear evpn dup-addr vni <all$vni_all |" CMD_VNI_RANGE"$vni [mac X:X:X:X:X:X | ip <A.B.C.D|X:X::X:X>]>", CLEAR_STR "EVPN\n" "Duplicate address \n" @@ -2398,16 +2398,14 @@ DEFPY (clear_evpn_dup_addr, { struct zebra_vrf *zvrf; struct ipaddr host_ip = {.ipa_type = IPADDR_NONE }; - struct ethaddr mac_addr; int ret = CMD_SUCCESS; zvrf = zebra_vrf_get_evpn(); if (vni_str) { - if (mac_val) { - prefix_str2mac(mac_val, &mac_addr); + if (mac) { ret = zebra_vxlan_clear_dup_detect_vni_mac(vty, zvrf, vni, - &mac_addr); + &mac->eth_addr); } else if (ip) { if (sockunion_family(ip) == AF_INET) { host_ip.ipa_type = IPADDR_V4; |