summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-27 06:26:18 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-27 06:27:00 -0800
commiteff70c21375742b44ae5ebfd845dba38d0f3fcfc (patch)
treeb9d6cceaa69fc74250265f2df2262e65fe23ebda /table/table.go
parentf5447b5599060a60acbf61ab7310807d85799628 (diff)
support IPv6_UC route family
Signed-off-by: FUJITA Tomonori <fujita.tomonori@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 a9d742aa..7021f025 100644
--- a/table/table.go
+++ b/table/table.go
@@ -63,7 +63,7 @@ func (td *TableDefault) MarshalJSON() ([]byte, error) {
})
}
-func (td *TableDefault) getRoutefamily() RouteFamily {
+func (td *TableDefault) GetRoutefamily() RouteFamily {
return td.ROUTE_FAMILY
}
@@ -142,7 +142,7 @@ func deleteDest(table Table, dest Destination) {
}
func (td *TableDefault) validatePath(path Path) {
- if path == nil || path.getRouteFamily() != td.ROUTE_FAMILY {
+ if path == nil || path.GetRouteFamily() != td.ROUTE_FAMILY {
log.Errorf("Invalid path. Expected instance of %s route family path, got %s.", td.ROUTE_FAMILY, path)
}
}