summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-23 22:59:04 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-23 23:00:18 -0800
commita1602f3a256177d5d9474a403928cc6bc00bbc85 (patch)
tree71c22ea459b3868d7e037aa870389f4c5c9ce4a3 /server/grpc_server.go
parentd62984352e4acc8c6091213f37a18d41dfe1c49d (diff)
rpki: grpc support
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 5ec5947b..68d0e72b 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -50,6 +50,7 @@ const (
REQ_MRT_LOCAL_RIB
REQ_MOD_MRT
REQ_RPKI
+ REQ_MOD_RPKI
REQ_ROA
REQ_VRF
REQ_VRFS
@@ -264,6 +265,10 @@ func (s *Server) ModMrt(ctx context.Context, arg *api.ModMrtArguments) (*api.Err
return s.mod(REQ_MOD_MRT, arg)
}
+func (s *Server) ModRPKI(ctx context.Context, arg *api.ModRpkiArguments) (*api.Error, error) {
+ return s.mod(REQ_MOD_RPKI, arg)
+}
+
func (s *Server) GetRPKI(arg *api.Arguments, stream api.GobgpApi_GetRPKIServer) error {
req := NewGrpcRequest(REQ_RPKI, "", bgp.RouteFamily(arg.Rf), nil)
s.bgpServerCh <- req