diff options
| author | Russ White <russ@riw.us> | 2023-10-31 13:23:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-31 13:23:57 -0400 |
| commit | 644386fe4824a9d0fbf02fe7df2de7fcb1fc2173 (patch) | |
| tree | b07db5247b8fb99ea74a3b1e1d3b524054e0378b /bgpd/bgp_zebra.c | |
| parent | dbe2f6ca7c8697500f9832375d1831b91261eb64 (diff) | |
| parent | deac143c6eef3c4e8cc1c6d2ef29d830d1ae5b86 (diff) | |
Merge pull request #14388 from pguibert6WIND/redistribute_table_bgp_2
Redistribute table bgp without copying data to the default routing table
Diffstat (limited to 'bgpd/bgp_zebra.c')
| -rw-r--r-- | bgpd/bgp_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index e53416044e..ff8a87d76b 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2051,7 +2051,8 @@ void bgp_redistribute_unset(struct bgp *bgp, afi_t afi, int type, struct listnode *node, *nnode; struct bgp_redist *red; - if (type != ZEBRA_ROUTE_TABLE || instance != 0) + if ((type != ZEBRA_ROUTE_TABLE && type != ZEBRA_ROUTE_TABLE_DIRECT) || + instance != 0) return _bgp_redistribute_unset(bgp, afi, type, instance); /* walk over instance */ |
