From a17832195c5fc42d6d0ec3dd7cc4868694bed88d Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Fri, 4 Nov 2016 13:19:47 +0900 Subject: support neighbor belongs to VRF $ gobgp vrf add red rd 100:100 rt both 100:100 $ gobgp neighbor add 10.0.0.1 as 2 vrf red $ gobgp vrf red neighbor Peer AS Up/Down State |#Advertised Received Accepted 10.0.0.1 2 never Active | 0 0 0 Signed-off-by: Wataru Ishida --- api/grpc_server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/grpc_server.go') diff --git a/api/grpc_server.go b/api/grpc_server.go index 36924fb0..654ef78c 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -125,6 +125,7 @@ func (s *Server) GetNeighbor(ctx context.Context, arg *GetNeighborRequest) (*Get PrefixLimits: prefixLimits, LocalAddress: localAddress, NeighborInterface: pconf.Config.NeighborInterface, + Vrf: pconf.Config.Vrf, }, Info: &PeerState{ BgpState: bgp.FSMState(s.SessionState.ToInt()).String(), @@ -777,6 +778,7 @@ func (s *Server) AddNeighbor(ctx context.Context, arg *AddNeighborRequest) (*Add pconf.Config.PeerGroup = a.Conf.PeerGroup pconf.Config.NeighborAddress = a.Conf.NeighborAddress pconf.Config.NeighborInterface = a.Conf.NeighborInterface + pconf.Config.Vrf = a.Conf.Vrf } if a.Timers != nil && a.Timers.Config != nil { pconf.Timers.Config.ConnectRetry = float64(a.Timers.Config.ConnectRetry) -- cgit v1.2.3