1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
9 api "git.fd.io/govpp.git/api"
12 // RPCService represents RPC service API for interface module.
13 type RPCService interface {
14 DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
15 DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
16 CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
17 CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
18 CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
19 CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
20 CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
21 DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
22 DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
23 HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
24 InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
25 SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
26 SwInterfaceAddDelMacAddress(ctx context.Context, in *SwInterfaceAddDelMacAddress) (*SwInterfaceAddDelMacAddressReply, error)
27 SwInterfaceAddressReplaceBegin(ctx context.Context, in *SwInterfaceAddressReplaceBegin) (*SwInterfaceAddressReplaceBeginReply, error)
28 SwInterfaceAddressReplaceEnd(ctx context.Context, in *SwInterfaceAddressReplaceEnd) (*SwInterfaceAddressReplaceEndReply, error)
29 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
30 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
31 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
32 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
33 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
34 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
35 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
36 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
37 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
38 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
39 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
40 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
41 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
44 type serviceClient struct {
48 func NewServiceClient(ch api.Channel) RPCService {
49 return &serviceClient{ch}
52 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
53 stream := c.ch.SendMultiRequest(in)
54 x := &serviceClient_DumpSwInterfaceClient{stream}
58 type RPCService_DumpSwInterfaceClient interface {
59 Recv() (*SwInterfaceDetails, error)
62 type serviceClient_DumpSwInterfaceClient struct {
66 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
67 m := new(SwInterfaceDetails)
68 stop, err := c.MultiRequestCtx.ReceiveReply(m)
78 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
79 stream := c.ch.SendMultiRequest(in)
80 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
84 type RPCService_DumpSwInterfaceRxPlacementClient interface {
85 Recv() (*SwInterfaceRxPlacementDetails, error)
88 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
92 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
93 m := new(SwInterfaceRxPlacementDetails)
94 stop, err := c.MultiRequestCtx.ReceiveReply(m)
104 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
105 out := new(CollectDetailedInterfaceStatsReply)
106 err := c.ch.SendRequest(in).ReceiveReply(out)
113 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
114 out := new(CreateLoopbackReply)
115 err := c.ch.SendRequest(in).ReceiveReply(out)
122 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
123 out := new(CreateLoopbackInstanceReply)
124 err := c.ch.SendRequest(in).ReceiveReply(out)
131 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
132 out := new(CreateSubifReply)
133 err := c.ch.SendRequest(in).ReceiveReply(out)
140 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
141 out := new(CreateVlanSubifReply)
142 err := c.ch.SendRequest(in).ReceiveReply(out)
149 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
150 out := new(DeleteLoopbackReply)
151 err := c.ch.SendRequest(in).ReceiveReply(out)
158 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
159 out := new(DeleteSubifReply)
160 err := c.ch.SendRequest(in).ReceiveReply(out)
167 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
168 out := new(HwInterfaceSetMtuReply)
169 err := c.ch.SendRequest(in).ReceiveReply(out)
176 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
177 out := new(InterfaceNameRenumberReply)
178 err := c.ch.SendRequest(in).ReceiveReply(out)
185 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
186 out := new(SwInterfaceAddDelAddressReply)
187 err := c.ch.SendRequest(in).ReceiveReply(out)
194 func (c *serviceClient) SwInterfaceAddDelMacAddress(ctx context.Context, in *SwInterfaceAddDelMacAddress) (*SwInterfaceAddDelMacAddressReply, error) {
195 out := new(SwInterfaceAddDelMacAddressReply)
196 err := c.ch.SendRequest(in).ReceiveReply(out)
203 func (c *serviceClient) SwInterfaceAddressReplaceBegin(ctx context.Context, in *SwInterfaceAddressReplaceBegin) (*SwInterfaceAddressReplaceBeginReply, error) {
204 out := new(SwInterfaceAddressReplaceBeginReply)
205 err := c.ch.SendRequest(in).ReceiveReply(out)
212 func (c *serviceClient) SwInterfaceAddressReplaceEnd(ctx context.Context, in *SwInterfaceAddressReplaceEnd) (*SwInterfaceAddressReplaceEndReply, error) {
213 out := new(SwInterfaceAddressReplaceEndReply)
214 err := c.ch.SendRequest(in).ReceiveReply(out)
221 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
222 out := new(SwInterfaceClearStatsReply)
223 err := c.ch.SendRequest(in).ReceiveReply(out)
230 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
231 out := new(SwInterfaceGetMacAddressReply)
232 err := c.ch.SendRequest(in).ReceiveReply(out)
239 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
240 out := new(SwInterfaceGetTableReply)
241 err := c.ch.SendRequest(in).ReceiveReply(out)
248 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
249 out := new(SwInterfaceSetFlagsReply)
250 err := c.ch.SendRequest(in).ReceiveReply(out)
257 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
258 out := new(SwInterfaceSetIPDirectedBroadcastReply)
259 err := c.ch.SendRequest(in).ReceiveReply(out)
266 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
267 out := new(SwInterfaceSetMacAddressReply)
268 err := c.ch.SendRequest(in).ReceiveReply(out)
275 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
276 out := new(SwInterfaceSetMtuReply)
277 err := c.ch.SendRequest(in).ReceiveReply(out)
284 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
285 out := new(SwInterfaceSetRxModeReply)
286 err := c.ch.SendRequest(in).ReceiveReply(out)
293 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
294 out := new(SwInterfaceSetRxPlacementReply)
295 err := c.ch.SendRequest(in).ReceiveReply(out)
302 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
303 out := new(SwInterfaceSetTableReply)
304 err := c.ch.SendRequest(in).ReceiveReply(out)
311 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
312 out := new(SwInterfaceSetUnnumberedReply)
313 err := c.ch.SendRequest(in).ReceiveReply(out)
320 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
321 out := new(SwInterfaceTagAddDelReply)
322 err := c.ch.SendRequest(in).ReceiveReply(out)
329 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
330 out := new(WantInterfaceEventsReply)
331 err := c.ch.SendRequest(in).ReceiveReply(out)
338 // Reference imports to suppress errors if they are not otherwise used.
339 var _ = api.RegisterMessage
340 var _ = context.Background