]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: don't add ID to kernel nh_grp if not installed/queued
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 28 Jan 2020 19:33:10 +0000 (14:33 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 26 Mar 2020 14:48:15 +0000 (10:48 -0400)
commit1866b3afc259c565f42a9aab262ede27c142eea4
tree6f78c1e9b2d1d69c2bff06def9e9c4e4db2613ec
parent497ff5792f6a27702bf4ee33b79e1a80ffcf0a09
zebra: don't add ID to kernel nh_grp if not installed/queued

When we transform the nexthop group rb trees into a flat
array of IDs to send into the dataplane code (zebra_nhg_nhe2grp),
don't put an ID in there that has not been in installed or is
not currently queued to be installed into the dataplane.

Otherwise, if some of the nexthops fail to install, we will
still try to create a group with them and then the entire group
will fail.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c