From 96034c286bdf02acac954e6860e48f1705b820ee Mon Sep 17 00:00:00 2001 From: Satoshi Fujimoto Date: Thu, 31 May 2018 13:40:07 +0900 Subject: api: Add missing fields to Peer struct conversion functions Signed-off-by: Satoshi Fujimoto --- api/grpc_server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api') diff --git a/api/grpc_server.go b/api/grpc_server.go index 48aa547e..8fc6e085 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -342,6 +342,7 @@ func NewPeerFromConfigStruct(pconf *config.Neighbor) *Peer { Transport: &Transport{ RemotePort: uint32(pconf.Transport.Config.RemotePort), LocalAddress: pconf.Transport.Config.LocalAddress, + PassiveMode: pconf.Transport.Config.PassiveMode, }, AfiSafis: afiSafis, AddPaths: NewAddPathsFromConfigStruct(&pconf.AddPaths), @@ -1180,6 +1181,7 @@ func NewNeighborFromAPIStruct(a *Peer) (*config.Neighbor, error) { pconf.Config.RouteFlapDamping = a.Conf.RouteFlapDamping pconf.Config.Description = a.Conf.Description pconf.Config.PeerGroup = a.Conf.PeerGroup + pconf.Config.PeerType = config.IntToPeerTypeMap[int(a.Conf.PeerType)] pconf.Config.NeighborAddress = a.Conf.NeighborAddress pconf.Config.NeighborInterface = a.Conf.NeighborInterface pconf.Config.Vrf = a.Conf.Vrf -- cgit v1.2.3