1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/core/interface.api.json
5 Package interfaces is a generated VPP binary API for 'interface' module.
23 api "git.fd.io/govpp.git/api"
24 struc "github.com/lunixbochs/struc"
26 ethernet_types "git.fd.io/govpp.git/examples/binapi/ethernet_types"
27 interface_types "git.fd.io/govpp.git/examples/binapi/interface_types"
28 ip_types "git.fd.io/govpp.git/examples/binapi/ip_types"
32 // ModuleName is the name of this module.
33 ModuleName = "interface"
34 // APIVersion is the API version of this module.
36 // VersionCrc is the CRC of this module.
37 VersionCrc = 0xfebc3ffa
40 type AddressFamily = ip_types.AddressFamily
42 type IfStatusFlags = interface_types.IfStatusFlags
44 type IfType = interface_types.IfType
46 type IPDscp = ip_types.IPDscp
48 type IPEcn = ip_types.IPEcn
50 type IPProto = ip_types.IPProto
52 type LinkDuplex = interface_types.LinkDuplex
54 type MtuProto = interface_types.MtuProto
56 type RxMode = interface_types.RxMode
58 type SubIfFlags = interface_types.SubIfFlags
60 type AddressWithPrefix = ip_types.AddressWithPrefix
62 type InterfaceIndex = interface_types.InterfaceIndex
64 type IP4Address = ip_types.IP4Address
66 type IP4AddressWithPrefix = ip_types.IP4AddressWithPrefix
68 type IP6Address = ip_types.IP6Address
70 type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix
72 type MacAddress = ethernet_types.MacAddress
74 type Address = ip_types.Address
76 type IP4Prefix = ip_types.IP4Prefix
78 type IP6Prefix = ip_types.IP6Prefix
80 type Mprefix = ip_types.Mprefix
82 type Prefix = ip_types.Prefix
84 type PrefixMatcher = ip_types.PrefixMatcher
86 type AddressUnion = ip_types.AddressUnion
88 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats'.
89 type CollectDetailedInterfaceStats struct {
90 SwIfIndex InterfaceIndex
94 func (m *CollectDetailedInterfaceStats) Reset() { *m = CollectDetailedInterfaceStats{} }
95 func (*CollectDetailedInterfaceStats) GetMessageName() string {
96 return "collect_detailed_interface_stats"
98 func (*CollectDetailedInterfaceStats) GetCrcString() string { return "5501adee" }
99 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType { return api.RequestMessage }
101 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply'.
102 type CollectDetailedInterfaceStatsReply struct {
106 func (m *CollectDetailedInterfaceStatsReply) Reset() { *m = CollectDetailedInterfaceStatsReply{} }
107 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
108 return "collect_detailed_interface_stats_reply"
110 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string { return "e8d4e804" }
111 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
113 // CreateLoopback represents VPP binary API message 'create_loopback'.
114 type CreateLoopback struct {
115 MacAddress MacAddress
118 func (m *CreateLoopback) Reset() { *m = CreateLoopback{} }
119 func (*CreateLoopback) GetMessageName() string { return "create_loopback" }
120 func (*CreateLoopback) GetCrcString() string { return "42bb5d22" }
121 func (*CreateLoopback) GetMessageType() api.MessageType { return api.RequestMessage }
123 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance'.
124 type CreateLoopbackInstance struct {
125 MacAddress MacAddress
130 func (m *CreateLoopbackInstance) Reset() { *m = CreateLoopbackInstance{} }
131 func (*CreateLoopbackInstance) GetMessageName() string { return "create_loopback_instance" }
132 func (*CreateLoopbackInstance) GetCrcString() string { return "d36a3ee2" }
133 func (*CreateLoopbackInstance) GetMessageType() api.MessageType { return api.RequestMessage }
135 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply'.
136 type CreateLoopbackInstanceReply struct {
138 SwIfIndex InterfaceIndex
141 func (m *CreateLoopbackInstanceReply) Reset() { *m = CreateLoopbackInstanceReply{} }
142 func (*CreateLoopbackInstanceReply) GetMessageName() string { return "create_loopback_instance_reply" }
143 func (*CreateLoopbackInstanceReply) GetCrcString() string { return "5383d31f" }
144 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
146 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply'.
147 type CreateLoopbackReply struct {
149 SwIfIndex InterfaceIndex
152 func (m *CreateLoopbackReply) Reset() { *m = CreateLoopbackReply{} }
153 func (*CreateLoopbackReply) GetMessageName() string { return "create_loopback_reply" }
154 func (*CreateLoopbackReply) GetCrcString() string { return "5383d31f" }
155 func (*CreateLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage }
157 // CreateSubif represents VPP binary API message 'create_subif'.
158 type CreateSubif struct {
159 SwIfIndex InterfaceIndex
161 SubIfFlags SubIfFlags
166 func (m *CreateSubif) Reset() { *m = CreateSubif{} }
167 func (*CreateSubif) GetMessageName() string { return "create_subif" }
168 func (*CreateSubif) GetCrcString() string { return "cb371063" }
169 func (*CreateSubif) GetMessageType() api.MessageType { return api.RequestMessage }
171 // CreateSubifReply represents VPP binary API message 'create_subif_reply'.
172 type CreateSubifReply struct {
174 SwIfIndex InterfaceIndex
177 func (m *CreateSubifReply) Reset() { *m = CreateSubifReply{} }
178 func (*CreateSubifReply) GetMessageName() string { return "create_subif_reply" }
179 func (*CreateSubifReply) GetCrcString() string { return "5383d31f" }
180 func (*CreateSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
182 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif'.
183 type CreateVlanSubif struct {
184 SwIfIndex InterfaceIndex
188 func (m *CreateVlanSubif) Reset() { *m = CreateVlanSubif{} }
189 func (*CreateVlanSubif) GetMessageName() string { return "create_vlan_subif" }
190 func (*CreateVlanSubif) GetCrcString() string { return "af34ac8b" }
191 func (*CreateVlanSubif) GetMessageType() api.MessageType { return api.RequestMessage }
193 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply'.
194 type CreateVlanSubifReply struct {
196 SwIfIndex InterfaceIndex
199 func (m *CreateVlanSubifReply) Reset() { *m = CreateVlanSubifReply{} }
200 func (*CreateVlanSubifReply) GetMessageName() string { return "create_vlan_subif_reply" }
201 func (*CreateVlanSubifReply) GetCrcString() string { return "5383d31f" }
202 func (*CreateVlanSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
204 // DeleteLoopback represents VPP binary API message 'delete_loopback'.
205 type DeleteLoopback struct {
206 SwIfIndex InterfaceIndex
209 func (m *DeleteLoopback) Reset() { *m = DeleteLoopback{} }
210 func (*DeleteLoopback) GetMessageName() string { return "delete_loopback" }
211 func (*DeleteLoopback) GetCrcString() string { return "f9e6675e" }
212 func (*DeleteLoopback) GetMessageType() api.MessageType { return api.RequestMessage }
214 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply'.
215 type DeleteLoopbackReply struct {
219 func (m *DeleteLoopbackReply) Reset() { *m = DeleteLoopbackReply{} }
220 func (*DeleteLoopbackReply) GetMessageName() string { return "delete_loopback_reply" }
221 func (*DeleteLoopbackReply) GetCrcString() string { return "e8d4e804" }
222 func (*DeleteLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage }
224 // DeleteSubif represents VPP binary API message 'delete_subif'.
225 type DeleteSubif struct {
226 SwIfIndex InterfaceIndex
229 func (m *DeleteSubif) Reset() { *m = DeleteSubif{} }
230 func (*DeleteSubif) GetMessageName() string { return "delete_subif" }
231 func (*DeleteSubif) GetCrcString() string { return "f9e6675e" }
232 func (*DeleteSubif) GetMessageType() api.MessageType { return api.RequestMessage }
234 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply'.
235 type DeleteSubifReply struct {
239 func (m *DeleteSubifReply) Reset() { *m = DeleteSubifReply{} }
240 func (*DeleteSubifReply) GetMessageName() string { return "delete_subif_reply" }
241 func (*DeleteSubifReply) GetCrcString() string { return "e8d4e804" }
242 func (*DeleteSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
244 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu'.
245 type HwInterfaceSetMtu struct {
246 SwIfIndex InterfaceIndex
250 func (m *HwInterfaceSetMtu) Reset() { *m = HwInterfaceSetMtu{} }
251 func (*HwInterfaceSetMtu) GetMessageName() string { return "hw_interface_set_mtu" }
252 func (*HwInterfaceSetMtu) GetCrcString() string { return "e6746899" }
253 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage }
255 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply'.
256 type HwInterfaceSetMtuReply struct {
260 func (m *HwInterfaceSetMtuReply) Reset() { *m = HwInterfaceSetMtuReply{} }
261 func (*HwInterfaceSetMtuReply) GetMessageName() string { return "hw_interface_set_mtu_reply" }
262 func (*HwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
263 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage }
265 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber'.
266 type InterfaceNameRenumber struct {
267 SwIfIndex InterfaceIndex
268 NewShowDevInstance uint32
271 func (m *InterfaceNameRenumber) Reset() { *m = InterfaceNameRenumber{} }
272 func (*InterfaceNameRenumber) GetMessageName() string { return "interface_name_renumber" }
273 func (*InterfaceNameRenumber) GetCrcString() string { return "2b8858b8" }
274 func (*InterfaceNameRenumber) GetMessageType() api.MessageType { return api.RequestMessage }
276 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply'.
277 type InterfaceNameRenumberReply struct {
281 func (m *InterfaceNameRenumberReply) Reset() { *m = InterfaceNameRenumberReply{} }
282 func (*InterfaceNameRenumberReply) GetMessageName() string { return "interface_name_renumber_reply" }
283 func (*InterfaceNameRenumberReply) GetCrcString() string { return "e8d4e804" }
284 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType { return api.ReplyMessage }
286 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address'.
287 type SwInterfaceAddDelAddress struct {
288 SwIfIndex InterfaceIndex
291 Prefix AddressWithPrefix
294 func (m *SwInterfaceAddDelAddress) Reset() { *m = SwInterfaceAddDelAddress{} }
295 func (*SwInterfaceAddDelAddress) GetMessageName() string { return "sw_interface_add_del_address" }
296 func (*SwInterfaceAddDelAddress) GetCrcString() string { return "5803d5c4" }
297 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType { return api.RequestMessage }
299 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply'.
300 type SwInterfaceAddDelAddressReply struct {
304 func (m *SwInterfaceAddDelAddressReply) Reset() { *m = SwInterfaceAddDelAddressReply{} }
305 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
306 return "sw_interface_add_del_address_reply"
308 func (*SwInterfaceAddDelAddressReply) GetCrcString() string { return "e8d4e804" }
309 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
311 // SwInterfaceAddDelMacAddress represents VPP binary API message 'sw_interface_add_del_mac_address'.
312 type SwInterfaceAddDelMacAddress struct {
318 func (m *SwInterfaceAddDelMacAddress) Reset() { *m = SwInterfaceAddDelMacAddress{} }
319 func (*SwInterfaceAddDelMacAddress) GetMessageName() string {
320 return "sw_interface_add_del_mac_address"
322 func (*SwInterfaceAddDelMacAddress) GetCrcString() string { return "638bb9f4" }
323 func (*SwInterfaceAddDelMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
325 // SwInterfaceAddDelMacAddressReply represents VPP binary API message 'sw_interface_add_del_mac_address_reply'.
326 type SwInterfaceAddDelMacAddressReply struct {
330 func (m *SwInterfaceAddDelMacAddressReply) Reset() { *m = SwInterfaceAddDelMacAddressReply{} }
331 func (*SwInterfaceAddDelMacAddressReply) GetMessageName() string {
332 return "sw_interface_add_del_mac_address_reply"
334 func (*SwInterfaceAddDelMacAddressReply) GetCrcString() string { return "e8d4e804" }
335 func (*SwInterfaceAddDelMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
337 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats'.
338 type SwInterfaceClearStats struct {
339 SwIfIndex InterfaceIndex
342 func (m *SwInterfaceClearStats) Reset() { *m = SwInterfaceClearStats{} }
343 func (*SwInterfaceClearStats) GetMessageName() string { return "sw_interface_clear_stats" }
344 func (*SwInterfaceClearStats) GetCrcString() string { return "f9e6675e" }
345 func (*SwInterfaceClearStats) GetMessageType() api.MessageType { return api.RequestMessage }
347 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply'.
348 type SwInterfaceClearStatsReply struct {
352 func (m *SwInterfaceClearStatsReply) Reset() { *m = SwInterfaceClearStatsReply{} }
353 func (*SwInterfaceClearStatsReply) GetMessageName() string { return "sw_interface_clear_stats_reply" }
354 func (*SwInterfaceClearStatsReply) GetCrcString() string { return "e8d4e804" }
355 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
357 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details'.
358 type SwInterfaceDetails struct {
359 SwIfIndex InterfaceIndex
364 LinkDuplex LinkDuplex
367 Mtu []uint32 `struc:"[4]uint32"`
369 SubNumberOfTags uint8
370 SubOuterVlanID uint16
371 SubInnerVlanID uint16
372 SubIfFlags SubIfFlags
382 InterfaceName string `struc:"[64]byte"`
383 InterfaceDevType string `struc:"[64]byte"`
384 Tag string `struc:"[64]byte"`
387 func (m *SwInterfaceDetails) Reset() { *m = SwInterfaceDetails{} }
388 func (*SwInterfaceDetails) GetMessageName() string { return "sw_interface_details" }
389 func (*SwInterfaceDetails) GetCrcString() string { return "17b69fa2" }
390 func (*SwInterfaceDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
392 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump'.
393 type SwInterfaceDump struct {
394 SwIfIndex InterfaceIndex
396 XXX_NameFilterLen uint32 `struc:"sizeof=NameFilter"`
400 func (m *SwInterfaceDump) Reset() { *m = SwInterfaceDump{} }
401 func (*SwInterfaceDump) GetMessageName() string { return "sw_interface_dump" }
402 func (*SwInterfaceDump) GetCrcString() string { return "aa610c27" }
403 func (*SwInterfaceDump) GetMessageType() api.MessageType { return api.RequestMessage }
405 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
406 type SwInterfaceEvent struct {
408 SwIfIndex InterfaceIndex
413 func (m *SwInterfaceEvent) Reset() { *m = SwInterfaceEvent{} }
414 func (*SwInterfaceEvent) GetMessageName() string { return "sw_interface_event" }
415 func (*SwInterfaceEvent) GetCrcString() string { return "f709f78d" }
416 func (*SwInterfaceEvent) GetMessageType() api.MessageType { return api.EventMessage }
418 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
419 type SwInterfaceGetMacAddress struct {
420 SwIfIndex InterfaceIndex
423 func (m *SwInterfaceGetMacAddress) Reset() { *m = SwInterfaceGetMacAddress{} }
424 func (*SwInterfaceGetMacAddress) GetMessageName() string { return "sw_interface_get_mac_address" }
425 func (*SwInterfaceGetMacAddress) GetCrcString() string { return "f9e6675e" }
426 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
428 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
429 type SwInterfaceGetMacAddressReply struct {
431 MacAddress MacAddress
434 func (m *SwInterfaceGetMacAddressReply) Reset() { *m = SwInterfaceGetMacAddressReply{} }
435 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
436 return "sw_interface_get_mac_address_reply"
438 func (*SwInterfaceGetMacAddressReply) GetCrcString() string { return "40ef2c08" }
439 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
441 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
442 type SwInterfaceGetTable struct {
443 SwIfIndex InterfaceIndex
447 func (m *SwInterfaceGetTable) Reset() { *m = SwInterfaceGetTable{} }
448 func (*SwInterfaceGetTable) GetMessageName() string { return "sw_interface_get_table" }
449 func (*SwInterfaceGetTable) GetCrcString() string { return "2d033de4" }
450 func (*SwInterfaceGetTable) GetMessageType() api.MessageType { return api.RequestMessage }
452 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
453 type SwInterfaceGetTableReply struct {
458 func (m *SwInterfaceGetTableReply) Reset() { *m = SwInterfaceGetTableReply{} }
459 func (*SwInterfaceGetTableReply) GetMessageName() string { return "sw_interface_get_table_reply" }
460 func (*SwInterfaceGetTableReply) GetCrcString() string { return "a6eb0109" }
461 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
463 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
464 type SwInterfaceRxPlacementDetails struct {
465 SwIfIndex InterfaceIndex
471 func (m *SwInterfaceRxPlacementDetails) Reset() { *m = SwInterfaceRxPlacementDetails{} }
472 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
473 return "sw_interface_rx_placement_details"
475 func (*SwInterfaceRxPlacementDetails) GetCrcString() string { return "f6d7d024" }
476 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType { return api.RequestMessage }
478 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
479 type SwInterfaceRxPlacementDump struct {
480 SwIfIndex InterfaceIndex
483 func (m *SwInterfaceRxPlacementDump) Reset() { *m = SwInterfaceRxPlacementDump{} }
484 func (*SwInterfaceRxPlacementDump) GetMessageName() string { return "sw_interface_rx_placement_dump" }
485 func (*SwInterfaceRxPlacementDump) GetCrcString() string { return "f9e6675e" }
486 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType { return api.RequestMessage }
488 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
489 type SwInterfaceSetFlags struct {
490 SwIfIndex InterfaceIndex
494 func (m *SwInterfaceSetFlags) Reset() { *m = SwInterfaceSetFlags{} }
495 func (*SwInterfaceSetFlags) GetMessageName() string { return "sw_interface_set_flags" }
496 func (*SwInterfaceSetFlags) GetCrcString() string { return "6a2b491a" }
497 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType { return api.RequestMessage }
499 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
500 type SwInterfaceSetFlagsReply struct {
504 func (m *SwInterfaceSetFlagsReply) Reset() { *m = SwInterfaceSetFlagsReply{} }
505 func (*SwInterfaceSetFlagsReply) GetMessageName() string { return "sw_interface_set_flags_reply" }
506 func (*SwInterfaceSetFlagsReply) GetCrcString() string { return "e8d4e804" }
507 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
509 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
510 type SwInterfaceSetIPDirectedBroadcast struct {
511 SwIfIndex InterfaceIndex
515 func (m *SwInterfaceSetIPDirectedBroadcast) Reset() { *m = SwInterfaceSetIPDirectedBroadcast{} }
516 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
517 return "sw_interface_set_ip_directed_broadcast"
519 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string { return "ae6cfcfb" }
520 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType { return api.RequestMessage }
522 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
523 type SwInterfaceSetIPDirectedBroadcastReply struct {
527 func (m *SwInterfaceSetIPDirectedBroadcastReply) Reset() {
528 *m = SwInterfaceSetIPDirectedBroadcastReply{}
530 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
531 return "sw_interface_set_ip_directed_broadcast_reply"
533 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string { return "e8d4e804" }
534 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
535 return api.ReplyMessage
538 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
539 type SwInterfaceSetMacAddress struct {
540 SwIfIndex InterfaceIndex
541 MacAddress MacAddress
544 func (m *SwInterfaceSetMacAddress) Reset() { *m = SwInterfaceSetMacAddress{} }
545 func (*SwInterfaceSetMacAddress) GetMessageName() string { return "sw_interface_set_mac_address" }
546 func (*SwInterfaceSetMacAddress) GetCrcString() string { return "6aca746a" }
547 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
549 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
550 type SwInterfaceSetMacAddressReply struct {
554 func (m *SwInterfaceSetMacAddressReply) Reset() { *m = SwInterfaceSetMacAddressReply{} }
555 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
556 return "sw_interface_set_mac_address_reply"
558 func (*SwInterfaceSetMacAddressReply) GetCrcString() string { return "e8d4e804" }
559 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
561 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
562 type SwInterfaceSetMtu struct {
563 SwIfIndex InterfaceIndex
564 Mtu []uint32 `struc:"[4]uint32"`
567 func (m *SwInterfaceSetMtu) Reset() { *m = SwInterfaceSetMtu{} }
568 func (*SwInterfaceSetMtu) GetMessageName() string { return "sw_interface_set_mtu" }
569 func (*SwInterfaceSetMtu) GetCrcString() string { return "5cbe85e5" }
570 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage }
572 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
573 type SwInterfaceSetMtuReply struct {
577 func (m *SwInterfaceSetMtuReply) Reset() { *m = SwInterfaceSetMtuReply{} }
578 func (*SwInterfaceSetMtuReply) GetMessageName() string { return "sw_interface_set_mtu_reply" }
579 func (*SwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
580 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage }
582 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
583 type SwInterfaceSetRxMode struct {
584 SwIfIndex InterfaceIndex
590 func (m *SwInterfaceSetRxMode) Reset() { *m = SwInterfaceSetRxMode{} }
591 func (*SwInterfaceSetRxMode) GetMessageName() string { return "sw_interface_set_rx_mode" }
592 func (*SwInterfaceSetRxMode) GetCrcString() string { return "780f5cee" }
593 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType { return api.RequestMessage }
595 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
596 type SwInterfaceSetRxModeReply struct {
600 func (m *SwInterfaceSetRxModeReply) Reset() { *m = SwInterfaceSetRxModeReply{} }
601 func (*SwInterfaceSetRxModeReply) GetMessageName() string { return "sw_interface_set_rx_mode_reply" }
602 func (*SwInterfaceSetRxModeReply) GetCrcString() string { return "e8d4e804" }
603 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType { return api.ReplyMessage }
605 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
606 type SwInterfaceSetRxPlacement struct {
607 SwIfIndex InterfaceIndex
613 func (m *SwInterfaceSetRxPlacement) Reset() { *m = SwInterfaceSetRxPlacement{} }
614 func (*SwInterfaceSetRxPlacement) GetMessageName() string { return "sw_interface_set_rx_placement" }
615 func (*SwInterfaceSetRxPlacement) GetCrcString() string { return "db65f3c9" }
616 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType { return api.RequestMessage }
618 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
619 type SwInterfaceSetRxPlacementReply struct {
623 func (m *SwInterfaceSetRxPlacementReply) Reset() { *m = SwInterfaceSetRxPlacementReply{} }
624 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
625 return "sw_interface_set_rx_placement_reply"
627 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string { return "e8d4e804" }
628 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType { return api.ReplyMessage }
630 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
631 type SwInterfaceSetTable struct {
632 SwIfIndex InterfaceIndex
637 func (m *SwInterfaceSetTable) Reset() { *m = SwInterfaceSetTable{} }
638 func (*SwInterfaceSetTable) GetMessageName() string { return "sw_interface_set_table" }
639 func (*SwInterfaceSetTable) GetCrcString() string { return "df42a577" }
640 func (*SwInterfaceSetTable) GetMessageType() api.MessageType { return api.RequestMessage }
642 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
643 type SwInterfaceSetTableReply struct {
647 func (m *SwInterfaceSetTableReply) Reset() { *m = SwInterfaceSetTableReply{} }
648 func (*SwInterfaceSetTableReply) GetMessageName() string { return "sw_interface_set_table_reply" }
649 func (*SwInterfaceSetTableReply) GetCrcString() string { return "e8d4e804" }
650 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
652 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
653 type SwInterfaceSetUnnumbered struct {
654 SwIfIndex InterfaceIndex
655 UnnumberedSwIfIndex InterfaceIndex
659 func (m *SwInterfaceSetUnnumbered) Reset() { *m = SwInterfaceSetUnnumbered{} }
660 func (*SwInterfaceSetUnnumbered) GetMessageName() string { return "sw_interface_set_unnumbered" }
661 func (*SwInterfaceSetUnnumbered) GetCrcString() string { return "938ef33b" }
662 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType { return api.RequestMessage }
664 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
665 type SwInterfaceSetUnnumberedReply struct {
669 func (m *SwInterfaceSetUnnumberedReply) Reset() { *m = SwInterfaceSetUnnumberedReply{} }
670 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
671 return "sw_interface_set_unnumbered_reply"
673 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string { return "e8d4e804" }
674 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType { return api.ReplyMessage }
676 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
677 type SwInterfaceTagAddDel struct {
679 SwIfIndex InterfaceIndex
680 Tag string `struc:"[64]byte"`
683 func (m *SwInterfaceTagAddDel) Reset() { *m = SwInterfaceTagAddDel{} }
684 func (*SwInterfaceTagAddDel) GetMessageName() string { return "sw_interface_tag_add_del" }
685 func (*SwInterfaceTagAddDel) GetCrcString() string { return "426f8bc1" }
686 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
688 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
689 type SwInterfaceTagAddDelReply struct {
693 func (m *SwInterfaceTagAddDelReply) Reset() { *m = SwInterfaceTagAddDelReply{} }
694 func (*SwInterfaceTagAddDelReply) GetMessageName() string { return "sw_interface_tag_add_del_reply" }
695 func (*SwInterfaceTagAddDelReply) GetCrcString() string { return "e8d4e804" }
696 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
698 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
699 type WantInterfaceEvents struct {
704 func (m *WantInterfaceEvents) Reset() { *m = WantInterfaceEvents{} }
705 func (*WantInterfaceEvents) GetMessageName() string { return "want_interface_events" }
706 func (*WantInterfaceEvents) GetCrcString() string { return "476f5a08" }
707 func (*WantInterfaceEvents) GetMessageType() api.MessageType { return api.RequestMessage }
709 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
710 type WantInterfaceEventsReply struct {
714 func (m *WantInterfaceEventsReply) Reset() { *m = WantInterfaceEventsReply{} }
715 func (*WantInterfaceEventsReply) GetMessageName() string { return "want_interface_events_reply" }
716 func (*WantInterfaceEventsReply) GetCrcString() string { return "e8d4e804" }
717 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
720 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
721 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
722 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
723 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
724 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
725 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
726 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
727 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
728 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
729 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
730 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
731 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
732 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
733 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
734 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
735 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
736 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
737 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
738 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
739 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
740 api.RegisterMessage((*SwInterfaceAddDelMacAddress)(nil), "interface.SwInterfaceAddDelMacAddress")
741 api.RegisterMessage((*SwInterfaceAddDelMacAddressReply)(nil), "interface.SwInterfaceAddDelMacAddressReply")
742 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
743 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
744 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
745 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
746 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
747 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
748 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
749 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
750 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
751 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
752 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
753 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
754 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
755 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
756 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
757 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
758 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
759 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
760 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
761 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
762 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
763 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
764 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
765 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
766 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
767 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
768 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
769 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
770 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
771 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
772 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
775 // Messages returns list of all messages in this module.
776 func AllMessages() []api.Message {
777 return []api.Message{
778 (*CollectDetailedInterfaceStats)(nil),
779 (*CollectDetailedInterfaceStatsReply)(nil),
780 (*CreateLoopback)(nil),
781 (*CreateLoopbackInstance)(nil),
782 (*CreateLoopbackInstanceReply)(nil),
783 (*CreateLoopbackReply)(nil),
785 (*CreateSubifReply)(nil),
786 (*CreateVlanSubif)(nil),
787 (*CreateVlanSubifReply)(nil),
788 (*DeleteLoopback)(nil),
789 (*DeleteLoopbackReply)(nil),
791 (*DeleteSubifReply)(nil),
792 (*HwInterfaceSetMtu)(nil),
793 (*HwInterfaceSetMtuReply)(nil),
794 (*InterfaceNameRenumber)(nil),
795 (*InterfaceNameRenumberReply)(nil),
796 (*SwInterfaceAddDelAddress)(nil),
797 (*SwInterfaceAddDelAddressReply)(nil),
798 (*SwInterfaceAddDelMacAddress)(nil),
799 (*SwInterfaceAddDelMacAddressReply)(nil),
800 (*SwInterfaceClearStats)(nil),
801 (*SwInterfaceClearStatsReply)(nil),
802 (*SwInterfaceDetails)(nil),
803 (*SwInterfaceDump)(nil),
804 (*SwInterfaceEvent)(nil),
805 (*SwInterfaceGetMacAddress)(nil),
806 (*SwInterfaceGetMacAddressReply)(nil),
807 (*SwInterfaceGetTable)(nil),
808 (*SwInterfaceGetTableReply)(nil),
809 (*SwInterfaceRxPlacementDetails)(nil),
810 (*SwInterfaceRxPlacementDump)(nil),
811 (*SwInterfaceSetFlags)(nil),
812 (*SwInterfaceSetFlagsReply)(nil),
813 (*SwInterfaceSetIPDirectedBroadcast)(nil),
814 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
815 (*SwInterfaceSetMacAddress)(nil),
816 (*SwInterfaceSetMacAddressReply)(nil),
817 (*SwInterfaceSetMtu)(nil),
818 (*SwInterfaceSetMtuReply)(nil),
819 (*SwInterfaceSetRxMode)(nil),
820 (*SwInterfaceSetRxModeReply)(nil),
821 (*SwInterfaceSetRxPlacement)(nil),
822 (*SwInterfaceSetRxPlacementReply)(nil),
823 (*SwInterfaceSetTable)(nil),
824 (*SwInterfaceSetTableReply)(nil),
825 (*SwInterfaceSetUnnumbered)(nil),
826 (*SwInterfaceSetUnnumberedReply)(nil),
827 (*SwInterfaceTagAddDel)(nil),
828 (*SwInterfaceTagAddDelReply)(nil),
829 (*WantInterfaceEvents)(nil),
830 (*WantInterfaceEventsReply)(nil),
834 // RPCService represents RPC service API for interface module.
835 type RPCService interface {
836 DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
837 DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
838 CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
839 CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
840 CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
841 CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
842 CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
843 DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
844 DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
845 HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
846 InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
847 SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
848 SwInterfaceAddDelMacAddress(ctx context.Context, in *SwInterfaceAddDelMacAddress) (*SwInterfaceAddDelMacAddressReply, error)
849 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
850 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
851 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
852 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
853 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
854 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
855 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
856 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
857 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
858 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
859 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
860 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
861 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
864 type serviceClient struct {
868 func NewServiceClient(ch api.Channel) RPCService {
869 return &serviceClient{ch}
872 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
873 stream := c.ch.SendMultiRequest(in)
874 x := &serviceClient_DumpSwInterfaceClient{stream}
878 type RPCService_DumpSwInterfaceClient interface {
879 Recv() (*SwInterfaceDetails, error)
882 type serviceClient_DumpSwInterfaceClient struct {
886 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
887 m := new(SwInterfaceDetails)
888 stop, err := c.MultiRequestCtx.ReceiveReply(m)
898 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
899 stream := c.ch.SendMultiRequest(in)
900 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
904 type RPCService_DumpSwInterfaceRxPlacementClient interface {
905 Recv() (*SwInterfaceRxPlacementDetails, error)
908 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
912 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
913 m := new(SwInterfaceRxPlacementDetails)
914 stop, err := c.MultiRequestCtx.ReceiveReply(m)
924 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
925 out := new(CollectDetailedInterfaceStatsReply)
926 err := c.ch.SendRequest(in).ReceiveReply(out)
933 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
934 out := new(CreateLoopbackReply)
935 err := c.ch.SendRequest(in).ReceiveReply(out)
942 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
943 out := new(CreateLoopbackInstanceReply)
944 err := c.ch.SendRequest(in).ReceiveReply(out)
951 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
952 out := new(CreateSubifReply)
953 err := c.ch.SendRequest(in).ReceiveReply(out)
960 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
961 out := new(CreateVlanSubifReply)
962 err := c.ch.SendRequest(in).ReceiveReply(out)
969 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
970 out := new(DeleteLoopbackReply)
971 err := c.ch.SendRequest(in).ReceiveReply(out)
978 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
979 out := new(DeleteSubifReply)
980 err := c.ch.SendRequest(in).ReceiveReply(out)
987 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
988 out := new(HwInterfaceSetMtuReply)
989 err := c.ch.SendRequest(in).ReceiveReply(out)
996 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
997 out := new(InterfaceNameRenumberReply)
998 err := c.ch.SendRequest(in).ReceiveReply(out)
1005 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1006 out := new(SwInterfaceAddDelAddressReply)
1007 err := c.ch.SendRequest(in).ReceiveReply(out)
1014 func (c *serviceClient) SwInterfaceAddDelMacAddress(ctx context.Context, in *SwInterfaceAddDelMacAddress) (*SwInterfaceAddDelMacAddressReply, error) {
1015 out := new(SwInterfaceAddDelMacAddressReply)
1016 err := c.ch.SendRequest(in).ReceiveReply(out)
1023 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1024 out := new(SwInterfaceClearStatsReply)
1025 err := c.ch.SendRequest(in).ReceiveReply(out)
1032 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1033 out := new(SwInterfaceGetMacAddressReply)
1034 err := c.ch.SendRequest(in).ReceiveReply(out)
1041 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1042 out := new(SwInterfaceGetTableReply)
1043 err := c.ch.SendRequest(in).ReceiveReply(out)
1050 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1051 out := new(SwInterfaceSetFlagsReply)
1052 err := c.ch.SendRequest(in).ReceiveReply(out)
1059 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1060 out := new(SwInterfaceSetIPDirectedBroadcastReply)
1061 err := c.ch.SendRequest(in).ReceiveReply(out)
1068 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1069 out := new(SwInterfaceSetMacAddressReply)
1070 err := c.ch.SendRequest(in).ReceiveReply(out)
1077 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1078 out := new(SwInterfaceSetMtuReply)
1079 err := c.ch.SendRequest(in).ReceiveReply(out)
1086 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1087 out := new(SwInterfaceSetRxModeReply)
1088 err := c.ch.SendRequest(in).ReceiveReply(out)
1095 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1096 out := new(SwInterfaceSetRxPlacementReply)
1097 err := c.ch.SendRequest(in).ReceiveReply(out)
1104 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1105 out := new(SwInterfaceSetTableReply)
1106 err := c.ch.SendRequest(in).ReceiveReply(out)
1113 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1114 out := new(SwInterfaceSetUnnumberedReply)
1115 err := c.ch.SendRequest(in).ReceiveReply(out)
1122 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1123 out := new(SwInterfaceTagAddDelReply)
1124 err := c.ch.SendRequest(in).ReceiveReply(out)
1131 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1132 out := new(WantInterfaceEventsReply)
1133 err := c.ch.SendRequest(in).ReceiveReply(out)
1140 // This is a compile-time assertion to ensure that this generated file
1141 // is compatible with the GoVPP api package it is being compiled against.
1142 // A compilation error at this line likely means your copy of the
1143 // GoVPP api package needs to be updated.
1144 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
1146 // Reference imports to suppress errors if they are not otherwise used.
1147 var _ = api.RegisterMessage
1148 var _ = bytes.NewBuffer
1149 var _ = context.Background
1151 var _ = strconv.Itoa