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 ip6_nd.
15 type RPCService interface {
16 IP6ndProxyAddDel(ctx context.Context, in *IP6ndProxyAddDel) (*IP6ndProxyAddDelReply, error)
17 IP6ndProxyDump(ctx context.Context, in *IP6ndProxyDump) (RPCService_IP6ndProxyDumpClient, error)
18 IP6ndProxyEnableDisable(ctx context.Context, in *IP6ndProxyEnableDisable) (*IP6ndProxyEnableDisableReply, error)
19 IP6ndSendRouterSolicitation(ctx context.Context, in *IP6ndSendRouterSolicitation) (*IP6ndSendRouterSolicitationReply, error)
20 SwInterfaceIP6ndRaConfig(ctx context.Context, in *SwInterfaceIP6ndRaConfig) (*SwInterfaceIP6ndRaConfigReply, error)
21 SwInterfaceIP6ndRaPrefix(ctx context.Context, in *SwInterfaceIP6ndRaPrefix) (*SwInterfaceIP6ndRaPrefixReply, error)
22 WantIP6RaEvents(ctx context.Context, in *WantIP6RaEvents) (*WantIP6RaEventsReply, error)
25 type serviceClient struct {
29 func NewServiceClient(conn api.Connection) RPCService {
30 return &serviceClient{conn}
33 func (c *serviceClient) IP6ndProxyAddDel(ctx context.Context, in *IP6ndProxyAddDel) (*IP6ndProxyAddDelReply, error) {
34 out := new(IP6ndProxyAddDelReply)
35 err := c.conn.Invoke(ctx, in, out)
39 return out, api.RetvalToVPPApiError(out.Retval)
42 func (c *serviceClient) IP6ndProxyDump(ctx context.Context, in *IP6ndProxyDump) (RPCService_IP6ndProxyDumpClient, error) {
43 stream, err := c.conn.NewStream(ctx)
47 x := &serviceClient_IP6ndProxyDumpClient{stream}
48 if err := x.Stream.SendMsg(in); err != nil {
51 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
57 type RPCService_IP6ndProxyDumpClient interface {
58 Recv() (*IP6ndProxyDetails, error)
62 type serviceClient_IP6ndProxyDumpClient struct {
66 func (c *serviceClient_IP6ndProxyDumpClient) Recv() (*IP6ndProxyDetails, error) {
67 msg, err := c.Stream.RecvMsg()
71 switch m := msg.(type) {
72 case *IP6ndProxyDetails:
74 case *memclnt.ControlPingReply:
75 err = c.Stream.Close()
81 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
85 func (c *serviceClient) IP6ndProxyEnableDisable(ctx context.Context, in *IP6ndProxyEnableDisable) (*IP6ndProxyEnableDisableReply, error) {
86 out := new(IP6ndProxyEnableDisableReply)
87 err := c.conn.Invoke(ctx, in, out)
91 return out, api.RetvalToVPPApiError(out.Retval)
94 func (c *serviceClient) IP6ndSendRouterSolicitation(ctx context.Context, in *IP6ndSendRouterSolicitation) (*IP6ndSendRouterSolicitationReply, error) {
95 out := new(IP6ndSendRouterSolicitationReply)
96 err := c.conn.Invoke(ctx, in, out)
100 return out, api.RetvalToVPPApiError(out.Retval)
103 func (c *serviceClient) SwInterfaceIP6ndRaConfig(ctx context.Context, in *SwInterfaceIP6ndRaConfig) (*SwInterfaceIP6ndRaConfigReply, error) {
104 out := new(SwInterfaceIP6ndRaConfigReply)
105 err := c.conn.Invoke(ctx, in, out)
109 return out, api.RetvalToVPPApiError(out.Retval)
112 func (c *serviceClient) SwInterfaceIP6ndRaPrefix(ctx context.Context, in *SwInterfaceIP6ndRaPrefix) (*SwInterfaceIP6ndRaPrefixReply, error) {
113 out := new(SwInterfaceIP6ndRaPrefixReply)
114 err := c.conn.Invoke(ctx, in, out)
118 return out, api.RetvalToVPPApiError(out.Retval)
121 func (c *serviceClient) WantIP6RaEvents(ctx context.Context, in *WantIP6RaEvents) (*WantIP6RaEventsReply, error) {
122 out := new(WantIP6RaEventsReply)
123 err := c.conn.Invoke(ctx, in, out)
127 return out, api.RetvalToVPPApiError(out.Retval)