diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-27 21:43:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-28 21:36:37 +0900 |
commit | 5d7ecf5a9e68bcd1a71bc6468e0075f1f9d028ba (patch) | |
tree | e2573a7156d685732720bfb74e7e4220ab13e533 /cmd | |
parent | d032c3153e72ab3c01355a20098ac1b68d26cba5 (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgpd/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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, |