1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 api "git.fd.io/govpp.git/api"
11 vpe "git.fd.io/govpp.git/binapi/vpe"
14 // RPCService defines RPC service gbp.
15 type RPCService interface {
16 GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error)
17 GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error)
18 GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error)
19 GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error)
20 GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error)
21 GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error)
22 GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error)
23 GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error)
24 GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error)
25 GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error)
26 GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error)
27 GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error)
28 GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error)
29 GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error)
30 GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error)
31 GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error)
32 GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error)
33 GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error)
34 GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error)
35 GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error)
36 GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error)
37 GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error)
38 GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error)
41 type serviceClient struct {
45 func NewServiceClient(conn api.Connection) RPCService {
46 return &serviceClient{conn}
49 func (c *serviceClient) GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error) {
50 out := new(GbpBridgeDomainAddReply)
51 err := c.conn.Invoke(ctx, in, out)
55 return out, api.RetvalToVPPApiError(out.Retval)
58 func (c *serviceClient) GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error) {
59 out := new(GbpBridgeDomainDelReply)
60 err := c.conn.Invoke(ctx, in, out)
64 return out, api.RetvalToVPPApiError(out.Retval)
67 func (c *serviceClient) GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error) {
68 stream, err := c.conn.NewStream(ctx)
72 x := &serviceClient_GbpBridgeDomainDumpClient{stream}
73 if err := x.Stream.SendMsg(in); err != nil {
76 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
82 type RPCService_GbpBridgeDomainDumpClient interface {
83 Recv() (*GbpBridgeDomainDetails, error)
87 type serviceClient_GbpBridgeDomainDumpClient struct {
91 func (c *serviceClient_GbpBridgeDomainDumpClient) Recv() (*GbpBridgeDomainDetails, error) {
92 msg, err := c.Stream.RecvMsg()
96 switch m := msg.(type) {
97 case *GbpBridgeDomainDetails:
99 case *vpe.ControlPingReply:
102 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
106 func (c *serviceClient) GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error) {
107 out := new(GbpContractAddDelReply)
108 err := c.conn.Invoke(ctx, in, out)
112 return out, api.RetvalToVPPApiError(out.Retval)
115 func (c *serviceClient) GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error) {
116 stream, err := c.conn.NewStream(ctx)
120 x := &serviceClient_GbpContractDumpClient{stream}
121 if err := x.Stream.SendMsg(in); err != nil {
124 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
130 type RPCService_GbpContractDumpClient interface {
131 Recv() (*GbpContractDetails, error)
135 type serviceClient_GbpContractDumpClient struct {
139 func (c *serviceClient_GbpContractDumpClient) Recv() (*GbpContractDetails, error) {
140 msg, err := c.Stream.RecvMsg()
144 switch m := msg.(type) {
145 case *GbpContractDetails:
147 case *vpe.ControlPingReply:
150 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
154 func (c *serviceClient) GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error) {
155 out := new(GbpEndpointAddReply)
156 err := c.conn.Invoke(ctx, in, out)
160 return out, api.RetvalToVPPApiError(out.Retval)
163 func (c *serviceClient) GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error) {
164 out := new(GbpEndpointDelReply)
165 err := c.conn.Invoke(ctx, in, out)
169 return out, api.RetvalToVPPApiError(out.Retval)
172 func (c *serviceClient) GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error) {
173 stream, err := c.conn.NewStream(ctx)
177 x := &serviceClient_GbpEndpointDumpClient{stream}
178 if err := x.Stream.SendMsg(in); err != nil {
181 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
187 type RPCService_GbpEndpointDumpClient interface {
188 Recv() (*GbpEndpointDetails, error)
192 type serviceClient_GbpEndpointDumpClient struct {
196 func (c *serviceClient_GbpEndpointDumpClient) Recv() (*GbpEndpointDetails, error) {
197 msg, err := c.Stream.RecvMsg()
201 switch m := msg.(type) {
202 case *GbpEndpointDetails:
204 case *vpe.ControlPingReply:
207 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
211 func (c *serviceClient) GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error) {
212 out := new(GbpEndpointGroupAddReply)
213 err := c.conn.Invoke(ctx, in, out)
217 return out, api.RetvalToVPPApiError(out.Retval)
220 func (c *serviceClient) GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error) {
221 out := new(GbpEndpointGroupDelReply)
222 err := c.conn.Invoke(ctx, in, out)
226 return out, api.RetvalToVPPApiError(out.Retval)
229 func (c *serviceClient) GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error) {
230 stream, err := c.conn.NewStream(ctx)
234 x := &serviceClient_GbpEndpointGroupDumpClient{stream}
235 if err := x.Stream.SendMsg(in); err != nil {
238 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
244 type RPCService_GbpEndpointGroupDumpClient interface {
245 Recv() (*GbpEndpointGroupDetails, error)
249 type serviceClient_GbpEndpointGroupDumpClient struct {
253 func (c *serviceClient_GbpEndpointGroupDumpClient) Recv() (*GbpEndpointGroupDetails, error) {
254 msg, err := c.Stream.RecvMsg()
258 switch m := msg.(type) {
259 case *GbpEndpointGroupDetails:
261 case *vpe.ControlPingReply:
264 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
268 func (c *serviceClient) GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error) {
269 out := new(GbpExtItfAddDelReply)
270 err := c.conn.Invoke(ctx, in, out)
274 return out, api.RetvalToVPPApiError(out.Retval)
277 func (c *serviceClient) GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error) {
278 stream, err := c.conn.NewStream(ctx)
282 x := &serviceClient_GbpExtItfDumpClient{stream}
283 if err := x.Stream.SendMsg(in); err != nil {
286 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
292 type RPCService_GbpExtItfDumpClient interface {
293 Recv() (*GbpExtItfDetails, error)
297 type serviceClient_GbpExtItfDumpClient struct {
301 func (c *serviceClient_GbpExtItfDumpClient) Recv() (*GbpExtItfDetails, error) {
302 msg, err := c.Stream.RecvMsg()
306 switch m := msg.(type) {
307 case *GbpExtItfDetails:
309 case *vpe.ControlPingReply:
312 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
316 func (c *serviceClient) GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error) {
317 out := new(GbpRecircAddDelReply)
318 err := c.conn.Invoke(ctx, in, out)
322 return out, api.RetvalToVPPApiError(out.Retval)
325 func (c *serviceClient) GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error) {
326 stream, err := c.conn.NewStream(ctx)
330 x := &serviceClient_GbpRecircDumpClient{stream}
331 if err := x.Stream.SendMsg(in); err != nil {
334 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
340 type RPCService_GbpRecircDumpClient interface {
341 Recv() (*GbpRecircDetails, error)
345 type serviceClient_GbpRecircDumpClient struct {
349 func (c *serviceClient_GbpRecircDumpClient) Recv() (*GbpRecircDetails, error) {
350 msg, err := c.Stream.RecvMsg()
354 switch m := msg.(type) {
355 case *GbpRecircDetails:
357 case *vpe.ControlPingReply:
360 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
364 func (c *serviceClient) GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error) {
365 out := new(GbpRouteDomainAddReply)
366 err := c.conn.Invoke(ctx, in, out)
370 return out, api.RetvalToVPPApiError(out.Retval)
373 func (c *serviceClient) GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error) {
374 out := new(GbpRouteDomainDelReply)
375 err := c.conn.Invoke(ctx, in, out)
379 return out, api.RetvalToVPPApiError(out.Retval)
382 func (c *serviceClient) GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error) {
383 stream, err := c.conn.NewStream(ctx)
387 x := &serviceClient_GbpRouteDomainDumpClient{stream}
388 if err := x.Stream.SendMsg(in); err != nil {
391 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
397 type RPCService_GbpRouteDomainDumpClient interface {
398 Recv() (*GbpRouteDomainDetails, error)
402 type serviceClient_GbpRouteDomainDumpClient struct {
406 func (c *serviceClient_GbpRouteDomainDumpClient) Recv() (*GbpRouteDomainDetails, error) {
407 msg, err := c.Stream.RecvMsg()
411 switch m := msg.(type) {
412 case *GbpRouteDomainDetails:
414 case *vpe.ControlPingReply:
417 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
421 func (c *serviceClient) GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error) {
422 out := new(GbpSubnetAddDelReply)
423 err := c.conn.Invoke(ctx, in, out)
427 return out, api.RetvalToVPPApiError(out.Retval)
430 func (c *serviceClient) GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error) {
431 stream, err := c.conn.NewStream(ctx)
435 x := &serviceClient_GbpSubnetDumpClient{stream}
436 if err := x.Stream.SendMsg(in); err != nil {
439 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
445 type RPCService_GbpSubnetDumpClient interface {
446 Recv() (*GbpSubnetDetails, error)
450 type serviceClient_GbpSubnetDumpClient struct {
454 func (c *serviceClient_GbpSubnetDumpClient) Recv() (*GbpSubnetDetails, error) {
455 msg, err := c.Stream.RecvMsg()
459 switch m := msg.(type) {
460 case *GbpSubnetDetails:
462 case *vpe.ControlPingReply:
465 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
469 func (c *serviceClient) GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error) {
470 out := new(GbpVxlanTunnelAddReply)
471 err := c.conn.Invoke(ctx, in, out)
475 return out, api.RetvalToVPPApiError(out.Retval)
478 func (c *serviceClient) GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error) {
479 out := new(GbpVxlanTunnelDelReply)
480 err := c.conn.Invoke(ctx, in, out)
484 return out, api.RetvalToVPPApiError(out.Retval)
487 func (c *serviceClient) GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error) {
488 stream, err := c.conn.NewStream(ctx)
492 x := &serviceClient_GbpVxlanTunnelDumpClient{stream}
493 if err := x.Stream.SendMsg(in); err != nil {
496 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
502 type RPCService_GbpVxlanTunnelDumpClient interface {
503 Recv() (*GbpVxlanTunnelDetails, error)
507 type serviceClient_GbpVxlanTunnelDumpClient struct {
511 func (c *serviceClient_GbpVxlanTunnelDumpClient) Recv() (*GbpVxlanTunnelDetails, error) {
512 msg, err := c.Stream.RecvMsg()
516 switch m := msg.(type) {
517 case *GbpVxlanTunnelDetails:
519 case *vpe.ControlPingReply:
522 return nil, fmt.Errorf("unexpected message: %T %v", m, m)