]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix forbiding 'redistribute table' usage on non default instances 14409/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 13 Sep 2023 09:36:23 +0000 (11:36 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 13 Sep 2023 10:23:20 +0000 (12:23 +0200)
commit46d792409c4317cf6a603b685a00b680af7bc793
treebe870cc0ff32ed607e9e496b8764ce0590519aeb
parentabaa68f213da6f3509351ef729aae609719041d6
bgpd: fix forbiding 'redistribute table' usage on non default instances

The 'redistribute table' command can be used by configuration on a
non default BGP instance, but this command does not work for multiple
reasons:
- The route entries configured on a given table are always configured
from the default vrf. This constraint prevents from redistributing a
prefix from the default vrf to an other non default bgp instance.
- The importation of route entries requires 'ip import-table' on vrfs
and this command is not available

Fix this by preventing from configuring this kind of redistribution
on non default bgp instances.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c