]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fix other table inactive when ip import-table is on 12818/head
authorzyxwvu Shi <i@shiyc.cn>
Wed, 15 Feb 2023 15:55:00 +0000 (23:55 +0800)
committerzyxwvu Shi <i@shiyc.cn>
Wed, 15 Feb 2023 15:55:30 +0000 (23:55 +0800)
commit207207c0c03e1108d1bae5cf345b7a29850e6ffd
tree11ed0cc329abe7eddd60cf16e4995d0294999ed8
parent7bdeb1cd8470b0ff4b95c9f5788cdabad35ac722
zebra: Fix other table inactive when ip import-table is on

In `rib_link`, if is_zebra_import_table_enabled returns
true, `rib_queue_add` will not called, resulting in other
table route node never processed. This actually should not
be dependent on whether the route is imported.

In `rib_delnode`, if is_zebra_import_table_enabled returns
true, it will use `rib_unlink` instead of enqueuing the
route node for process. There is no reason that imported
route nodes should not be reprocessed. Long ago, the
behaviour was dependent on whether the route_entry comes
from a table other than main.

Signed-off-by: zyxwvu Shi <i@shiyc.cn>
zebra/zebra_rib.c