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 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
28 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
29 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
30 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
31 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
32 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
33 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
34 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
35 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
36 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
37 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
38 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
39 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
42 type serviceClient struct {
46 func NewServiceClient(ch api.Channel) RPCService {
47 return &serviceClient{ch}
50 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
51 stream := c.ch.SendMultiRequest(in)
52 x := &serviceClient_DumpSwInterfaceClient{stream}
56 type RPCService_DumpSwInterfaceClient interface {
57 Recv() (*SwInterfaceDetails, error)
60 type serviceClient_DumpSwInterfaceClient struct {
64 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
65 m := new(SwInterfaceDetails)
66 stop, err := c.MultiRequestCtx.ReceiveReply(m)
76 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
77 stream := c.ch.SendMultiRequest(in)
78 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
82 type RPCService_DumpSwInterfaceRxPlacementClient interface {
83 Recv() (*SwInterfaceRxPlacementDetails, error)
86 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
90 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
91 m := new(SwInterfaceRxPlacementDetails)
92 stop, err := c.MultiRequestCtx.ReceiveReply(m)
102 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
103 out := new(CollectDetailedInterfaceStatsReply)
104 err := c.ch.SendRequest(in).ReceiveReply(out)
111 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
112 out := new(CreateLoopbackReply)
113 err := c.ch.SendRequest(in).ReceiveReply(out)
120 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
121 out := new(CreateLoopbackInstanceReply)
122 err := c.ch.SendRequest(in).ReceiveReply(out)
129 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
130 out := new(CreateSubifReply)
131 err := c.ch.SendRequest(in).ReceiveReply(out)
138 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
139 out := new(CreateVlanSubifReply)
140 err := c.ch.SendRequest(in).ReceiveReply(out)
147 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
148 out := new(DeleteLoopbackReply)
149 err := c.ch.SendRequest(in).ReceiveReply(out)
156 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
157 out := new(DeleteSubifReply)
158 err := c.ch.SendRequest(in).ReceiveReply(out)
165 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
166 out := new(HwInterfaceSetMtuReply)
167 err := c.ch.SendRequest(in).ReceiveReply(out)
174 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
175 out := new(InterfaceNameRenumberReply)
176 err := c.ch.SendRequest(in).ReceiveReply(out)
183 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
184 out := new(SwInterfaceAddDelAddressReply)
185 err := c.ch.SendRequest(in).ReceiveReply(out)
192 func (c *serviceClient) SwInterfaceAddDelMacAddress(ctx context.Context, in *SwInterfaceAddDelMacAddress) (*SwInterfaceAddDelMacAddressReply, error) {
193 out := new(SwInterfaceAddDelMacAddressReply)
194 err := c.ch.SendRequest(in).ReceiveReply(out)
201 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
202 out := new(SwInterfaceClearStatsReply)
203 err := c.ch.SendRequest(in).ReceiveReply(out)
210 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
211 out := new(SwInterfaceGetMacAddressReply)
212 err := c.ch.SendRequest(in).ReceiveReply(out)
219 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
220 out := new(SwInterfaceGetTableReply)
221 err := c.ch.SendRequest(in).ReceiveReply(out)
228 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
229 out := new(SwInterfaceSetFlagsReply)
230 err := c.ch.SendRequest(in).ReceiveReply(out)
237 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
238 out := new(SwInterfaceSetIPDirectedBroadcastReply)
239 err := c.ch.SendRequest(in).ReceiveReply(out)
246 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
247 out := new(SwInterfaceSetMacAddressReply)
248 err := c.ch.SendRequest(in).ReceiveReply(out)
255 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
256 out := new(SwInterfaceSetMtuReply)
257 err := c.ch.SendRequest(in).ReceiveReply(out)
264 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
265 out := new(SwInterfaceSetRxModeReply)
266 err := c.ch.SendRequest(in).ReceiveReply(out)
273 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
274 out := new(SwInterfaceSetRxPlacementReply)
275 err := c.ch.SendRequest(in).ReceiveReply(out)
282 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
283 out := new(SwInterfaceSetTableReply)
284 err := c.ch.SendRequest(in).ReceiveReply(out)
291 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
292 out := new(SwInterfaceSetUnnumberedReply)
293 err := c.ch.SendRequest(in).ReceiveReply(out)
300 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
301 out := new(SwInterfaceTagAddDelReply)
302 err := c.ch.SendRequest(in).ReceiveReply(out)
309 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
310 out := new(WantInterfaceEventsReply)
311 err := c.ch.SendRequest(in).ReceiveReply(out)
318 // Reference imports to suppress errors if they are not otherwise used.
319 var _ = api.RegisterMessage
320 var _ = context.Background