summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table_manager.go')
-rw-r--r--table/table_manager.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 2b34f2c6..41630246 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -113,17 +113,20 @@ func ProcessMessage(m *bgp.BGPMessage, peerInfo *PeerInfo) []*Path {
type TableManager struct {
Tables map[bgp.RouteFamily]*Table
+ Vrfs map[string]*Vrf
localAsn uint32
owner string
}
func NewTableManager(owner string, rfList []bgp.RouteFamily) *TableManager {
- t := &TableManager{}
- t.Tables = make(map[bgp.RouteFamily]*Table)
+ t := &TableManager{
+ Tables: make(map[bgp.RouteFamily]*Table),
+ Vrfs: make(map[string]*Vrf),
+ owner: owner,
+ }
for _, rf := range rfList {
t.Tables[rf] = NewTable(rf)
}
- t.owner = owner
return t
}