From bf54d911b23b35b4947dd31a93054855aa237d68 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 30 Jul 2015 18:56:55 +0900 Subject: table: publicate Table.getDestination() we use this later from server module Signed-off-by: ISHIDA Wataru --- table/table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/table.go') diff --git a/table/table.go b/table/table.go index 0c7bb653..e514395e 100644 --- a/table/table.go +++ b/table/table.go @@ -140,7 +140,7 @@ func (t *Table) validateNlri(nlri bgp.AddrPrefixInterface) { func (t *Table) getOrCreateDest(nlri bgp.AddrPrefixInterface) *Destination { log.Debugf("getOrCreateDest Table type : %s", reflect.TypeOf(t)) tableKey := t.tableKey(nlri) - dest := t.getDestination(tableKey) + dest := t.GetDestination(tableKey) // If destination for given prefix does not exist we create it. if dest == nil { log.Debugf("getOrCreateDest dest with key %s is not found", tableKey) @@ -156,7 +156,7 @@ func (t *Table) GetDestinations() map[string]*Destination { func (t *Table) setDestinations(destinations map[string]*Destination) { t.destinations = destinations } -func (t *Table) getDestination(key string) *Destination { +func (t *Table) GetDestination(key string) *Destination { dest, ok := t.destinations[key] if ok { return dest -- cgit v1.2.3