summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-08 11:52:07 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-09 05:17:57 -0800
commitb0fbcc6b1b18d2c9fe67437fe6432914b67c5508 (patch)
treeeb453913e7612460cdea586050d616cf2b91312e /table/path.go
parent26c03bb779fbb59bb3de1c98a2c9d65e192b50bb (diff)
config: change enum value type to string for ease of configuration
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go
index 05144812..94bc5fd0 100644
--- a/table/path.go
+++ b/table/path.go
@@ -208,7 +208,7 @@ func (path *Path) ToApiStruct(id string) *api.Path {
Pattrs: pattrs,
Age: int64(time.Now().Sub(path.timestamp).Seconds()),
IsWithdraw: path.IsWithdraw,
- Validation: int32(path.Validation),
+ Validation: int32(path.Validation.ToInt()),
Filtered: path.Filtered(id) > POLICY_DIRECTION_NONE,
Family: family,
}