summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-28 20:50:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-28 21:45:41 +0900
commitf1c55ca0bf844c500a5516ddcd34feb78aed833a (patch)
treed5966092c04068e655e4b4ec54aca3e4aea287a2 /pkg/server/server.go
parent3e950780fedccacdd1e1267343b5b9baae204566 (diff)
server: make NewPolicyFromApiStruct() unexported
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/server.go')
-rw-r--r--pkg/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 379daa67..d250b099 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -3097,7 +3097,7 @@ func (s *BgpServer) AddPolicy(ctx context.Context, r *api.AddPolicyRequest) erro
if r == nil || r.Policy == nil {
return fmt.Errorf("invalid request")
}
- p, err := NewPolicyFromApiStruct(r.Policy)
+ p, err := newPolicyFromApiStruct(r.Policy)
if err == nil {
err = s.policy.AddPolicy(p, r.ReferExistingStatements)
}
@@ -3110,7 +3110,7 @@ func (s *BgpServer) DeletePolicy(ctx context.Context, r *api.DeletePolicyRequest
if r == nil || r.Policy == nil {
return fmt.Errorf("invalid request")
}
- p, err := NewPolicyFromApiStruct(r.Policy)
+ p, err := newPolicyFromApiStruct(r.Policy)
if err != nil {
return err
}