]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fix other table inactive when ip import-table is on 12859/head
authorzyxwvu Shi <i@shiyc.cn>
Wed, 15 Feb 2023 15:55:00 +0000 (23:55 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 21 Feb 2023 16:38:22 +0000 (16:38 +0000)
commit682a1fea98629ae6a4e58c9dbcb788759d4ed451
treeb49c936c41f2ee38f45638e4b401aaad87bfc8d5
parent6deccd59959f6f3862ec3102b6bf7f4cbdd5dd67
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>
(cherry picked from commit 207207c0c03e1108d1bae5cf345b7a29850e6ffd)
zebra/zebra_rib.c