summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-30 18:56:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-05 17:24:36 +0900
commitbf54d911b23b35b4947dd31a93054855aa237d68 (patch)
treeb4adf743ad198a6f9258d3ea9532608243ee6fc8 /table/table.go
parent6b3e4a74e30130909fc6e86a9ce1d5c1b85c95c9 (diff)
table: publicate Table.getDestination()
we use this later from server module Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/table.go')
-rw-r--r--table/table.go4
1 files changed, 2 insertions, 2 deletions
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