diff options
author | Russ White <russ@riw.us> | 2023-10-31 18:23:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 18:23:57 +0100 |
commit | 644386fe4824a9d0fbf02fe7df2de7fcb1fc2173 (patch) | |
tree | b07db5247b8fb99ea74a3b1e1d3b524054e0378b /bgpd/bgp_zebra.c | |
parent | Merge pull request #14699 from FRIDM636/no_commands_pcep_msd (diff) | |
parent | topotests: add bgp_redistribute_table test (diff) | |
download | frr-644386fe4824a9d0fbf02fe7df2de7fcb1fc2173.tar.xz frr-644386fe4824a9d0fbf02fe7df2de7fcb1fc2173.zip |
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 e53416044..ff8a87d76 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 */ |