1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 api "git.fd.io/govpp.git/api"
11 memclnt "git.fd.io/govpp.git/binapi/memclnt"
14 // RPCService defines RPC service lisp.
15 type RPCService interface {
16 LispAddDelAdjacency(ctx context.Context, in *LispAddDelAdjacency) (*LispAddDelAdjacencyReply, error)
17 LispAddDelLocalEid(ctx context.Context, in *LispAddDelLocalEid) (*LispAddDelLocalEidReply, error)
18 LispAddDelLocator(ctx context.Context, in *LispAddDelLocator) (*LispAddDelLocatorReply, error)
19 LispAddDelLocatorSet(ctx context.Context, in *LispAddDelLocatorSet) (*LispAddDelLocatorSetReply, error)
20 LispAddDelMapRequestItrRlocs(ctx context.Context, in *LispAddDelMapRequestItrRlocs) (*LispAddDelMapRequestItrRlocsReply, error)
21 LispAddDelMapResolver(ctx context.Context, in *LispAddDelMapResolver) (*LispAddDelMapResolverReply, error)
22 LispAddDelMapServer(ctx context.Context, in *LispAddDelMapServer) (*LispAddDelMapServerReply, error)
23 LispAddDelRemoteMapping(ctx context.Context, in *LispAddDelRemoteMapping) (*LispAddDelRemoteMappingReply, error)
24 LispAdjacenciesGet(ctx context.Context, in *LispAdjacenciesGet) (*LispAdjacenciesGetReply, error)
25 LispEidTableAddDelMap(ctx context.Context, in *LispEidTableAddDelMap) (*LispEidTableAddDelMapReply, error)
26 LispEidTableDump(ctx context.Context, in *LispEidTableDump) (RPCService_LispEidTableDumpClient, error)
27 LispEidTableMapDump(ctx context.Context, in *LispEidTableMapDump) (RPCService_LispEidTableMapDumpClient, error)
28 LispEidTableVniDump(ctx context.Context, in *LispEidTableVniDump) (RPCService_LispEidTableVniDumpClient, error)
29 LispEnableDisable(ctx context.Context, in *LispEnableDisable) (*LispEnableDisableReply, error)
30 LispGetMapRequestItrRlocs(ctx context.Context, in *LispGetMapRequestItrRlocs) (*LispGetMapRequestItrRlocsReply, error)
31 LispLocatorDump(ctx context.Context, in *LispLocatorDump) (RPCService_LispLocatorDumpClient, error)
32 LispLocatorSetDump(ctx context.Context, in *LispLocatorSetDump) (RPCService_LispLocatorSetDumpClient, error)
33 LispMapRegisterEnableDisable(ctx context.Context, in *LispMapRegisterEnableDisable) (*LispMapRegisterEnableDisableReply, error)
34 LispMapRequestMode(ctx context.Context, in *LispMapRequestMode) (*LispMapRequestModeReply, error)
35 LispMapResolverDump(ctx context.Context, in *LispMapResolverDump) (RPCService_LispMapResolverDumpClient, error)
36 LispMapServerDump(ctx context.Context, in *LispMapServerDump) (RPCService_LispMapServerDumpClient, error)
37 LispPitrSetLocatorSet(ctx context.Context, in *LispPitrSetLocatorSet) (*LispPitrSetLocatorSetReply, error)
38 LispRlocProbeEnableDisable(ctx context.Context, in *LispRlocProbeEnableDisable) (*LispRlocProbeEnableDisableReply, error)
39 LispUsePetr(ctx context.Context, in *LispUsePetr) (*LispUsePetrReply, error)
40 ShowLispMapRegisterState(ctx context.Context, in *ShowLispMapRegisterState) (*ShowLispMapRegisterStateReply, error)
41 ShowLispMapRequestMode(ctx context.Context, in *ShowLispMapRequestMode) (*ShowLispMapRequestModeReply, error)
42 ShowLispPitr(ctx context.Context, in *ShowLispPitr) (*ShowLispPitrReply, error)
43 ShowLispRlocProbeState(ctx context.Context, in *ShowLispRlocProbeState) (*ShowLispRlocProbeStateReply, error)
44 ShowLispStatus(ctx context.Context, in *ShowLispStatus) (*ShowLispStatusReply, error)
45 ShowLispUsePetr(ctx context.Context, in *ShowLispUsePetr) (*ShowLispUsePetrReply, error)
48 type serviceClient struct {
52 func NewServiceClient(conn api.Connection) RPCService {
53 return &serviceClient{conn}
56 func (c *serviceClient) LispAddDelAdjacency(ctx context.Context, in *LispAddDelAdjacency) (*LispAddDelAdjacencyReply, error) {
57 out := new(LispAddDelAdjacencyReply)
58 err := c.conn.Invoke(ctx, in, out)
62 return out, api.RetvalToVPPApiError(out.Retval)
65 func (c *serviceClient) LispAddDelLocalEid(ctx context.Context, in *LispAddDelLocalEid) (*LispAddDelLocalEidReply, error) {
66 out := new(LispAddDelLocalEidReply)
67 err := c.conn.Invoke(ctx, in, out)
71 return out, api.RetvalToVPPApiError(out.Retval)
74 func (c *serviceClient) LispAddDelLocator(ctx context.Context, in *LispAddDelLocator) (*LispAddDelLocatorReply, error) {
75 out := new(LispAddDelLocatorReply)
76 err := c.conn.Invoke(ctx, in, out)
80 return out, api.RetvalToVPPApiError(out.Retval)
83 func (c *serviceClient) LispAddDelLocatorSet(ctx context.Context, in *LispAddDelLocatorSet) (*LispAddDelLocatorSetReply, error) {
84 out := new(LispAddDelLocatorSetReply)
85 err := c.conn.Invoke(ctx, in, out)
89 return out, api.RetvalToVPPApiError(out.Retval)
92 func (c *serviceClient) LispAddDelMapRequestItrRlocs(ctx context.Context, in *LispAddDelMapRequestItrRlocs) (*LispAddDelMapRequestItrRlocsReply, error) {
93 out := new(LispAddDelMapRequestItrRlocsReply)
94 err := c.conn.Invoke(ctx, in, out)
98 return out, api.RetvalToVPPApiError(out.Retval)
101 func (c *serviceClient) LispAddDelMapResolver(ctx context.Context, in *LispAddDelMapResolver) (*LispAddDelMapResolverReply, error) {
102 out := new(LispAddDelMapResolverReply)
103 err := c.conn.Invoke(ctx, in, out)
107 return out, api.RetvalToVPPApiError(out.Retval)
110 func (c *serviceClient) LispAddDelMapServer(ctx context.Context, in *LispAddDelMapServer) (*LispAddDelMapServerReply, error) {
111 out := new(LispAddDelMapServerReply)
112 err := c.conn.Invoke(ctx, in, out)
116 return out, api.RetvalToVPPApiError(out.Retval)
119 func (c *serviceClient) LispAddDelRemoteMapping(ctx context.Context, in *LispAddDelRemoteMapping) (*LispAddDelRemoteMappingReply, error) {
120 out := new(LispAddDelRemoteMappingReply)
121 err := c.conn.Invoke(ctx, in, out)
125 return out, api.RetvalToVPPApiError(out.Retval)
128 func (c *serviceClient) LispAdjacenciesGet(ctx context.Context, in *LispAdjacenciesGet) (*LispAdjacenciesGetReply, error) {
129 out := new(LispAdjacenciesGetReply)
130 err := c.conn.Invoke(ctx, in, out)
134 return out, api.RetvalToVPPApiError(out.Retval)
137 func (c *serviceClient) LispEidTableAddDelMap(ctx context.Context, in *LispEidTableAddDelMap) (*LispEidTableAddDelMapReply, error) {
138 out := new(LispEidTableAddDelMapReply)
139 err := c.conn.Invoke(ctx, in, out)
143 return out, api.RetvalToVPPApiError(out.Retval)
146 func (c *serviceClient) LispEidTableDump(ctx context.Context, in *LispEidTableDump) (RPCService_LispEidTableDumpClient, error) {
147 stream, err := c.conn.NewStream(ctx)
151 x := &serviceClient_LispEidTableDumpClient{stream}
152 if err := x.Stream.SendMsg(in); err != nil {
155 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
161 type RPCService_LispEidTableDumpClient interface {
162 Recv() (*LispEidTableDetails, error)
166 type serviceClient_LispEidTableDumpClient struct {
170 func (c *serviceClient_LispEidTableDumpClient) Recv() (*LispEidTableDetails, error) {
171 msg, err := c.Stream.RecvMsg()
175 switch m := msg.(type) {
176 case *LispEidTableDetails:
178 case *memclnt.ControlPingReply:
179 err = c.Stream.Close()
185 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
189 func (c *serviceClient) LispEidTableMapDump(ctx context.Context, in *LispEidTableMapDump) (RPCService_LispEidTableMapDumpClient, error) {
190 stream, err := c.conn.NewStream(ctx)
194 x := &serviceClient_LispEidTableMapDumpClient{stream}
195 if err := x.Stream.SendMsg(in); err != nil {
198 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
204 type RPCService_LispEidTableMapDumpClient interface {
205 Recv() (*LispEidTableMapDetails, error)
209 type serviceClient_LispEidTableMapDumpClient struct {
213 func (c *serviceClient_LispEidTableMapDumpClient) Recv() (*LispEidTableMapDetails, error) {
214 msg, err := c.Stream.RecvMsg()
218 switch m := msg.(type) {
219 case *LispEidTableMapDetails:
221 case *memclnt.ControlPingReply:
222 err = c.Stream.Close()
228 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
232 func (c *serviceClient) LispEidTableVniDump(ctx context.Context, in *LispEidTableVniDump) (RPCService_LispEidTableVniDumpClient, error) {
233 stream, err := c.conn.NewStream(ctx)
237 x := &serviceClient_LispEidTableVniDumpClient{stream}
238 if err := x.Stream.SendMsg(in); err != nil {
241 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
247 type RPCService_LispEidTableVniDumpClient interface {
248 Recv() (*LispEidTableVniDetails, error)
252 type serviceClient_LispEidTableVniDumpClient struct {
256 func (c *serviceClient_LispEidTableVniDumpClient) Recv() (*LispEidTableVniDetails, error) {
257 msg, err := c.Stream.RecvMsg()
261 switch m := msg.(type) {
262 case *LispEidTableVniDetails:
264 case *memclnt.ControlPingReply:
265 err = c.Stream.Close()
271 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
275 func (c *serviceClient) LispEnableDisable(ctx context.Context, in *LispEnableDisable) (*LispEnableDisableReply, error) {
276 out := new(LispEnableDisableReply)
277 err := c.conn.Invoke(ctx, in, out)
281 return out, api.RetvalToVPPApiError(out.Retval)
284 func (c *serviceClient) LispGetMapRequestItrRlocs(ctx context.Context, in *LispGetMapRequestItrRlocs) (*LispGetMapRequestItrRlocsReply, error) {
285 out := new(LispGetMapRequestItrRlocsReply)
286 err := c.conn.Invoke(ctx, in, out)
290 return out, api.RetvalToVPPApiError(out.Retval)
293 func (c *serviceClient) LispLocatorDump(ctx context.Context, in *LispLocatorDump) (RPCService_LispLocatorDumpClient, error) {
294 stream, err := c.conn.NewStream(ctx)
298 x := &serviceClient_LispLocatorDumpClient{stream}
299 if err := x.Stream.SendMsg(in); err != nil {
302 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
308 type RPCService_LispLocatorDumpClient interface {
309 Recv() (*LispLocatorDetails, error)
313 type serviceClient_LispLocatorDumpClient struct {
317 func (c *serviceClient_LispLocatorDumpClient) Recv() (*LispLocatorDetails, error) {
318 msg, err := c.Stream.RecvMsg()
322 switch m := msg.(type) {
323 case *LispLocatorDetails:
325 case *memclnt.ControlPingReply:
326 err = c.Stream.Close()
332 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
336 func (c *serviceClient) LispLocatorSetDump(ctx context.Context, in *LispLocatorSetDump) (RPCService_LispLocatorSetDumpClient, error) {
337 stream, err := c.conn.NewStream(ctx)
341 x := &serviceClient_LispLocatorSetDumpClient{stream}
342 if err := x.Stream.SendMsg(in); err != nil {
345 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
351 type RPCService_LispLocatorSetDumpClient interface {
352 Recv() (*LispLocatorSetDetails, error)
356 type serviceClient_LispLocatorSetDumpClient struct {
360 func (c *serviceClient_LispLocatorSetDumpClient) Recv() (*LispLocatorSetDetails, error) {
361 msg, err := c.Stream.RecvMsg()
365 switch m := msg.(type) {
366 case *LispLocatorSetDetails:
368 case *memclnt.ControlPingReply:
369 err = c.Stream.Close()
375 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
379 func (c *serviceClient) LispMapRegisterEnableDisable(ctx context.Context, in *LispMapRegisterEnableDisable) (*LispMapRegisterEnableDisableReply, error) {
380 out := new(LispMapRegisterEnableDisableReply)
381 err := c.conn.Invoke(ctx, in, out)
385 return out, api.RetvalToVPPApiError(out.Retval)
388 func (c *serviceClient) LispMapRequestMode(ctx context.Context, in *LispMapRequestMode) (*LispMapRequestModeReply, error) {
389 out := new(LispMapRequestModeReply)
390 err := c.conn.Invoke(ctx, in, out)
394 return out, api.RetvalToVPPApiError(out.Retval)
397 func (c *serviceClient) LispMapResolverDump(ctx context.Context, in *LispMapResolverDump) (RPCService_LispMapResolverDumpClient, error) {
398 stream, err := c.conn.NewStream(ctx)
402 x := &serviceClient_LispMapResolverDumpClient{stream}
403 if err := x.Stream.SendMsg(in); err != nil {
406 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
412 type RPCService_LispMapResolverDumpClient interface {
413 Recv() (*LispMapResolverDetails, error)
417 type serviceClient_LispMapResolverDumpClient struct {
421 func (c *serviceClient_LispMapResolverDumpClient) Recv() (*LispMapResolverDetails, error) {
422 msg, err := c.Stream.RecvMsg()
426 switch m := msg.(type) {
427 case *LispMapResolverDetails:
429 case *memclnt.ControlPingReply:
430 err = c.Stream.Close()
436 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
440 func (c *serviceClient) LispMapServerDump(ctx context.Context, in *LispMapServerDump) (RPCService_LispMapServerDumpClient, error) {
441 stream, err := c.conn.NewStream(ctx)
445 x := &serviceClient_LispMapServerDumpClient{stream}
446 if err := x.Stream.SendMsg(in); err != nil {
449 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
455 type RPCService_LispMapServerDumpClient interface {
456 Recv() (*LispMapServerDetails, error)
460 type serviceClient_LispMapServerDumpClient struct {
464 func (c *serviceClient_LispMapServerDumpClient) Recv() (*LispMapServerDetails, error) {
465 msg, err := c.Stream.RecvMsg()
469 switch m := msg.(type) {
470 case *LispMapServerDetails:
472 case *memclnt.ControlPingReply:
473 err = c.Stream.Close()
479 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
483 func (c *serviceClient) LispPitrSetLocatorSet(ctx context.Context, in *LispPitrSetLocatorSet) (*LispPitrSetLocatorSetReply, error) {
484 out := new(LispPitrSetLocatorSetReply)
485 err := c.conn.Invoke(ctx, in, out)
489 return out, api.RetvalToVPPApiError(out.Retval)
492 func (c *serviceClient) LispRlocProbeEnableDisable(ctx context.Context, in *LispRlocProbeEnableDisable) (*LispRlocProbeEnableDisableReply, error) {
493 out := new(LispRlocProbeEnableDisableReply)
494 err := c.conn.Invoke(ctx, in, out)
498 return out, api.RetvalToVPPApiError(out.Retval)
501 func (c *serviceClient) LispUsePetr(ctx context.Context, in *LispUsePetr) (*LispUsePetrReply, error) {
502 out := new(LispUsePetrReply)
503 err := c.conn.Invoke(ctx, in, out)
507 return out, api.RetvalToVPPApiError(out.Retval)
510 func (c *serviceClient) ShowLispMapRegisterState(ctx context.Context, in *ShowLispMapRegisterState) (*ShowLispMapRegisterStateReply, error) {
511 out := new(ShowLispMapRegisterStateReply)
512 err := c.conn.Invoke(ctx, in, out)
516 return out, api.RetvalToVPPApiError(out.Retval)
519 func (c *serviceClient) ShowLispMapRequestMode(ctx context.Context, in *ShowLispMapRequestMode) (*ShowLispMapRequestModeReply, error) {
520 out := new(ShowLispMapRequestModeReply)
521 err := c.conn.Invoke(ctx, in, out)
525 return out, api.RetvalToVPPApiError(out.Retval)
528 func (c *serviceClient) ShowLispPitr(ctx context.Context, in *ShowLispPitr) (*ShowLispPitrReply, error) {
529 out := new(ShowLispPitrReply)
530 err := c.conn.Invoke(ctx, in, out)
534 return out, api.RetvalToVPPApiError(out.Retval)
537 func (c *serviceClient) ShowLispRlocProbeState(ctx context.Context, in *ShowLispRlocProbeState) (*ShowLispRlocProbeStateReply, error) {
538 out := new(ShowLispRlocProbeStateReply)
539 err := c.conn.Invoke(ctx, in, out)
543 return out, api.RetvalToVPPApiError(out.Retval)
546 func (c *serviceClient) ShowLispStatus(ctx context.Context, in *ShowLispStatus) (*ShowLispStatusReply, error) {
547 out := new(ShowLispStatusReply)
548 err := c.conn.Invoke(ctx, in, out)
552 return out, api.RetvalToVPPApiError(out.Retval)
555 func (c *serviceClient) ShowLispUsePetr(ctx context.Context, in *ShowLispUsePetr) (*ShowLispUsePetrReply, error) {
556 out := new(ShowLispUsePetrReply)
557 err := c.conn.Invoke(ctx, in, out)
561 return out, api.RetvalToVPPApiError(out.Retval)