From 3e950780fedccacdd1e1267343b5b9baae204566 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 28 Oct 2018 20:49:10 +0900 Subject: move NewAPIRoutingPolicyFromConfigStruct() from server/ The config is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for config/. Signed-off-by: FUJITA Tomonori --- cmd/gobgpd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/gobgpd') diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go index b87c478d..23e7ec96 100644 --- a/cmd/gobgpd/main.go +++ b/cmd/gobgpd/main.go @@ -269,7 +269,7 @@ func main() { } } p := config.ConfigSetToRoutingPolicy(newConfig) - rp, err := server.NewAPIRoutingPolicyFromConfigStruct(p) + rp, err := table.NewAPIRoutingPolicyFromConfigStruct(p) if err != nil { log.Warn(err) } else { @@ -297,7 +297,7 @@ func main() { if updatePolicy { log.Info("Policy config is updated") p := config.ConfigSetToRoutingPolicy(newConfig) - rp, err := server.NewAPIRoutingPolicyFromConfigStruct(p) + rp, err := table.NewAPIRoutingPolicyFromConfigStruct(p) if err != nil { log.Warn(err) } else { -- cgit v1.2.3