summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-19 15:56:43 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-20 03:41:07 -0800
commitb7771896ec4a4d739428c39190ad0166b87d4e00 (patch)
tree28d0bb1c2394b578dc620563bf3cae20ebbb5bbd /table/table.go
parenta6bb09a8478be3914f58d7b5a78daa9128cc64b2 (diff)
table: export getNlri method in Path
peer codes need it. Also remove putNlri() because NLRI is unlikely changed after path creation because NLRI is used as sorta key value for path.
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 9b1aaa08..85110f7b 100644
--- a/table/table.go
+++ b/table/table.go
@@ -62,8 +62,8 @@ func insert(table Table, path Path) Destination {
var dest Destination
table.validatePath(path)
- table.validateNlri(path.getNlri())
- dest = getOrCreateDest(table, path.getNlri())
+ table.validateNlri(path.GetNlri())
+ dest = getOrCreateDest(table, path.GetNlri())
if path.isWithdraw() {
// withdraw insert