From d032c3153e72ab3c01355a20098ac1b68d26cba5 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 27 Oct 2018 20:48:18 +0900 Subject: 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 --- pkg/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/server/server.go') 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) -- cgit v1.2.3