From b0fbcc6b1b18d2c9fe67437fe6432914b67c5508 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 8 Jan 2016 11:52:07 +0900 Subject: config: change enum value type to string for ease of configuration Signed-off-by: ISHIDA Wataru --- table/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table/path.go') 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, } -- cgit v1.2.3