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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 8ca127d6..acd23676 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -113,6 +113,7 @@ type TableManager struct {
minLabel uint32
maxLabel uint32
nextLabel uint32
+ rfList []bgp.RouteFamily
importPolicies []*Policy
defaultImportPolicy RouteType
exportPolicies []*Policy
@@ -127,6 +128,7 @@ func NewTableManager(owner string, rfList []bgp.RouteFamily, minLabel, maxLabel
minLabel: minLabel,
maxLabel: maxLabel,
nextLabel: minLabel,
+ rfList: rfList,
}
for _, rf := range rfList {
t.Tables[rf] = NewTable(rf)
@@ -134,6 +136,10 @@ func NewTableManager(owner string, rfList []bgp.RouteFamily, minLabel, maxLabel
return t
}
+func (manager *TableManager) GetRFlist() []bgp.RouteFamily {
+ return manager.rfList
+}
+
func (manager *TableManager) GetPolicy(d PolicyDirection) []*Policy {
switch d {
case POLICY_DIRECTION_IMPORT: