summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-10-31 18:23:57 +0100
committerGitHub <noreply@github.com>2023-10-31 18:23:57 +0100
commit644386fe4824a9d0fbf02fe7df2de7fcb1fc2173 (patch)
treeb07db5247b8fb99ea74a3b1e1d3b524054e0378b /bgpd/bgp_zebra.c
parentMerge pull request #14699 from FRIDM636/no_commands_pcep_msd (diff)
parenttopotests: add bgp_redistribute_table test (diff)
downloadfrr-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.c3
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 */