1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: interface.api.json
5 Package interfaces is a generated VPP binary API of the 'interface' VPP module.
7 It is generated from this file:
10 It contains these VPP binary API objects:
17 import "git.fd.io/govpp.git/api"
18 import "github.com/lunixbochs/struc"
21 // Reference imports to suppress errors if they are not otherwise used.
22 var _ = api.RegisterMessage
24 var _ = bytes.NewBuffer
28 // VlibCounter represents the VPP binary API type 'vlib_counter'.
29 // Generated from 'interface.api.json', line 1301:
41 // "crc": "0xce2325a2"
44 type VlibCounter struct {
49 func (*VlibCounter) GetTypeName() string {
52 func (*VlibCounter) GetCrcString() string {
56 // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
57 // Generated from 'interface.api.json', line 1315:
59 // "vnet_combined_counter",
74 // "rx_unicast_packets"
82 // "rx_multicast_packets"
86 // "rx_multicast_bytes"
90 // "rx_broadcast_packets"
94 // "rx_broadcast_bytes"
106 // "tx_unicast_packets"
110 // "tx_unicast_bytes"
114 // "tx_multicast_packets"
118 // "tx_multicast_bytes"
122 // "tx_broadcast_packets"
126 // "tx_broadcast_bytes"
129 // "crc": "0x20905ca4"
132 type VnetCombinedCounter struct {
136 RxUnicastPackets uint64
137 RxUnicastBytes uint64
138 RxMulticastPackets uint64
139 RxMulticastBytes uint64
140 RxBroadcastPackets uint64
141 RxBroadcastBytes uint64
144 TxUnicastPackets uint64
145 TxUnicastBytes uint64
146 TxMulticastPackets uint64
147 TxMulticastBytes uint64
148 TxBroadcastPackets uint64
149 TxBroadcastBytes uint64
152 func (*VnetCombinedCounter) GetTypeName() string {
153 return "vnet_combined_counter"
155 func (*VnetCombinedCounter) GetCrcString() string {
159 // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
160 // Generated from 'interface.api.json', line 1389:
162 // "vnet_simple_counter",
204 // "crc": "0x8bd65e2d"
207 type VnetSimpleCounter struct {
220 func (*VnetSimpleCounter) GetTypeName() string {
221 return "vnet_simple_counter"
223 func (*VnetSimpleCounter) GetCrcString() string {
229 // SwInterfaceSetFlags represents the VPP binary API message 'sw_interface_set_flags'.
230 // Generated from 'interface.api.json', line 4:
232 // "sw_interface_set_flags",
254 // "crc": "0x555485f5"
257 type SwInterfaceSetFlags struct {
262 func (*SwInterfaceSetFlags) GetMessageName() string {
263 return "sw_interface_set_flags"
265 func (*SwInterfaceSetFlags) GetCrcString() string {
268 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
269 return api.RequestMessage
271 func NewSwInterfaceSetFlags() api.Message {
272 return &SwInterfaceSetFlags{}
275 // SwInterfaceSetFlagsReply represents the VPP binary API message 'sw_interface_set_flags_reply'.
276 // Generated from 'interface.api.json', line 30:
278 // "sw_interface_set_flags_reply",
292 // "crc": "0xe8d4e804"
295 type SwInterfaceSetFlagsReply struct {
299 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
300 return "sw_interface_set_flags_reply"
302 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
305 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
306 return api.ReplyMessage
308 func NewSwInterfaceSetFlagsReply() api.Message {
309 return &SwInterfaceSetFlagsReply{}
312 // HwInterfaceSetMtu represents the VPP binary API message 'hw_interface_set_mtu'.
313 // Generated from 'interface.api.json', line 48:
315 // "hw_interface_set_mtu",
337 // "crc": "0x132da1e7"
340 type HwInterfaceSetMtu struct {
345 func (*HwInterfaceSetMtu) GetMessageName() string {
346 return "hw_interface_set_mtu"
348 func (*HwInterfaceSetMtu) GetCrcString() string {
351 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
352 return api.RequestMessage
354 func NewHwInterfaceSetMtu() api.Message {
355 return &HwInterfaceSetMtu{}
358 // HwInterfaceSetMtuReply represents the VPP binary API message 'hw_interface_set_mtu_reply'.
359 // Generated from 'interface.api.json', line 74:
361 // "hw_interface_set_mtu_reply",
375 // "crc": "0xe8d4e804"
378 type HwInterfaceSetMtuReply struct {
382 func (*HwInterfaceSetMtuReply) GetMessageName() string {
383 return "hw_interface_set_mtu_reply"
385 func (*HwInterfaceSetMtuReply) GetCrcString() string {
388 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
389 return api.ReplyMessage
391 func NewHwInterfaceSetMtuReply() api.Message {
392 return &HwInterfaceSetMtuReply{}
395 // SwInterfaceSetMtu represents the VPP binary API message 'sw_interface_set_mtu'.
396 // Generated from 'interface.api.json', line 92:
398 // "sw_interface_set_mtu",
421 // "crc": "0xd0008db8"
424 type SwInterfaceSetMtu struct {
426 Mtu []uint32 `struc:"[4]uint32"`
429 func (*SwInterfaceSetMtu) GetMessageName() string {
430 return "sw_interface_set_mtu"
432 func (*SwInterfaceSetMtu) GetCrcString() string {
435 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
436 return api.RequestMessage
438 func NewSwInterfaceSetMtu() api.Message {
439 return &SwInterfaceSetMtu{}
442 // SwInterfaceSetMtuReply represents the VPP binary API message 'sw_interface_set_mtu_reply'.
443 // Generated from 'interface.api.json', line 119:
445 // "sw_interface_set_mtu_reply",
459 // "crc": "0xe8d4e804"
462 type SwInterfaceSetMtuReply struct {
466 func (*SwInterfaceSetMtuReply) GetMessageName() string {
467 return "sw_interface_set_mtu_reply"
469 func (*SwInterfaceSetMtuReply) GetCrcString() string {
472 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
473 return api.ReplyMessage
475 func NewSwInterfaceSetMtuReply() api.Message {
476 return &SwInterfaceSetMtuReply{}
479 // SwInterfaceEvent represents the VPP binary API message 'sw_interface_event'.
480 // Generated from 'interface.api.json', line 137:
482 // "sw_interface_event",
512 // "crc": "0xbf9938e4"
515 type SwInterfaceEvent struct {
523 func (*SwInterfaceEvent) GetMessageName() string {
524 return "sw_interface_event"
526 func (*SwInterfaceEvent) GetCrcString() string {
529 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
530 return api.EventMessage
532 func NewSwInterfaceEvent() api.Message {
533 return &SwInterfaceEvent{}
536 // WantInterfaceEvents represents the VPP binary API message 'want_interface_events'.
537 // Generated from 'interface.api.json', line 171:
539 // "want_interface_events",
561 // "crc": "0x476f5a08"
564 type WantInterfaceEvents struct {
569 func (*WantInterfaceEvents) GetMessageName() string {
570 return "want_interface_events"
572 func (*WantInterfaceEvents) GetCrcString() string {
575 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
576 return api.RequestMessage
578 func NewWantInterfaceEvents() api.Message {
579 return &WantInterfaceEvents{}
582 // WantInterfaceEventsReply represents the VPP binary API message 'want_interface_events_reply'.
583 // Generated from 'interface.api.json', line 197:
585 // "want_interface_events_reply",
599 // "crc": "0xe8d4e804"
602 type WantInterfaceEventsReply struct {
606 func (*WantInterfaceEventsReply) GetMessageName() string {
607 return "want_interface_events_reply"
609 func (*WantInterfaceEventsReply) GetCrcString() string {
612 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
613 return api.ReplyMessage
615 func NewWantInterfaceEventsReply() api.Message {
616 return &WantInterfaceEventsReply{}
619 // SwInterfaceDetails represents the VPP binary API message 'sw_interface_details'.
620 // Generated from 'interface.api.json', line 215:
622 // "sw_interface_details",
641 // "l2_address_length"
692 // "sub_number_of_tags"
696 // "sub_outer_vlan_id"
700 // "sub_inner_vlan_id"
712 // "sub_outer_vlan_id_any"
716 // "sub_inner_vlan_id_any"
762 // "crc": "0x09b4b510"
765 type SwInterfaceDetails struct {
768 L2AddressLength uint32
769 L2Address []byte `struc:"[8]byte"`
770 InterfaceName []byte `struc:"[64]byte"`
776 Mtu []uint32 `struc:"[4]uint32"`
780 SubNumberOfTags uint8
781 SubOuterVlanID uint16
782 SubInnerVlanID uint16
785 SubOuterVlanIDAny uint8
786 SubInnerVlanIDAny uint8
791 Tag []byte `struc:"[64]byte"`
793 BDmac []byte `struc:"[6]byte"`
794 BSmac []byte `struc:"[6]byte"`
799 func (*SwInterfaceDetails) GetMessageName() string {
800 return "sw_interface_details"
802 func (*SwInterfaceDetails) GetCrcString() string {
805 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
806 return api.ReplyMessage
808 func NewSwInterfaceDetails() api.Message {
809 return &SwInterfaceDetails{}
812 // SwInterfaceDump represents the VPP binary API message 'sw_interface_dump'.
813 // Generated from 'interface.api.json', line 359:
815 // "sw_interface_dump",
830 // "name_filter_valid"
838 // "crc": "0x63f5e3b7"
841 type SwInterfaceDump struct {
842 NameFilterValid uint8
843 NameFilter []byte `struc:"[49]byte"`
846 func (*SwInterfaceDump) GetMessageName() string {
847 return "sw_interface_dump"
849 func (*SwInterfaceDump) GetCrcString() string {
852 func (*SwInterfaceDump) GetMessageType() api.MessageType {
853 return api.RequestMessage
855 func NewSwInterfaceDump() api.Message {
856 return &SwInterfaceDump{}
859 // SwInterfaceAddDelAddress represents the VPP binary API message 'sw_interface_add_del_address'.
860 // Generated from 'interface.api.json', line 386:
862 // "sw_interface_add_del_address",
901 // "crc": "0x7b583179"
904 type SwInterfaceAddDelAddress struct {
910 Address []byte `struc:"[16]byte"`
913 func (*SwInterfaceAddDelAddress) GetMessageName() string {
914 return "sw_interface_add_del_address"
916 func (*SwInterfaceAddDelAddress) GetCrcString() string {
919 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
920 return api.RequestMessage
922 func NewSwInterfaceAddDelAddress() api.Message {
923 return &SwInterfaceAddDelAddress{}
926 // SwInterfaceAddDelAddressReply represents the VPP binary API message 'sw_interface_add_del_address_reply'.
927 // Generated from 'interface.api.json', line 429:
929 // "sw_interface_add_del_address_reply",
943 // "crc": "0xe8d4e804"
946 type SwInterfaceAddDelAddressReply struct {
950 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
951 return "sw_interface_add_del_address_reply"
953 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
956 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
957 return api.ReplyMessage
959 func NewSwInterfaceAddDelAddressReply() api.Message {
960 return &SwInterfaceAddDelAddressReply{}
963 // SwInterfaceSetTable represents the VPP binary API message 'sw_interface_set_table'.
964 // Generated from 'interface.api.json', line 447:
966 // "sw_interface_set_table",
992 // "crc": "0xacb25d89"
995 type SwInterfaceSetTable struct {
1001 func (*SwInterfaceSetTable) GetMessageName() string {
1002 return "sw_interface_set_table"
1004 func (*SwInterfaceSetTable) GetCrcString() string {
1007 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
1008 return api.RequestMessage
1010 func NewSwInterfaceSetTable() api.Message {
1011 return &SwInterfaceSetTable{}
1014 // SwInterfaceSetTableReply represents the VPP binary API message 'sw_interface_set_table_reply'.
1015 // Generated from 'interface.api.json', line 477:
1017 // "sw_interface_set_table_reply",
1031 // "crc": "0xe8d4e804"
1034 type SwInterfaceSetTableReply struct {
1038 func (*SwInterfaceSetTableReply) GetMessageName() string {
1039 return "sw_interface_set_table_reply"
1041 func (*SwInterfaceSetTableReply) GetCrcString() string {
1044 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
1045 return api.ReplyMessage
1047 func NewSwInterfaceSetTableReply() api.Message {
1048 return &SwInterfaceSetTableReply{}
1051 // SwInterfaceGetTable represents the VPP binary API message 'sw_interface_get_table'.
1052 // Generated from 'interface.api.json', line 495:
1054 // "sw_interface_get_table",
1076 // "crc": "0x6b7bcd0a"
1079 type SwInterfaceGetTable struct {
1084 func (*SwInterfaceGetTable) GetMessageName() string {
1085 return "sw_interface_get_table"
1087 func (*SwInterfaceGetTable) GetCrcString() string {
1090 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1091 return api.RequestMessage
1093 func NewSwInterfaceGetTable() api.Message {
1094 return &SwInterfaceGetTable{}
1097 // SwInterfaceGetTableReply represents the VPP binary API message 'sw_interface_get_table_reply'.
1098 // Generated from 'interface.api.json', line 521:
1100 // "sw_interface_get_table_reply",
1118 // "crc": "0xa6eb0109"
1121 type SwInterfaceGetTableReply struct {
1126 func (*SwInterfaceGetTableReply) GetMessageName() string {
1127 return "sw_interface_get_table_reply"
1129 func (*SwInterfaceGetTableReply) GetCrcString() string {
1132 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1133 return api.ReplyMessage
1135 func NewSwInterfaceGetTableReply() api.Message {
1136 return &SwInterfaceGetTableReply{}
1139 // SwInterfaceSetUnnumbered represents the VPP binary API message 'sw_interface_set_unnumbered'.
1140 // Generated from 'interface.api.json', line 543:
1142 // "sw_interface_set_unnumbered",
1161 // "unnumbered_sw_if_index"
1168 // "crc": "0xa2c1bbda"
1171 type SwInterfaceSetUnnumbered struct {
1173 UnnumberedSwIfIndex uint32
1177 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
1178 return "sw_interface_set_unnumbered"
1180 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
1183 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
1184 return api.RequestMessage
1186 func NewSwInterfaceSetUnnumbered() api.Message {
1187 return &SwInterfaceSetUnnumbered{}
1190 // SwInterfaceSetUnnumberedReply represents the VPP binary API message 'sw_interface_set_unnumbered_reply'.
1191 // Generated from 'interface.api.json', line 573:
1193 // "sw_interface_set_unnumbered_reply",
1207 // "crc": "0xe8d4e804"
1210 type SwInterfaceSetUnnumberedReply struct {
1214 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
1215 return "sw_interface_set_unnumbered_reply"
1217 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
1220 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
1221 return api.ReplyMessage
1223 func NewSwInterfaceSetUnnumberedReply() api.Message {
1224 return &SwInterfaceSetUnnumberedReply{}
1227 // SwInterfaceClearStats represents the VPP binary API message 'sw_interface_clear_stats'.
1228 // Generated from 'interface.api.json', line 591:
1230 // "sw_interface_clear_stats",
1248 // "crc": "0x529cb13f"
1251 type SwInterfaceClearStats struct {
1255 func (*SwInterfaceClearStats) GetMessageName() string {
1256 return "sw_interface_clear_stats"
1258 func (*SwInterfaceClearStats) GetCrcString() string {
1261 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
1262 return api.RequestMessage
1264 func NewSwInterfaceClearStats() api.Message {
1265 return &SwInterfaceClearStats{}
1268 // SwInterfaceClearStatsReply represents the VPP binary API message 'sw_interface_clear_stats_reply'.
1269 // Generated from 'interface.api.json', line 613:
1271 // "sw_interface_clear_stats_reply",
1285 // "crc": "0xe8d4e804"
1288 type SwInterfaceClearStatsReply struct {
1292 func (*SwInterfaceClearStatsReply) GetMessageName() string {
1293 return "sw_interface_clear_stats_reply"
1295 func (*SwInterfaceClearStatsReply) GetCrcString() string {
1298 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1299 return api.ReplyMessage
1301 func NewSwInterfaceClearStatsReply() api.Message {
1302 return &SwInterfaceClearStatsReply{}
1305 // SwInterfaceTagAddDel represents the VPP binary API message 'sw_interface_tag_add_del'.
1306 // Generated from 'interface.api.json', line 631:
1308 // "sw_interface_tag_add_del",
1335 // "crc": "0x14cc636c"
1338 type SwInterfaceTagAddDel struct {
1341 Tag []byte `struc:"[64]byte"`
1344 func (*SwInterfaceTagAddDel) GetMessageName() string {
1345 return "sw_interface_tag_add_del"
1347 func (*SwInterfaceTagAddDel) GetCrcString() string {
1350 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
1351 return api.RequestMessage
1353 func NewSwInterfaceTagAddDel() api.Message {
1354 return &SwInterfaceTagAddDel{}
1357 // SwInterfaceTagAddDelReply represents the VPP binary API message 'sw_interface_tag_add_del_reply'.
1358 // Generated from 'interface.api.json', line 662:
1360 // "sw_interface_tag_add_del_reply",
1374 // "crc": "0xe8d4e804"
1377 type SwInterfaceTagAddDelReply struct {
1381 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
1382 return "sw_interface_tag_add_del_reply"
1384 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
1387 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
1388 return api.ReplyMessage
1390 func NewSwInterfaceTagAddDelReply() api.Message {
1391 return &SwInterfaceTagAddDelReply{}
1394 // SwInterfaceSetMacAddress represents the VPP binary API message 'sw_interface_set_mac_address'.
1395 // Generated from 'interface.api.json', line 680:
1397 // "sw_interface_set_mac_address",
1420 // "crc": "0xeed5dfca"
1423 type SwInterfaceSetMacAddress struct {
1425 MacAddress []byte `struc:"[6]byte"`
1428 func (*SwInterfaceSetMacAddress) GetMessageName() string {
1429 return "sw_interface_set_mac_address"
1431 func (*SwInterfaceSetMacAddress) GetCrcString() string {
1434 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1435 return api.RequestMessage
1437 func NewSwInterfaceSetMacAddress() api.Message {
1438 return &SwInterfaceSetMacAddress{}
1441 // SwInterfaceSetMacAddressReply represents the VPP binary API message 'sw_interface_set_mac_address_reply'.
1442 // Generated from 'interface.api.json', line 707:
1444 // "sw_interface_set_mac_address_reply",
1458 // "crc": "0xe8d4e804"
1461 type SwInterfaceSetMacAddressReply struct {
1465 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1466 return "sw_interface_set_mac_address_reply"
1468 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
1471 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1472 return api.ReplyMessage
1474 func NewSwInterfaceSetMacAddressReply() api.Message {
1475 return &SwInterfaceSetMacAddressReply{}
1478 // SwInterfaceGetMacAddress represents the VPP binary API message 'sw_interface_get_mac_address'.
1479 // Generated from 'interface.api.json', line 725:
1481 // "sw_interface_get_mac_address",
1499 // "crc": "0x529cb13f"
1502 type SwInterfaceGetMacAddress struct {
1506 func (*SwInterfaceGetMacAddress) GetMessageName() string {
1507 return "sw_interface_get_mac_address"
1509 func (*SwInterfaceGetMacAddress) GetCrcString() string {
1512 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1513 return api.RequestMessage
1515 func NewSwInterfaceGetMacAddress() api.Message {
1516 return &SwInterfaceGetMacAddress{}
1519 // SwInterfaceGetMacAddressReply represents the VPP binary API message 'sw_interface_get_mac_address_reply'.
1520 // Generated from 'interface.api.json', line 747:
1522 // "sw_interface_get_mac_address_reply",
1541 // "crc": "0x8ea538d3"
1544 type SwInterfaceGetMacAddressReply struct {
1546 MacAddress []byte `struc:"[6]byte"`
1549 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1550 return "sw_interface_get_mac_address_reply"
1552 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
1555 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1556 return api.ReplyMessage
1558 func NewSwInterfaceGetMacAddressReply() api.Message {
1559 return &SwInterfaceGetMacAddressReply{}
1562 // SwInterfaceSetRxMode represents the VPP binary API message 'sw_interface_set_rx_mode'.
1563 // Generated from 'interface.api.json', line 770:
1565 // "sw_interface_set_rx_mode",
1595 // "crc": "0x2a1cc58c"
1598 type SwInterfaceSetRxMode struct {
1605 func (*SwInterfaceSetRxMode) GetMessageName() string {
1606 return "sw_interface_set_rx_mode"
1608 func (*SwInterfaceSetRxMode) GetCrcString() string {
1611 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1612 return api.RequestMessage
1614 func NewSwInterfaceSetRxMode() api.Message {
1615 return &SwInterfaceSetRxMode{}
1618 // SwInterfaceSetRxModeReply represents the VPP binary API message 'sw_interface_set_rx_mode_reply'.
1619 // Generated from 'interface.api.json', line 804:
1621 // "sw_interface_set_rx_mode_reply",
1635 // "crc": "0xe8d4e804"
1638 type SwInterfaceSetRxModeReply struct {
1642 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
1643 return "sw_interface_set_rx_mode_reply"
1645 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
1648 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1649 return api.ReplyMessage
1651 func NewSwInterfaceSetRxModeReply() api.Message {
1652 return &SwInterfaceSetRxModeReply{}
1655 // InterfaceNameRenumber represents the VPP binary API message 'interface_name_renumber'.
1656 // Generated from 'interface.api.json', line 822:
1658 // "interface_name_renumber",
1677 // "new_show_dev_instance"
1680 // "crc": "0x39194269"
1683 type InterfaceNameRenumber struct {
1685 NewShowDevInstance uint32
1688 func (*InterfaceNameRenumber) GetMessageName() string {
1689 return "interface_name_renumber"
1691 func (*InterfaceNameRenumber) GetCrcString() string {
1694 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
1695 return api.RequestMessage
1697 func NewInterfaceNameRenumber() api.Message {
1698 return &InterfaceNameRenumber{}
1701 // InterfaceNameRenumberReply represents the VPP binary API message 'interface_name_renumber_reply'.
1702 // Generated from 'interface.api.json', line 848:
1704 // "interface_name_renumber_reply",
1718 // "crc": "0xe8d4e804"
1721 type InterfaceNameRenumberReply struct {
1725 func (*InterfaceNameRenumberReply) GetMessageName() string {
1726 return "interface_name_renumber_reply"
1728 func (*InterfaceNameRenumberReply) GetCrcString() string {
1731 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
1732 return api.ReplyMessage
1734 func NewInterfaceNameRenumberReply() api.Message {
1735 return &InterfaceNameRenumberReply{}
1738 // CreateSubif represents the VPP binary API message 'create_subif'.
1739 // Generated from 'interface.api.json', line 866:
1788 // "outer_vlan_id_any"
1792 // "inner_vlan_id_any"
1803 // "crc": "0x86cfe408"
1806 type CreateSubif struct {
1815 OuterVlanIDAny uint8
1816 InnerVlanIDAny uint8
1821 func (*CreateSubif) GetMessageName() string {
1822 return "create_subif"
1824 func (*CreateSubif) GetCrcString() string {
1827 func (*CreateSubif) GetMessageType() api.MessageType {
1828 return api.RequestMessage
1830 func NewCreateSubif() api.Message {
1831 return &CreateSubif{}
1834 // CreateSubifReply represents the VPP binary API message 'create_subif_reply'.
1835 // Generated from 'interface.api.json', line 932:
1837 // "create_subif_reply",
1855 // "crc": "0xfda5941f"
1858 type CreateSubifReply struct {
1863 func (*CreateSubifReply) GetMessageName() string {
1864 return "create_subif_reply"
1866 func (*CreateSubifReply) GetCrcString() string {
1869 func (*CreateSubifReply) GetMessageType() api.MessageType {
1870 return api.ReplyMessage
1872 func NewCreateSubifReply() api.Message {
1873 return &CreateSubifReply{}
1876 // CreateVlanSubif represents the VPP binary API message 'create_vlan_subif'.
1877 // Generated from 'interface.api.json', line 954:
1879 // "create_vlan_subif",
1901 // "crc": "0x70cadeda"
1904 type CreateVlanSubif struct {
1909 func (*CreateVlanSubif) GetMessageName() string {
1910 return "create_vlan_subif"
1912 func (*CreateVlanSubif) GetCrcString() string {
1915 func (*CreateVlanSubif) GetMessageType() api.MessageType {
1916 return api.RequestMessage
1918 func NewCreateVlanSubif() api.Message {
1919 return &CreateVlanSubif{}
1922 // CreateVlanSubifReply represents the VPP binary API message 'create_vlan_subif_reply'.
1923 // Generated from 'interface.api.json', line 980:
1925 // "create_vlan_subif_reply",
1943 // "crc": "0xfda5941f"
1946 type CreateVlanSubifReply struct {
1951 func (*CreateVlanSubifReply) GetMessageName() string {
1952 return "create_vlan_subif_reply"
1954 func (*CreateVlanSubifReply) GetCrcString() string {
1957 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
1958 return api.ReplyMessage
1960 func NewCreateVlanSubifReply() api.Message {
1961 return &CreateVlanSubifReply{}
1964 // DeleteSubif represents the VPP binary API message 'delete_subif'.
1965 // Generated from 'interface.api.json', line 1002:
1985 // "crc": "0x529cb13f"
1988 type DeleteSubif struct {
1992 func (*DeleteSubif) GetMessageName() string {
1993 return "delete_subif"
1995 func (*DeleteSubif) GetCrcString() string {
1998 func (*DeleteSubif) GetMessageType() api.MessageType {
1999 return api.RequestMessage
2001 func NewDeleteSubif() api.Message {
2002 return &DeleteSubif{}
2005 // DeleteSubifReply represents the VPP binary API message 'delete_subif_reply'.
2006 // Generated from 'interface.api.json', line 1024:
2008 // "delete_subif_reply",
2022 // "crc": "0xe8d4e804"
2025 type DeleteSubifReply struct {
2029 func (*DeleteSubifReply) GetMessageName() string {
2030 return "delete_subif_reply"
2032 func (*DeleteSubifReply) GetCrcString() string {
2035 func (*DeleteSubifReply) GetMessageType() api.MessageType {
2036 return api.ReplyMessage
2038 func NewDeleteSubifReply() api.Message {
2039 return &DeleteSubifReply{}
2042 // CreateLoopback represents the VPP binary API message 'create_loopback'.
2043 // Generated from 'interface.api.json', line 1042:
2045 // "create_loopback",
2064 // "crc": "0x3b54129c"
2067 type CreateLoopback struct {
2068 MacAddress []byte `struc:"[6]byte"`
2071 func (*CreateLoopback) GetMessageName() string {
2072 return "create_loopback"
2074 func (*CreateLoopback) GetCrcString() string {
2077 func (*CreateLoopback) GetMessageType() api.MessageType {
2078 return api.RequestMessage
2080 func NewCreateLoopback() api.Message {
2081 return &CreateLoopback{}
2084 // CreateLoopbackReply represents the VPP binary API message 'create_loopback_reply'.
2085 // Generated from 'interface.api.json', line 1065:
2087 // "create_loopback_reply",
2105 // "crc": "0xfda5941f"
2108 type CreateLoopbackReply struct {
2113 func (*CreateLoopbackReply) GetMessageName() string {
2114 return "create_loopback_reply"
2116 func (*CreateLoopbackReply) GetCrcString() string {
2119 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
2120 return api.ReplyMessage
2122 func NewCreateLoopbackReply() api.Message {
2123 return &CreateLoopbackReply{}
2126 // CreateLoopbackInstance represents the VPP binary API message 'create_loopback_instance'.
2127 // Generated from 'interface.api.json', line 1087:
2129 // "create_loopback_instance",
2156 // "crc": "0x7bbd53b6"
2159 type CreateLoopbackInstance struct {
2160 MacAddress []byte `struc:"[6]byte"`
2165 func (*CreateLoopbackInstance) GetMessageName() string {
2166 return "create_loopback_instance"
2168 func (*CreateLoopbackInstance) GetCrcString() string {
2171 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
2172 return api.RequestMessage
2174 func NewCreateLoopbackInstance() api.Message {
2175 return &CreateLoopbackInstance{}
2178 // CreateLoopbackInstanceReply represents the VPP binary API message 'create_loopback_instance_reply'.
2179 // Generated from 'interface.api.json', line 1118:
2181 // "create_loopback_instance_reply",
2199 // "crc": "0xfda5941f"
2202 type CreateLoopbackInstanceReply struct {
2207 func (*CreateLoopbackInstanceReply) GetMessageName() string {
2208 return "create_loopback_instance_reply"
2210 func (*CreateLoopbackInstanceReply) GetCrcString() string {
2213 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
2214 return api.ReplyMessage
2216 func NewCreateLoopbackInstanceReply() api.Message {
2217 return &CreateLoopbackInstanceReply{}
2220 // DeleteLoopback represents the VPP binary API message 'delete_loopback'.
2221 // Generated from 'interface.api.json', line 1140:
2223 // "delete_loopback",
2241 // "crc": "0x529cb13f"
2244 type DeleteLoopback struct {
2248 func (*DeleteLoopback) GetMessageName() string {
2249 return "delete_loopback"
2251 func (*DeleteLoopback) GetCrcString() string {
2254 func (*DeleteLoopback) GetMessageType() api.MessageType {
2255 return api.RequestMessage
2257 func NewDeleteLoopback() api.Message {
2258 return &DeleteLoopback{}
2261 // DeleteLoopbackReply represents the VPP binary API message 'delete_loopback_reply'.
2262 // Generated from 'interface.api.json', line 1162:
2264 // "delete_loopback_reply",
2278 // "crc": "0xe8d4e804"
2281 type DeleteLoopbackReply struct {
2285 func (*DeleteLoopbackReply) GetMessageName() string {
2286 return "delete_loopback_reply"
2288 func (*DeleteLoopbackReply) GetCrcString() string {
2291 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
2292 return api.ReplyMessage
2294 func NewDeleteLoopbackReply() api.Message {
2295 return &DeleteLoopbackReply{}
2298 // CollectDetailedInterfaceStats represents the VPP binary API message 'collect_detailed_interface_stats'.
2299 // Generated from 'interface.api.json', line 1180:
2301 // "collect_detailed_interface_stats",
2323 // "crc": "0x69d24598"
2326 type CollectDetailedInterfaceStats struct {
2331 func (*CollectDetailedInterfaceStats) GetMessageName() string {
2332 return "collect_detailed_interface_stats"
2334 func (*CollectDetailedInterfaceStats) GetCrcString() string {
2337 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
2338 return api.RequestMessage
2340 func NewCollectDetailedInterfaceStats() api.Message {
2341 return &CollectDetailedInterfaceStats{}
2344 // CollectDetailedInterfaceStatsReply represents the VPP binary API message 'collect_detailed_interface_stats_reply'.
2345 // Generated from 'interface.api.json', line 1206:
2347 // "collect_detailed_interface_stats_reply",
2361 // "crc": "0xe8d4e804"
2364 type CollectDetailedInterfaceStatsReply struct {
2368 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
2369 return "collect_detailed_interface_stats_reply"
2371 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
2374 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
2375 return api.ReplyMessage
2377 func NewCollectDetailedInterfaceStatsReply() api.Message {
2378 return &CollectDetailedInterfaceStatsReply{}
2383 type Services interface {
2384 DumpSwInterface(*SwInterfaceDump) (*SwInterfaceDetails, error)
2385 CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
2386 CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
2387 CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
2388 CreateSubif(*CreateSubif) (*CreateSubifReply, error)
2389 CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
2390 DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
2391 DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
2392 HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
2393 InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
2394 SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
2395 SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
2396 SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
2397 SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
2398 SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
2399 SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
2400 SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
2401 SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
2402 SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
2403 SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
2404 SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
2405 WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
2409 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
2410 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
2411 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
2412 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
2413 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
2414 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
2415 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
2416 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
2417 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
2418 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
2419 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
2420 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
2421 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
2422 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
2423 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
2424 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
2425 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
2426 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
2427 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
2428 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
2429 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
2430 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
2431 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
2432 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
2433 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
2434 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
2435 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
2436 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
2437 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
2438 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
2439 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
2440 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
2441 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
2442 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
2443 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
2444 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
2445 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
2446 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
2447 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
2448 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
2449 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
2450 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
2451 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
2452 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
2453 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")