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.
23 var _ = bytes.NewBuffer
27 // VlibCounter represents the VPP binary API type 'vlib_counter'.
28 // Generated from 'interface.api.json', line 1301:
40 // "crc": "0xce2325a2"
43 type VlibCounter struct {
48 func (*VlibCounter) GetTypeName() string {
51 func (*VlibCounter) GetCrcString() string {
55 // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
56 // Generated from 'interface.api.json', line 1315:
58 // "vnet_combined_counter",
73 // "rx_unicast_packets"
81 // "rx_multicast_packets"
85 // "rx_multicast_bytes"
89 // "rx_broadcast_packets"
93 // "rx_broadcast_bytes"
105 // "tx_unicast_packets"
109 // "tx_unicast_bytes"
113 // "tx_multicast_packets"
117 // "tx_multicast_bytes"
121 // "tx_broadcast_packets"
125 // "tx_broadcast_bytes"
128 // "crc": "0x20905ca4"
131 type VnetCombinedCounter struct {
135 RxUnicastPackets uint64
136 RxUnicastBytes uint64
137 RxMulticastPackets uint64
138 RxMulticastBytes uint64
139 RxBroadcastPackets uint64
140 RxBroadcastBytes uint64
143 TxUnicastPackets uint64
144 TxUnicastBytes uint64
145 TxMulticastPackets uint64
146 TxMulticastBytes uint64
147 TxBroadcastPackets uint64
148 TxBroadcastBytes uint64
151 func (*VnetCombinedCounter) GetTypeName() string {
152 return "vnet_combined_counter"
154 func (*VnetCombinedCounter) GetCrcString() string {
158 // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
159 // Generated from 'interface.api.json', line 1389:
161 // "vnet_simple_counter",
203 // "crc": "0x8bd65e2d"
206 type VnetSimpleCounter struct {
219 func (*VnetSimpleCounter) GetTypeName() string {
220 return "vnet_simple_counter"
222 func (*VnetSimpleCounter) GetCrcString() string {
228 // SwInterfaceSetFlags represents the VPP binary API message 'sw_interface_set_flags'.
229 // Generated from 'interface.api.json', line 4:
231 // "sw_interface_set_flags",
253 // "crc": "0x555485f5"
256 type SwInterfaceSetFlags struct {
261 func (*SwInterfaceSetFlags) GetMessageName() string {
262 return "sw_interface_set_flags"
264 func (*SwInterfaceSetFlags) GetCrcString() string {
267 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
268 return api.RequestMessage
270 func NewSwInterfaceSetFlags() api.Message {
271 return &SwInterfaceSetFlags{}
274 // SwInterfaceSetFlagsReply represents the VPP binary API message 'sw_interface_set_flags_reply'.
275 // Generated from 'interface.api.json', line 30:
277 // "sw_interface_set_flags_reply",
291 // "crc": "0xe8d4e804"
294 type SwInterfaceSetFlagsReply struct {
298 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
299 return "sw_interface_set_flags_reply"
301 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
304 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
305 return api.ReplyMessage
307 func NewSwInterfaceSetFlagsReply() api.Message {
308 return &SwInterfaceSetFlagsReply{}
311 // HwInterfaceSetMtu represents the VPP binary API message 'hw_interface_set_mtu'.
312 // Generated from 'interface.api.json', line 48:
314 // "hw_interface_set_mtu",
336 // "crc": "0x132da1e7"
339 type HwInterfaceSetMtu struct {
344 func (*HwInterfaceSetMtu) GetMessageName() string {
345 return "hw_interface_set_mtu"
347 func (*HwInterfaceSetMtu) GetCrcString() string {
350 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
351 return api.RequestMessage
353 func NewHwInterfaceSetMtu() api.Message {
354 return &HwInterfaceSetMtu{}
357 // HwInterfaceSetMtuReply represents the VPP binary API message 'hw_interface_set_mtu_reply'.
358 // Generated from 'interface.api.json', line 74:
360 // "hw_interface_set_mtu_reply",
374 // "crc": "0xe8d4e804"
377 type HwInterfaceSetMtuReply struct {
381 func (*HwInterfaceSetMtuReply) GetMessageName() string {
382 return "hw_interface_set_mtu_reply"
384 func (*HwInterfaceSetMtuReply) GetCrcString() string {
387 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
388 return api.ReplyMessage
390 func NewHwInterfaceSetMtuReply() api.Message {
391 return &HwInterfaceSetMtuReply{}
394 // SwInterfaceSetMtu represents the VPP binary API message 'sw_interface_set_mtu'.
395 // Generated from 'interface.api.json', line 92:
397 // "sw_interface_set_mtu",
420 // "crc": "0xd0008db8"
423 type SwInterfaceSetMtu struct {
425 Mtu []uint32 `struc:"[4]uint32"`
428 func (*SwInterfaceSetMtu) GetMessageName() string {
429 return "sw_interface_set_mtu"
431 func (*SwInterfaceSetMtu) GetCrcString() string {
434 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
435 return api.RequestMessage
437 func NewSwInterfaceSetMtu() api.Message {
438 return &SwInterfaceSetMtu{}
441 // SwInterfaceSetMtuReply represents the VPP binary API message 'sw_interface_set_mtu_reply'.
442 // Generated from 'interface.api.json', line 119:
444 // "sw_interface_set_mtu_reply",
458 // "crc": "0xe8d4e804"
461 type SwInterfaceSetMtuReply struct {
465 func (*SwInterfaceSetMtuReply) GetMessageName() string {
466 return "sw_interface_set_mtu_reply"
468 func (*SwInterfaceSetMtuReply) GetCrcString() string {
471 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
472 return api.ReplyMessage
474 func NewSwInterfaceSetMtuReply() api.Message {
475 return &SwInterfaceSetMtuReply{}
478 // SwInterfaceEvent represents the VPP binary API message 'sw_interface_event'.
479 // Generated from 'interface.api.json', line 137:
481 // "sw_interface_event",
511 // "crc": "0xbf9938e4"
514 type SwInterfaceEvent struct {
522 func (*SwInterfaceEvent) GetMessageName() string {
523 return "sw_interface_event"
525 func (*SwInterfaceEvent) GetCrcString() string {
528 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
529 return api.EventMessage
531 func NewSwInterfaceEvent() api.Message {
532 return &SwInterfaceEvent{}
535 // WantInterfaceEvents represents the VPP binary API message 'want_interface_events'.
536 // Generated from 'interface.api.json', line 171:
538 // "want_interface_events",
560 // "crc": "0x476f5a08"
563 type WantInterfaceEvents struct {
568 func (*WantInterfaceEvents) GetMessageName() string {
569 return "want_interface_events"
571 func (*WantInterfaceEvents) GetCrcString() string {
574 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
575 return api.RequestMessage
577 func NewWantInterfaceEvents() api.Message {
578 return &WantInterfaceEvents{}
581 // WantInterfaceEventsReply represents the VPP binary API message 'want_interface_events_reply'.
582 // Generated from 'interface.api.json', line 197:
584 // "want_interface_events_reply",
598 // "crc": "0xe8d4e804"
601 type WantInterfaceEventsReply struct {
605 func (*WantInterfaceEventsReply) GetMessageName() string {
606 return "want_interface_events_reply"
608 func (*WantInterfaceEventsReply) GetCrcString() string {
611 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
612 return api.ReplyMessage
614 func NewWantInterfaceEventsReply() api.Message {
615 return &WantInterfaceEventsReply{}
618 // SwInterfaceDetails represents the VPP binary API message 'sw_interface_details'.
619 // Generated from 'interface.api.json', line 215:
621 // "sw_interface_details",
640 // "l2_address_length"
691 // "sub_number_of_tags"
695 // "sub_outer_vlan_id"
699 // "sub_inner_vlan_id"
711 // "sub_outer_vlan_id_any"
715 // "sub_inner_vlan_id_any"
761 // "crc": "0x09b4b510"
764 type SwInterfaceDetails struct {
767 L2AddressLength uint32
768 L2Address []byte `struc:"[8]byte"`
769 InterfaceName []byte `struc:"[64]byte"`
775 Mtu []uint32 `struc:"[4]uint32"`
779 SubNumberOfTags uint8
780 SubOuterVlanID uint16
781 SubInnerVlanID uint16
784 SubOuterVlanIDAny uint8
785 SubInnerVlanIDAny uint8
790 Tag []byte `struc:"[64]byte"`
792 BDmac []byte `struc:"[6]byte"`
793 BSmac []byte `struc:"[6]byte"`
798 func (*SwInterfaceDetails) GetMessageName() string {
799 return "sw_interface_details"
801 func (*SwInterfaceDetails) GetCrcString() string {
804 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
805 return api.ReplyMessage
807 func NewSwInterfaceDetails() api.Message {
808 return &SwInterfaceDetails{}
811 // SwInterfaceDump represents the VPP binary API message 'sw_interface_dump'.
812 // Generated from 'interface.api.json', line 359:
814 // "sw_interface_dump",
829 // "name_filter_valid"
837 // "crc": "0x63f5e3b7"
840 type SwInterfaceDump struct {
841 NameFilterValid uint8
842 NameFilter []byte `struc:"[49]byte"`
845 func (*SwInterfaceDump) GetMessageName() string {
846 return "sw_interface_dump"
848 func (*SwInterfaceDump) GetCrcString() string {
851 func (*SwInterfaceDump) GetMessageType() api.MessageType {
852 return api.RequestMessage
854 func NewSwInterfaceDump() api.Message {
855 return &SwInterfaceDump{}
858 // SwInterfaceAddDelAddress represents the VPP binary API message 'sw_interface_add_del_address'.
859 // Generated from 'interface.api.json', line 386:
861 // "sw_interface_add_del_address",
900 // "crc": "0x7b583179"
903 type SwInterfaceAddDelAddress struct {
909 Address []byte `struc:"[16]byte"`
912 func (*SwInterfaceAddDelAddress) GetMessageName() string {
913 return "sw_interface_add_del_address"
915 func (*SwInterfaceAddDelAddress) GetCrcString() string {
918 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
919 return api.RequestMessage
921 func NewSwInterfaceAddDelAddress() api.Message {
922 return &SwInterfaceAddDelAddress{}
925 // SwInterfaceAddDelAddressReply represents the VPP binary API message 'sw_interface_add_del_address_reply'.
926 // Generated from 'interface.api.json', line 429:
928 // "sw_interface_add_del_address_reply",
942 // "crc": "0xe8d4e804"
945 type SwInterfaceAddDelAddressReply struct {
949 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
950 return "sw_interface_add_del_address_reply"
952 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
955 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
956 return api.ReplyMessage
958 func NewSwInterfaceAddDelAddressReply() api.Message {
959 return &SwInterfaceAddDelAddressReply{}
962 // SwInterfaceSetTable represents the VPP binary API message 'sw_interface_set_table'.
963 // Generated from 'interface.api.json', line 447:
965 // "sw_interface_set_table",
991 // "crc": "0xacb25d89"
994 type SwInterfaceSetTable struct {
1000 func (*SwInterfaceSetTable) GetMessageName() string {
1001 return "sw_interface_set_table"
1003 func (*SwInterfaceSetTable) GetCrcString() string {
1006 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
1007 return api.RequestMessage
1009 func NewSwInterfaceSetTable() api.Message {
1010 return &SwInterfaceSetTable{}
1013 // SwInterfaceSetTableReply represents the VPP binary API message 'sw_interface_set_table_reply'.
1014 // Generated from 'interface.api.json', line 477:
1016 // "sw_interface_set_table_reply",
1030 // "crc": "0xe8d4e804"
1033 type SwInterfaceSetTableReply struct {
1037 func (*SwInterfaceSetTableReply) GetMessageName() string {
1038 return "sw_interface_set_table_reply"
1040 func (*SwInterfaceSetTableReply) GetCrcString() string {
1043 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
1044 return api.ReplyMessage
1046 func NewSwInterfaceSetTableReply() api.Message {
1047 return &SwInterfaceSetTableReply{}
1050 // SwInterfaceGetTable represents the VPP binary API message 'sw_interface_get_table'.
1051 // Generated from 'interface.api.json', line 495:
1053 // "sw_interface_get_table",
1075 // "crc": "0x6b7bcd0a"
1078 type SwInterfaceGetTable struct {
1083 func (*SwInterfaceGetTable) GetMessageName() string {
1084 return "sw_interface_get_table"
1086 func (*SwInterfaceGetTable) GetCrcString() string {
1089 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1090 return api.RequestMessage
1092 func NewSwInterfaceGetTable() api.Message {
1093 return &SwInterfaceGetTable{}
1096 // SwInterfaceGetTableReply represents the VPP binary API message 'sw_interface_get_table_reply'.
1097 // Generated from 'interface.api.json', line 521:
1099 // "sw_interface_get_table_reply",
1117 // "crc": "0xa6eb0109"
1120 type SwInterfaceGetTableReply struct {
1125 func (*SwInterfaceGetTableReply) GetMessageName() string {
1126 return "sw_interface_get_table_reply"
1128 func (*SwInterfaceGetTableReply) GetCrcString() string {
1131 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1132 return api.ReplyMessage
1134 func NewSwInterfaceGetTableReply() api.Message {
1135 return &SwInterfaceGetTableReply{}
1138 // SwInterfaceSetUnnumbered represents the VPP binary API message 'sw_interface_set_unnumbered'.
1139 // Generated from 'interface.api.json', line 543:
1141 // "sw_interface_set_unnumbered",
1160 // "unnumbered_sw_if_index"
1167 // "crc": "0xa2c1bbda"
1170 type SwInterfaceSetUnnumbered struct {
1172 UnnumberedSwIfIndex uint32
1176 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
1177 return "sw_interface_set_unnumbered"
1179 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
1182 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
1183 return api.RequestMessage
1185 func NewSwInterfaceSetUnnumbered() api.Message {
1186 return &SwInterfaceSetUnnumbered{}
1189 // SwInterfaceSetUnnumberedReply represents the VPP binary API message 'sw_interface_set_unnumbered_reply'.
1190 // Generated from 'interface.api.json', line 573:
1192 // "sw_interface_set_unnumbered_reply",
1206 // "crc": "0xe8d4e804"
1209 type SwInterfaceSetUnnumberedReply struct {
1213 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
1214 return "sw_interface_set_unnumbered_reply"
1216 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
1219 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
1220 return api.ReplyMessage
1222 func NewSwInterfaceSetUnnumberedReply() api.Message {
1223 return &SwInterfaceSetUnnumberedReply{}
1226 // SwInterfaceClearStats represents the VPP binary API message 'sw_interface_clear_stats'.
1227 // Generated from 'interface.api.json', line 591:
1229 // "sw_interface_clear_stats",
1247 // "crc": "0x529cb13f"
1250 type SwInterfaceClearStats struct {
1254 func (*SwInterfaceClearStats) GetMessageName() string {
1255 return "sw_interface_clear_stats"
1257 func (*SwInterfaceClearStats) GetCrcString() string {
1260 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
1261 return api.RequestMessage
1263 func NewSwInterfaceClearStats() api.Message {
1264 return &SwInterfaceClearStats{}
1267 // SwInterfaceClearStatsReply represents the VPP binary API message 'sw_interface_clear_stats_reply'.
1268 // Generated from 'interface.api.json', line 613:
1270 // "sw_interface_clear_stats_reply",
1284 // "crc": "0xe8d4e804"
1287 type SwInterfaceClearStatsReply struct {
1291 func (*SwInterfaceClearStatsReply) GetMessageName() string {
1292 return "sw_interface_clear_stats_reply"
1294 func (*SwInterfaceClearStatsReply) GetCrcString() string {
1297 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1298 return api.ReplyMessage
1300 func NewSwInterfaceClearStatsReply() api.Message {
1301 return &SwInterfaceClearStatsReply{}
1304 // SwInterfaceTagAddDel represents the VPP binary API message 'sw_interface_tag_add_del'.
1305 // Generated from 'interface.api.json', line 631:
1307 // "sw_interface_tag_add_del",
1334 // "crc": "0x14cc636c"
1337 type SwInterfaceTagAddDel struct {
1340 Tag []byte `struc:"[64]byte"`
1343 func (*SwInterfaceTagAddDel) GetMessageName() string {
1344 return "sw_interface_tag_add_del"
1346 func (*SwInterfaceTagAddDel) GetCrcString() string {
1349 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
1350 return api.RequestMessage
1352 func NewSwInterfaceTagAddDel() api.Message {
1353 return &SwInterfaceTagAddDel{}
1356 // SwInterfaceTagAddDelReply represents the VPP binary API message 'sw_interface_tag_add_del_reply'.
1357 // Generated from 'interface.api.json', line 662:
1359 // "sw_interface_tag_add_del_reply",
1373 // "crc": "0xe8d4e804"
1376 type SwInterfaceTagAddDelReply struct {
1380 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
1381 return "sw_interface_tag_add_del_reply"
1383 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
1386 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
1387 return api.ReplyMessage
1389 func NewSwInterfaceTagAddDelReply() api.Message {
1390 return &SwInterfaceTagAddDelReply{}
1393 // SwInterfaceSetMacAddress represents the VPP binary API message 'sw_interface_set_mac_address'.
1394 // Generated from 'interface.api.json', line 680:
1396 // "sw_interface_set_mac_address",
1419 // "crc": "0xeed5dfca"
1422 type SwInterfaceSetMacAddress struct {
1424 MacAddress []byte `struc:"[6]byte"`
1427 func (*SwInterfaceSetMacAddress) GetMessageName() string {
1428 return "sw_interface_set_mac_address"
1430 func (*SwInterfaceSetMacAddress) GetCrcString() string {
1433 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1434 return api.RequestMessage
1436 func NewSwInterfaceSetMacAddress() api.Message {
1437 return &SwInterfaceSetMacAddress{}
1440 // SwInterfaceSetMacAddressReply represents the VPP binary API message 'sw_interface_set_mac_address_reply'.
1441 // Generated from 'interface.api.json', line 707:
1443 // "sw_interface_set_mac_address_reply",
1457 // "crc": "0xe8d4e804"
1460 type SwInterfaceSetMacAddressReply struct {
1464 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1465 return "sw_interface_set_mac_address_reply"
1467 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
1470 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1471 return api.ReplyMessage
1473 func NewSwInterfaceSetMacAddressReply() api.Message {
1474 return &SwInterfaceSetMacAddressReply{}
1477 // SwInterfaceGetMacAddress represents the VPP binary API message 'sw_interface_get_mac_address'.
1478 // Generated from 'interface.api.json', line 725:
1480 // "sw_interface_get_mac_address",
1498 // "crc": "0x529cb13f"
1501 type SwInterfaceGetMacAddress struct {
1505 func (*SwInterfaceGetMacAddress) GetMessageName() string {
1506 return "sw_interface_get_mac_address"
1508 func (*SwInterfaceGetMacAddress) GetCrcString() string {
1511 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1512 return api.RequestMessage
1514 func NewSwInterfaceGetMacAddress() api.Message {
1515 return &SwInterfaceGetMacAddress{}
1518 // SwInterfaceGetMacAddressReply represents the VPP binary API message 'sw_interface_get_mac_address_reply'.
1519 // Generated from 'interface.api.json', line 747:
1521 // "sw_interface_get_mac_address_reply",
1540 // "crc": "0x8ea538d3"
1543 type SwInterfaceGetMacAddressReply struct {
1545 MacAddress []byte `struc:"[6]byte"`
1548 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1549 return "sw_interface_get_mac_address_reply"
1551 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
1554 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1555 return api.ReplyMessage
1557 func NewSwInterfaceGetMacAddressReply() api.Message {
1558 return &SwInterfaceGetMacAddressReply{}
1561 // SwInterfaceSetRxMode represents the VPP binary API message 'sw_interface_set_rx_mode'.
1562 // Generated from 'interface.api.json', line 770:
1564 // "sw_interface_set_rx_mode",
1594 // "crc": "0x2a1cc58c"
1597 type SwInterfaceSetRxMode struct {
1604 func (*SwInterfaceSetRxMode) GetMessageName() string {
1605 return "sw_interface_set_rx_mode"
1607 func (*SwInterfaceSetRxMode) GetCrcString() string {
1610 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1611 return api.RequestMessage
1613 func NewSwInterfaceSetRxMode() api.Message {
1614 return &SwInterfaceSetRxMode{}
1617 // SwInterfaceSetRxModeReply represents the VPP binary API message 'sw_interface_set_rx_mode_reply'.
1618 // Generated from 'interface.api.json', line 804:
1620 // "sw_interface_set_rx_mode_reply",
1634 // "crc": "0xe8d4e804"
1637 type SwInterfaceSetRxModeReply struct {
1641 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
1642 return "sw_interface_set_rx_mode_reply"
1644 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
1647 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1648 return api.ReplyMessage
1650 func NewSwInterfaceSetRxModeReply() api.Message {
1651 return &SwInterfaceSetRxModeReply{}
1654 // InterfaceNameRenumber represents the VPP binary API message 'interface_name_renumber'.
1655 // Generated from 'interface.api.json', line 822:
1657 // "interface_name_renumber",
1676 // "new_show_dev_instance"
1679 // "crc": "0x39194269"
1682 type InterfaceNameRenumber struct {
1684 NewShowDevInstance uint32
1687 func (*InterfaceNameRenumber) GetMessageName() string {
1688 return "interface_name_renumber"
1690 func (*InterfaceNameRenumber) GetCrcString() string {
1693 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
1694 return api.RequestMessage
1696 func NewInterfaceNameRenumber() api.Message {
1697 return &InterfaceNameRenumber{}
1700 // InterfaceNameRenumberReply represents the VPP binary API message 'interface_name_renumber_reply'.
1701 // Generated from 'interface.api.json', line 848:
1703 // "interface_name_renumber_reply",
1717 // "crc": "0xe8d4e804"
1720 type InterfaceNameRenumberReply struct {
1724 func (*InterfaceNameRenumberReply) GetMessageName() string {
1725 return "interface_name_renumber_reply"
1727 func (*InterfaceNameRenumberReply) GetCrcString() string {
1730 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
1731 return api.ReplyMessage
1733 func NewInterfaceNameRenumberReply() api.Message {
1734 return &InterfaceNameRenumberReply{}
1737 // CreateSubif represents the VPP binary API message 'create_subif'.
1738 // Generated from 'interface.api.json', line 866:
1787 // "outer_vlan_id_any"
1791 // "inner_vlan_id_any"
1802 // "crc": "0x86cfe408"
1805 type CreateSubif struct {
1814 OuterVlanIDAny uint8
1815 InnerVlanIDAny uint8
1820 func (*CreateSubif) GetMessageName() string {
1821 return "create_subif"
1823 func (*CreateSubif) GetCrcString() string {
1826 func (*CreateSubif) GetMessageType() api.MessageType {
1827 return api.RequestMessage
1829 func NewCreateSubif() api.Message {
1830 return &CreateSubif{}
1833 // CreateSubifReply represents the VPP binary API message 'create_subif_reply'.
1834 // Generated from 'interface.api.json', line 932:
1836 // "create_subif_reply",
1854 // "crc": "0xfda5941f"
1857 type CreateSubifReply struct {
1862 func (*CreateSubifReply) GetMessageName() string {
1863 return "create_subif_reply"
1865 func (*CreateSubifReply) GetCrcString() string {
1868 func (*CreateSubifReply) GetMessageType() api.MessageType {
1869 return api.ReplyMessage
1871 func NewCreateSubifReply() api.Message {
1872 return &CreateSubifReply{}
1875 // CreateVlanSubif represents the VPP binary API message 'create_vlan_subif'.
1876 // Generated from 'interface.api.json', line 954:
1878 // "create_vlan_subif",
1900 // "crc": "0x70cadeda"
1903 type CreateVlanSubif struct {
1908 func (*CreateVlanSubif) GetMessageName() string {
1909 return "create_vlan_subif"
1911 func (*CreateVlanSubif) GetCrcString() string {
1914 func (*CreateVlanSubif) GetMessageType() api.MessageType {
1915 return api.RequestMessage
1917 func NewCreateVlanSubif() api.Message {
1918 return &CreateVlanSubif{}
1921 // CreateVlanSubifReply represents the VPP binary API message 'create_vlan_subif_reply'.
1922 // Generated from 'interface.api.json', line 980:
1924 // "create_vlan_subif_reply",
1942 // "crc": "0xfda5941f"
1945 type CreateVlanSubifReply struct {
1950 func (*CreateVlanSubifReply) GetMessageName() string {
1951 return "create_vlan_subif_reply"
1953 func (*CreateVlanSubifReply) GetCrcString() string {
1956 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
1957 return api.ReplyMessage
1959 func NewCreateVlanSubifReply() api.Message {
1960 return &CreateVlanSubifReply{}
1963 // DeleteSubif represents the VPP binary API message 'delete_subif'.
1964 // Generated from 'interface.api.json', line 1002:
1984 // "crc": "0x529cb13f"
1987 type DeleteSubif struct {
1991 func (*DeleteSubif) GetMessageName() string {
1992 return "delete_subif"
1994 func (*DeleteSubif) GetCrcString() string {
1997 func (*DeleteSubif) GetMessageType() api.MessageType {
1998 return api.RequestMessage
2000 func NewDeleteSubif() api.Message {
2001 return &DeleteSubif{}
2004 // DeleteSubifReply represents the VPP binary API message 'delete_subif_reply'.
2005 // Generated from 'interface.api.json', line 1024:
2007 // "delete_subif_reply",
2021 // "crc": "0xe8d4e804"
2024 type DeleteSubifReply struct {
2028 func (*DeleteSubifReply) GetMessageName() string {
2029 return "delete_subif_reply"
2031 func (*DeleteSubifReply) GetCrcString() string {
2034 func (*DeleteSubifReply) GetMessageType() api.MessageType {
2035 return api.ReplyMessage
2037 func NewDeleteSubifReply() api.Message {
2038 return &DeleteSubifReply{}
2041 // CreateLoopback represents the VPP binary API message 'create_loopback'.
2042 // Generated from 'interface.api.json', line 1042:
2044 // "create_loopback",
2063 // "crc": "0x3b54129c"
2066 type CreateLoopback struct {
2067 MacAddress []byte `struc:"[6]byte"`
2070 func (*CreateLoopback) GetMessageName() string {
2071 return "create_loopback"
2073 func (*CreateLoopback) GetCrcString() string {
2076 func (*CreateLoopback) GetMessageType() api.MessageType {
2077 return api.RequestMessage
2079 func NewCreateLoopback() api.Message {
2080 return &CreateLoopback{}
2083 // CreateLoopbackReply represents the VPP binary API message 'create_loopback_reply'.
2084 // Generated from 'interface.api.json', line 1065:
2086 // "create_loopback_reply",
2104 // "crc": "0xfda5941f"
2107 type CreateLoopbackReply struct {
2112 func (*CreateLoopbackReply) GetMessageName() string {
2113 return "create_loopback_reply"
2115 func (*CreateLoopbackReply) GetCrcString() string {
2118 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
2119 return api.ReplyMessage
2121 func NewCreateLoopbackReply() api.Message {
2122 return &CreateLoopbackReply{}
2125 // CreateLoopbackInstance represents the VPP binary API message 'create_loopback_instance'.
2126 // Generated from 'interface.api.json', line 1087:
2128 // "create_loopback_instance",
2155 // "crc": "0x7bbd53b6"
2158 type CreateLoopbackInstance struct {
2159 MacAddress []byte `struc:"[6]byte"`
2164 func (*CreateLoopbackInstance) GetMessageName() string {
2165 return "create_loopback_instance"
2167 func (*CreateLoopbackInstance) GetCrcString() string {
2170 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
2171 return api.RequestMessage
2173 func NewCreateLoopbackInstance() api.Message {
2174 return &CreateLoopbackInstance{}
2177 // CreateLoopbackInstanceReply represents the VPP binary API message 'create_loopback_instance_reply'.
2178 // Generated from 'interface.api.json', line 1118:
2180 // "create_loopback_instance_reply",
2198 // "crc": "0xfda5941f"
2201 type CreateLoopbackInstanceReply struct {
2206 func (*CreateLoopbackInstanceReply) GetMessageName() string {
2207 return "create_loopback_instance_reply"
2209 func (*CreateLoopbackInstanceReply) GetCrcString() string {
2212 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
2213 return api.ReplyMessage
2215 func NewCreateLoopbackInstanceReply() api.Message {
2216 return &CreateLoopbackInstanceReply{}
2219 // DeleteLoopback represents the VPP binary API message 'delete_loopback'.
2220 // Generated from 'interface.api.json', line 1140:
2222 // "delete_loopback",
2240 // "crc": "0x529cb13f"
2243 type DeleteLoopback struct {
2247 func (*DeleteLoopback) GetMessageName() string {
2248 return "delete_loopback"
2250 func (*DeleteLoopback) GetCrcString() string {
2253 func (*DeleteLoopback) GetMessageType() api.MessageType {
2254 return api.RequestMessage
2256 func NewDeleteLoopback() api.Message {
2257 return &DeleteLoopback{}
2260 // DeleteLoopbackReply represents the VPP binary API message 'delete_loopback_reply'.
2261 // Generated from 'interface.api.json', line 1162:
2263 // "delete_loopback_reply",
2277 // "crc": "0xe8d4e804"
2280 type DeleteLoopbackReply struct {
2284 func (*DeleteLoopbackReply) GetMessageName() string {
2285 return "delete_loopback_reply"
2287 func (*DeleteLoopbackReply) GetCrcString() string {
2290 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
2291 return api.ReplyMessage
2293 func NewDeleteLoopbackReply() api.Message {
2294 return &DeleteLoopbackReply{}
2297 // CollectDetailedInterfaceStats represents the VPP binary API message 'collect_detailed_interface_stats'.
2298 // Generated from 'interface.api.json', line 1180:
2300 // "collect_detailed_interface_stats",
2322 // "crc": "0x69d24598"
2325 type CollectDetailedInterfaceStats struct {
2330 func (*CollectDetailedInterfaceStats) GetMessageName() string {
2331 return "collect_detailed_interface_stats"
2333 func (*CollectDetailedInterfaceStats) GetCrcString() string {
2336 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
2337 return api.RequestMessage
2339 func NewCollectDetailedInterfaceStats() api.Message {
2340 return &CollectDetailedInterfaceStats{}
2343 // CollectDetailedInterfaceStatsReply represents the VPP binary API message 'collect_detailed_interface_stats_reply'.
2344 // Generated from 'interface.api.json', line 1206:
2346 // "collect_detailed_interface_stats_reply",
2360 // "crc": "0xe8d4e804"
2363 type CollectDetailedInterfaceStatsReply struct {
2367 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
2368 return "collect_detailed_interface_stats_reply"
2370 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
2373 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
2374 return api.ReplyMessage
2376 func NewCollectDetailedInterfaceStatsReply() api.Message {
2377 return &CollectDetailedInterfaceStatsReply{}
2382 type Services interface {
2383 DumpSwInterface(*SwInterfaceDump) (*SwInterfaceDetails, error)
2384 CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
2385 CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
2386 CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
2387 CreateSubif(*CreateSubif) (*CreateSubifReply, error)
2388 CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
2389 DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
2390 DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
2391 HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
2392 InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
2393 SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
2394 SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
2395 SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
2396 SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
2397 SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
2398 SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
2399 SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
2400 SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
2401 SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
2402 SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
2403 SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
2404 WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
2408 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
2409 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
2410 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
2411 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
2412 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
2413 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
2414 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
2415 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
2416 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
2417 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
2418 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
2419 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
2420 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
2421 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
2422 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
2423 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
2424 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
2425 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
2426 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
2427 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
2428 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
2429 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
2430 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
2431 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
2432 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
2433 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
2434 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
2435 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
2436 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
2437 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
2438 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
2439 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
2440 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
2441 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
2442 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
2443 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
2444 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
2445 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
2446 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
2447 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
2448 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
2449 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
2450 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
2451 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
2452 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")