[cmaster-next] [PATCH 7/7] bgpd: afi node creation fixes table init value

Philippe Guibert philippe.guibert at 6wind.com
Tue Dec 20 09:46:27 EST 2016


This commit is a complement of fix from previous commit: bgpd: VRF vty
configuration, RIB table creation. This permits enhancing route server
for VPNv4 address-families.

Signed-off-by: Philippe Guibert <philippe.guibert at 6wind.com>
---
 bgpd/bgp_route.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index a3bb95d5c1c1..66f375498870 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -97,6 +97,8 @@ bgp_afi_node_get (struct bgp_table *table, afi_t afi, safi_t safi, struct prefix
           struct bgp_table *newtab = bgp_table_init (afi, safi);
           if (prd)
             newtab->prd = *prd;
+          newtab->type = table->type;
+          newtab->owner = table->owner;
           prn->info = newtab;
         }
       else
-- 
2.1.4





More information about the dev mailing list