summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-27 20:48:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-28 21:25:49 +0900
commitd032c3153e72ab3c01355a20098ac1b68d26cba5 (patch)
tree5123a1b7a2d1af5a7d95476efae028df0b6da535 /pkg/server/server.go
parent23ae91cfc1a541b7033126c284e9a2e5814836ca (diff)
move exported functions to generate api structs from config struct in server/
NewPeerFromConfigStruct() NewPeerGroupFromConfigStruct() NewGlobalFromConfigStruct() The config is an internal package so they should not be exported. We will remove the usage of the config in server/. This is a part of the goal. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/server.go')
-rw-r--r--pkg/server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 4aba3b50..a870429d 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -2477,7 +2477,7 @@ func (s *BgpServer) ListPeer(ctx context.Context, r *api.ListPeerRequest) ([]*ap
continue
}
// FIXME: should remove toConfig() conversion
- l = append(l, NewPeerFromConfigStruct(s.toConfig(peer, getAdvertised)))
+ l = append(l, config.NewPeerFromConfigStruct(s.toConfig(peer, getAdvertised)))
}
return nil
}, false)