mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
Merge pull request #3894 from donaldsharp/install_replace
zebra: When installing a new route always use REPLACE
This commit is contained in:
commit
700e9faa28
@ -1466,10 +1466,9 @@ static int netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx)
|
||||
req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
|
||||
req.n.nlmsg_flags = NLM_F_CREATE | NLM_F_REQUEST;
|
||||
|
||||
if (dplane_ctx_get_op(ctx) == DPLANE_OP_ROUTE_UPDATE) {
|
||||
if ((p->family == AF_INET) || v6_rr_semantics)
|
||||
if ((cmd == RTM_NEWROUTE) &&
|
||||
((p->family == AF_INET) || v6_rr_semantics))
|
||||
req.n.nlmsg_flags |= NLM_F_REPLACE;
|
||||
}
|
||||
|
||||
req.n.nlmsg_type = cmd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user