From 5d7ecf5a9e68bcd1a71bc6468e0075f1f9d028ba Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 27 Oct 2018 21:43:01 +0900 Subject: move NewAPIPolicyAssignmentFromTableStruct() from server/ The table is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for table/. Signed-off-by: FUJITA Tomonori --- cmd/gobgpd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go index 4bff160f..b87c478d 100644 --- a/cmd/gobgpd/main.go +++ b/cmd/gobgpd/main.go @@ -333,7 +333,7 @@ func main() { def := toDefaultTable(a.DefaultImportPolicy) ps := toPolicies(a.ImportPolicyList) apiServer.SetPolicyAssignment(context.Background(), &api.SetPolicyAssignmentRequest{ - Assignment: server.NewAPIPolicyAssignmentFromTableStruct(&table.PolicyAssignment{ + Assignment: table.NewAPIPolicyAssignmentFromTableStruct(&table.PolicyAssignment{ Name: table.GLOBAL_RIB_NAME, Type: table.POLICY_DIRECTION_IMPORT, Policies: ps, @@ -344,7 +344,7 @@ func main() { def = toDefaultTable(a.DefaultExportPolicy) ps = toPolicies(a.ExportPolicyList) apiServer.SetPolicyAssignment(context.Background(), &api.SetPolicyAssignmentRequest{ - Assignment: server.NewAPIPolicyAssignmentFromTableStruct(&table.PolicyAssignment{ + Assignment: table.NewAPIPolicyAssignmentFromTableStruct(&table.PolicyAssignment{ Name: table.GLOBAL_RIB_NAME, Type: table.POLICY_DIRECTION_EXPORT, Policies: ps, -- cgit v1.2.3