diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-28 20:49:10 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-28 21:41:11 +0900 |
commit | 3e950780fedccacdd1e1267343b5b9baae204566 (patch) | |
tree | 9ce9e5c038fba363b10763a23f96c08aaf8fd702 /cmd/gobgpd | |
parent | 5d7ecf5a9e68bcd1a71bc6468e0075f1f9d028ba (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cmd/gobgpd')
-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 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 { |