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, 1 insertions, 8 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 518b961e..31c46b6b 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -111,18 +111,16 @@ func ProcessMessage(m *bgp.BGPMessage, peerInfo *PeerInfo, timestamp time.Time)
type TableManager struct {
Tables map[bgp.RouteFamily]*Table
Vrfs map[string]*Vrf
- owner string
minLabel uint32
maxLabel uint32
nextLabel uint32
rfList []bgp.RouteFamily
}
-func NewTableManager(owner string, rfList []bgp.RouteFamily, minLabel, maxLabel uint32) *TableManager {
+func NewTableManager(rfList []bgp.RouteFamily, minLabel, maxLabel uint32) *TableManager {
t := &TableManager{
Tables: make(map[bgp.RouteFamily]*Table),
Vrfs: make(map[string]*Vrf),
- owner: owner,
minLabel: minLabel,
maxLabel: maxLabel,
nextLabel: minLabel,
@@ -163,10 +161,6 @@ func (manager *TableManager) getNextLabel() (uint32, error) {
return label, nil
}
-func (manager *TableManager) OwnerName() string {
- return manager.owner
-}
-
func (manager *TableManager) AddVrf(name string, rd bgp.RouteDistinguisherInterface, importRt, exportRt []bgp.ExtendedCommunityInterface, info *PeerInfo) ([]*Path, error) {
if _, ok := manager.Vrfs[name]; ok {
return nil, fmt.Errorf("vrf %s already exists", name)
@@ -223,7 +217,6 @@ func (manager *TableManager) calculate(destinations []*Destination) {
for _, destination := range destinations {
log.WithFields(log.Fields{
"Topic": "table",
- "Owner": manager.owner,
"Key": destination.GetNlri().String(),
}).Debug("Processing destination")
destination.Calculate()