summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nb_rpcs.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2020-02-06 22:32:34 +0100
committerSantosh P K <sapk@vmware.com>2020-04-16 17:17:59 +0200
commitd36228c956d54e1f0f8c24ea166f83c14b1450bc (patch)
tree35cc762bb512c72c6a07d11f3180a55e4621d9aa /zebra/zebra_nb_rpcs.c
parentzebra: nb rpc cb for clear evpn dup addr cmd (diff)
downloadfrr-d36228c956d54e1f0f8c24ea166f83c14b1450bc.tar.xz
frr-d36228c956d54e1f0f8c24ea166f83c14b1450bc.zip
zebra: convert clear evpn dup addr command to nb
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nb_rpcs.c')
-rw-r--r--zebra/zebra_nb_rpcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_nb_rpcs.c b/zebra/zebra_nb_rpcs.c
index c8b73e7c3..cf8efe40a 100644
--- a/zebra/zebra_nb_rpcs.c
+++ b/zebra/zebra_nb_rpcs.c
@@ -44,7 +44,7 @@ int clear_evpn_dup_addr_rpc(const char *xpath, const struct list *input,
if (yang_dup_choice
&& strcmp(yang_dup_choice->value, "all-case") == 0) {
- zebra_vxlan_clear_dup_detect_vni_all(NULL, zvrf);
+ zebra_vxlan_clear_dup_detect_vni_all(zvrf);
} else {
vni_t vni;
struct ipaddr host_ip = {.ipa_type = IPADDR_NONE};
@@ -64,7 +64,7 @@ int clear_evpn_dup_addr_rpc(const char *xpath, const struct list *input,
"input/clear-dup-choice/single-case/vni-id/vni-ipaddr");
if (yang_dup_mac) {
- yang_str2mac(value, &mac);
+ yang_str2mac(yang_dup_mac->value, &mac);
ret = zebra_vxlan_clear_dup_detect_vni_mac(
zvrf, vni, &mac);
} else if (yang_dup_ip) {