]> git.proxmox.com Git - mirror_frr.git/commit
zebra: skip link-local routes when iterating over the RIB using the NB
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 19 May 2020 02:16:25 +0000 (23:16 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 16 May 2020 02:47:43 +0000 (23:47 -0300)
commit9b4d578f4118ef85ddb1afc5d01ddbcec7e3cce1
tree925a6edf18f73d8f4314eabbe7210f71d10449f4
parentbf6f7f7d54e77dfee82d3fb4c7b497865143a506
zebra: skip link-local routes when iterating over the RIB using the NB

The motivation for this change is that IPv6 link-local routes don't
conform to the zebra YANG module since they all have the same prefix
(fe80::/64), but zebra's YANG module require each route to have
an unique prefix (the key of the "rib" list). This violation can
cause problems when iterating over the RIB asynchronously, so skip
those routes.

At the end of the day nobody cares about link-local routes anyway :)

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_nb_state.c