]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix kernel-route's deletion on vrf 5724/head
authorHiroki Shirokura <slank.dev@gmail.com>
Fri, 24 Jan 2020 04:45:54 +0000 (23:45 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 4 Feb 2020 15:19:31 +0000 (10:19 -0500)
commit31d682a2ee647fdc0636bebb8129e3cf5922151f
tree84fb1845a19e9983f7f825cba85634157996e213
parent9beb0136c36ac2c201ba6574c7103f36c7920cbf
zebra: fix kernel-route's deletion on vrf

zebra can catch the kernel's route deletion by netlink.
but current FRR can't delete kernel-route on vrf(l3mdev)
when kernel operator delete the route on out-side of FRR.
It looks problem about kernel-route deletion.

This problem is caused around _nexthop_cmp_no_labels(nh1,nh2)
that checks the each nexthop's member 'vrf_id'.
And _nexthop_cmp_no_labels's caller doesn't set the vrf_id
of nexthop structure. This commit fix that case.

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c