]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Fix EVPN route nexthop config order 10467/head
authorXiao Liang <shaw.leon@gmail.com>
Fri, 22 Oct 2021 07:45:33 +0000 (15:45 +0800)
committermergify-bot <noreply@mergify.com>
Tue, 1 Feb 2022 16:25:16 +0000 (16:25 +0000)
EVPN route add should be queued to preserve the config order.
In particular, against deletion in rib_delete().

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
(cherry picked from commit 8244ba34aa479cbf32b48f0ffc7dbda16601fb77)

zebra/zapi_msg.c

index b839d1d754953aeea1de9a78a4a964cba6286e69..f9308b1aecdd382a8db3b06094bdc94e21215fd6 100644 (file)
@@ -1590,7 +1590,7 @@ static struct nexthop *nexthop_from_zapi(const struct zapi_nexthop *api_nh,
                        vtep_ip.ipa_type = IPADDR_V4;
                        memcpy(&(vtep_ip.ipaddr_v4), &(api_nh->gate.ipv4),
                               sizeof(struct in_addr));
-                       zebra_vxlan_evpn_vrf_route_add(
+                       zebra_rib_queue_evpn_route_add(
                                api_nh->vrf_id, &api_nh->rmac, &vtep_ip, p);
                }
                break;
@@ -1623,7 +1623,7 @@ static struct nexthop *nexthop_from_zapi(const struct zapi_nexthop *api_nh,
                        vtep_ip.ipa_type = IPADDR_V6;
                        memcpy(&vtep_ip.ipaddr_v6, &(api_nh->gate.ipv6),
                               sizeof(struct in6_addr));
-                       zebra_vxlan_evpn_vrf_route_add(
+                       zebra_rib_queue_evpn_route_add(
                                api_nh->vrf_id, &api_nh->rmac, &vtep_ip, p);
                }
                break;