1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: interface.api.json
5 Package interfaces is a generated from VPP binary API module 'interface'.
7 It contains following objects:
16 import "git.fd.io/govpp.git/api"
17 import "github.com/lunixbochs/struc"
20 // Reference imports to suppress errors if they are not otherwise used.
21 var _ = api.RegisterMessage
23 var _ = bytes.NewBuffer
25 // Services represents VPP binary API services:
29 // "reply": "create_subif_reply"
31 // "sw_interface_set_ip_directed_broadcast": {
32 // "reply": "sw_interface_set_ip_directed_broadcast_reply"
35 // "reply": "delete_subif_reply"
37 // "sw_interface_get_mac_address": {
38 // "reply": "sw_interface_get_mac_address_reply"
40 // "sw_interface_tag_add_del": {
41 // "reply": "sw_interface_tag_add_del_reply"
43 // "collect_detailed_interface_stats": {
44 // "reply": "collect_detailed_interface_stats_reply"
46 // "sw_interface_dump": {
47 // "reply": "sw_interface_details",
50 // "sw_interface_set_rx_placement": {
51 // "reply": "sw_interface_set_rx_placement_reply"
53 // "sw_interface_add_del_address": {
54 // "reply": "sw_interface_add_del_address_reply"
56 // "sw_interface_get_table": {
57 // "reply": "sw_interface_get_table_reply"
59 // "interface_name_renumber": {
60 // "reply": "interface_name_renumber_reply"
62 // "create_loopback_instance": {
63 // "reply": "create_loopback_instance_reply"
65 // "sw_interface_set_mtu": {
66 // "reply": "sw_interface_set_mtu_reply"
68 // "want_interface_events": {
69 // "reply": "want_interface_events_reply",
71 // "sw_interface_event"
74 // "create_loopback": {
75 // "reply": "create_loopback_reply"
77 // "sw_interface_clear_stats": {
78 // "reply": "sw_interface_clear_stats_reply"
80 // "hw_interface_set_mtu": {
81 // "reply": "hw_interface_set_mtu_reply"
83 // "sw_interface_set_mac_address": {
84 // "reply": "sw_interface_set_mac_address_reply"
86 // "sw_interface_set_unnumbered": {
87 // "reply": "sw_interface_set_unnumbered_reply"
89 // "sw_interface_rx_placement_dump": {
90 // "reply": "sw_interface_rx_placement_details",
93 // "sw_interface_set_flags": {
94 // "reply": "sw_interface_set_flags_reply"
96 // "delete_loopback": {
97 // "reply": "delete_loopback_reply"
99 // "sw_interface_set_rx_mode": {
100 // "reply": "sw_interface_set_rx_mode_reply"
102 // "create_vlan_subif": {
103 // "reply": "create_vlan_subif_reply"
105 // "sw_interface_set_table": {
106 // "reply": "sw_interface_set_table_reply"
110 type Services interface {
111 DumpSwInterface(*SwInterfaceDump) ([]*SwInterfaceDetails, error)
112 DumpSwInterfaceRxPlacement(*SwInterfaceRxPlacementDump) ([]*SwInterfaceRxPlacementDetails, error)
113 CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
114 CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
115 CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
116 CreateSubif(*CreateSubif) (*CreateSubifReply, error)
117 CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
118 DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
119 DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
120 HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
121 InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
122 SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
123 SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
124 SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
125 SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
126 SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
127 SwInterfaceSetIPDirectedBroadcast(*SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
128 SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
129 SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
130 SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
131 SwInterfaceSetRxPlacement(*SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
132 SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
133 SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
134 SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
135 WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
140 // InterfaceIndex represents VPP binary API alias 'interface_index':
142 // "interface_index": {
146 type InterfaceIndex uint32
150 // VlibCounter represents VPP binary API type 'vlib_counter':
162 // "crc": "0xce2325a2"
165 type VlibCounter struct {
170 func (*VlibCounter) GetTypeName() string {
171 return "vlib_counter"
173 func (*VlibCounter) GetCrcString() string {
177 // VnetCombinedCounter represents VPP binary API type 'vnet_combined_counter':
179 // "vnet_combined_counter",
194 // "rx_unicast_packets"
198 // "rx_unicast_bytes"
202 // "rx_multicast_packets"
206 // "rx_multicast_bytes"
210 // "rx_broadcast_packets"
214 // "rx_broadcast_bytes"
226 // "tx_unicast_packets"
230 // "tx_unicast_bytes"
234 // "tx_multicast_packets"
238 // "tx_multicast_bytes"
242 // "tx_broadcast_packets"
246 // "tx_broadcast_bytes"
249 // "crc": "0x20905ca4"
252 type VnetCombinedCounter struct {
256 RxUnicastPackets uint64
257 RxUnicastBytes uint64
258 RxMulticastPackets uint64
259 RxMulticastBytes uint64
260 RxBroadcastPackets uint64
261 RxBroadcastBytes uint64
264 TxUnicastPackets uint64
265 TxUnicastBytes uint64
266 TxMulticastPackets uint64
267 TxMulticastBytes uint64
268 TxBroadcastPackets uint64
269 TxBroadcastBytes uint64
272 func (*VnetCombinedCounter) GetTypeName() string {
273 return "vnet_combined_counter"
275 func (*VnetCombinedCounter) GetCrcString() string {
279 // VnetSimpleCounter represents VPP binary API type 'vnet_simple_counter':
281 // "vnet_simple_counter",
323 // "crc": "0x8bd65e2d"
326 type VnetSimpleCounter struct {
339 func (*VnetSimpleCounter) GetTypeName() string {
340 return "vnet_simple_counter"
342 func (*VnetSimpleCounter) GetCrcString() string {
348 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags':
350 // "sw_interface_set_flags",
372 // "crc": "0x555485f5"
375 type SwInterfaceSetFlags struct {
380 func (*SwInterfaceSetFlags) GetMessageName() string {
381 return "sw_interface_set_flags"
383 func (*SwInterfaceSetFlags) GetCrcString() string {
386 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
387 return api.RequestMessage
390 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply':
392 // "sw_interface_set_flags_reply",
406 // "crc": "0xe8d4e804"
409 type SwInterfaceSetFlagsReply struct {
413 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
414 return "sw_interface_set_flags_reply"
416 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
419 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
420 return api.ReplyMessage
423 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu':
425 // "hw_interface_set_mtu",
447 // "crc": "0x132da1e7"
450 type HwInterfaceSetMtu struct {
455 func (*HwInterfaceSetMtu) GetMessageName() string {
456 return "hw_interface_set_mtu"
458 func (*HwInterfaceSetMtu) GetCrcString() string {
461 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
462 return api.RequestMessage
465 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply':
467 // "hw_interface_set_mtu_reply",
481 // "crc": "0xe8d4e804"
484 type HwInterfaceSetMtuReply struct {
488 func (*HwInterfaceSetMtuReply) GetMessageName() string {
489 return "hw_interface_set_mtu_reply"
491 func (*HwInterfaceSetMtuReply) GetCrcString() string {
494 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
495 return api.ReplyMessage
498 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu':
500 // "sw_interface_set_mtu",
523 // "crc": "0xd0008db8"
526 type SwInterfaceSetMtu struct {
528 Mtu []uint32 `struc:"[4]uint32"`
531 func (*SwInterfaceSetMtu) GetMessageName() string {
532 return "sw_interface_set_mtu"
534 func (*SwInterfaceSetMtu) GetCrcString() string {
537 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
538 return api.RequestMessage
541 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply':
543 // "sw_interface_set_mtu_reply",
557 // "crc": "0xe8d4e804"
560 type SwInterfaceSetMtuReply struct {
564 func (*SwInterfaceSetMtuReply) GetMessageName() string {
565 return "sw_interface_set_mtu_reply"
567 func (*SwInterfaceSetMtuReply) GetCrcString() string {
570 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
571 return api.ReplyMessage
574 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast':
576 // "sw_interface_set_ip_directed_broadcast",
598 // "crc": "0xa36fadc0"
601 type SwInterfaceSetIPDirectedBroadcast struct {
606 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
607 return "sw_interface_set_ip_directed_broadcast"
609 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
612 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
613 return api.RequestMessage
616 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply':
618 // "sw_interface_set_ip_directed_broadcast_reply",
632 // "crc": "0xe8d4e804"
635 type SwInterfaceSetIPDirectedBroadcastReply struct {
639 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
640 return "sw_interface_set_ip_directed_broadcast_reply"
642 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
645 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
646 return api.ReplyMessage
649 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event':
651 // "sw_interface_event",
681 // "crc": "0xbf9938e4"
684 type SwInterfaceEvent struct {
692 func (*SwInterfaceEvent) GetMessageName() string {
693 return "sw_interface_event"
695 func (*SwInterfaceEvent) GetCrcString() string {
698 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
699 return api.EventMessage
702 // WantInterfaceEvents represents VPP binary API message 'want_interface_events':
704 // "want_interface_events",
726 // "crc": "0x476f5a08"
729 type WantInterfaceEvents struct {
734 func (*WantInterfaceEvents) GetMessageName() string {
735 return "want_interface_events"
737 func (*WantInterfaceEvents) GetCrcString() string {
740 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
741 return api.RequestMessage
744 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply':
746 // "want_interface_events_reply",
760 // "crc": "0xe8d4e804"
763 type WantInterfaceEventsReply struct {
767 func (*WantInterfaceEventsReply) GetMessageName() string {
768 return "want_interface_events_reply"
770 func (*WantInterfaceEventsReply) GetCrcString() string {
773 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
774 return api.ReplyMessage
777 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details':
779 // "sw_interface_details",
798 // "l2_address_length"
849 // "sub_number_of_tags"
853 // "sub_outer_vlan_id"
857 // "sub_inner_vlan_id"
869 // "sub_outer_vlan_id_any"
873 // "sub_inner_vlan_id_any"
919 // "crc": "0xe4ee7eb6"
922 type SwInterfaceDetails struct {
925 L2AddressLength uint32
926 L2Address []byte `struc:"[8]byte"`
927 InterfaceName []byte `struc:"[64]byte"`
933 Mtu []uint32 `struc:"[4]uint32"`
937 SubNumberOfTags uint8
938 SubOuterVlanID uint16
939 SubInnerVlanID uint16
942 SubOuterVlanIDAny uint8
943 SubInnerVlanIDAny uint8
948 Tag []byte `struc:"[64]byte"`
950 BDmac []byte `struc:"[6]byte"`
951 BSmac []byte `struc:"[6]byte"`
956 func (*SwInterfaceDetails) GetMessageName() string {
957 return "sw_interface_details"
959 func (*SwInterfaceDetails) GetCrcString() string {
962 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
963 return api.ReplyMessage
966 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump':
968 // "sw_interface_dump",
983 // "name_filter_valid"
991 // "crc": "0x63f5e3b7"
994 type SwInterfaceDump struct {
995 NameFilterValid uint8
996 NameFilter []byte `struc:"[49]byte"`
999 func (*SwInterfaceDump) GetMessageName() string {
1000 return "sw_interface_dump"
1002 func (*SwInterfaceDump) GetCrcString() string {
1005 func (*SwInterfaceDump) GetMessageType() api.MessageType {
1006 return api.RequestMessage
1009 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address':
1011 // "sw_interface_add_del_address",
1050 // "crc": "0x7b583179"
1053 type SwInterfaceAddDelAddress struct {
1059 Address []byte `struc:"[16]byte"`
1062 func (*SwInterfaceAddDelAddress) GetMessageName() string {
1063 return "sw_interface_add_del_address"
1065 func (*SwInterfaceAddDelAddress) GetCrcString() string {
1068 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
1069 return api.RequestMessage
1072 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply':
1074 // "sw_interface_add_del_address_reply",
1088 // "crc": "0xe8d4e804"
1091 type SwInterfaceAddDelAddressReply struct {
1095 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
1096 return "sw_interface_add_del_address_reply"
1098 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
1101 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
1102 return api.ReplyMessage
1105 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table':
1107 // "sw_interface_set_table",
1133 // "crc": "0xacb25d89"
1136 type SwInterfaceSetTable struct {
1142 func (*SwInterfaceSetTable) GetMessageName() string {
1143 return "sw_interface_set_table"
1145 func (*SwInterfaceSetTable) GetCrcString() string {
1148 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
1149 return api.RequestMessage
1152 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply':
1154 // "sw_interface_set_table_reply",
1168 // "crc": "0xe8d4e804"
1171 type SwInterfaceSetTableReply struct {
1175 func (*SwInterfaceSetTableReply) GetMessageName() string {
1176 return "sw_interface_set_table_reply"
1178 func (*SwInterfaceSetTableReply) GetCrcString() string {
1181 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
1182 return api.ReplyMessage
1185 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table':
1187 // "sw_interface_get_table",
1209 // "crc": "0x6b7bcd0a"
1212 type SwInterfaceGetTable struct {
1217 func (*SwInterfaceGetTable) GetMessageName() string {
1218 return "sw_interface_get_table"
1220 func (*SwInterfaceGetTable) GetCrcString() string {
1223 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1224 return api.RequestMessage
1227 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply':
1229 // "sw_interface_get_table_reply",
1247 // "crc": "0xa6eb0109"
1250 type SwInterfaceGetTableReply struct {
1255 func (*SwInterfaceGetTableReply) GetMessageName() string {
1256 return "sw_interface_get_table_reply"
1258 func (*SwInterfaceGetTableReply) GetCrcString() string {
1261 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1262 return api.ReplyMessage
1265 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered':
1267 // "sw_interface_set_unnumbered",
1286 // "unnumbered_sw_if_index"
1293 // "crc": "0xa2c1bbda"
1296 type SwInterfaceSetUnnumbered struct {
1298 UnnumberedSwIfIndex uint32
1302 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
1303 return "sw_interface_set_unnumbered"
1305 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
1308 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
1309 return api.RequestMessage
1312 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply':
1314 // "sw_interface_set_unnumbered_reply",
1328 // "crc": "0xe8d4e804"
1331 type SwInterfaceSetUnnumberedReply struct {
1335 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
1336 return "sw_interface_set_unnumbered_reply"
1338 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
1341 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
1342 return api.ReplyMessage
1345 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats':
1347 // "sw_interface_clear_stats",
1365 // "crc": "0x529cb13f"
1368 type SwInterfaceClearStats struct {
1372 func (*SwInterfaceClearStats) GetMessageName() string {
1373 return "sw_interface_clear_stats"
1375 func (*SwInterfaceClearStats) GetCrcString() string {
1378 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
1379 return api.RequestMessage
1382 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply':
1384 // "sw_interface_clear_stats_reply",
1398 // "crc": "0xe8d4e804"
1401 type SwInterfaceClearStatsReply struct {
1405 func (*SwInterfaceClearStatsReply) GetMessageName() string {
1406 return "sw_interface_clear_stats_reply"
1408 func (*SwInterfaceClearStatsReply) GetCrcString() string {
1411 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1412 return api.ReplyMessage
1415 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del':
1417 // "sw_interface_tag_add_del",
1444 // "crc": "0x14cc636c"
1447 type SwInterfaceTagAddDel struct {
1450 Tag []byte `struc:"[64]byte"`
1453 func (*SwInterfaceTagAddDel) GetMessageName() string {
1454 return "sw_interface_tag_add_del"
1456 func (*SwInterfaceTagAddDel) GetCrcString() string {
1459 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
1460 return api.RequestMessage
1463 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply':
1465 // "sw_interface_tag_add_del_reply",
1479 // "crc": "0xe8d4e804"
1482 type SwInterfaceTagAddDelReply struct {
1486 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
1487 return "sw_interface_tag_add_del_reply"
1489 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
1492 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
1493 return api.ReplyMessage
1496 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address':
1498 // "sw_interface_set_mac_address",
1521 // "crc": "0xeed5dfca"
1524 type SwInterfaceSetMacAddress struct {
1526 MacAddress []byte `struc:"[6]byte"`
1529 func (*SwInterfaceSetMacAddress) GetMessageName() string {
1530 return "sw_interface_set_mac_address"
1532 func (*SwInterfaceSetMacAddress) GetCrcString() string {
1535 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1536 return api.RequestMessage
1539 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply':
1541 // "sw_interface_set_mac_address_reply",
1555 // "crc": "0xe8d4e804"
1558 type SwInterfaceSetMacAddressReply struct {
1562 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1563 return "sw_interface_set_mac_address_reply"
1565 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
1568 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1569 return api.ReplyMessage
1572 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address':
1574 // "sw_interface_get_mac_address",
1592 // "crc": "0x529cb13f"
1595 type SwInterfaceGetMacAddress struct {
1599 func (*SwInterfaceGetMacAddress) GetMessageName() string {
1600 return "sw_interface_get_mac_address"
1602 func (*SwInterfaceGetMacAddress) GetCrcString() string {
1605 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1606 return api.RequestMessage
1609 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply':
1611 // "sw_interface_get_mac_address_reply",
1630 // "crc": "0x8ea538d3"
1633 type SwInterfaceGetMacAddressReply struct {
1635 MacAddress []byte `struc:"[6]byte"`
1638 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1639 return "sw_interface_get_mac_address_reply"
1641 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
1644 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1645 return api.ReplyMessage
1648 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode':
1650 // "sw_interface_set_rx_mode",
1680 // "crc": "0x2a1cc58c"
1683 type SwInterfaceSetRxMode struct {
1690 func (*SwInterfaceSetRxMode) GetMessageName() string {
1691 return "sw_interface_set_rx_mode"
1693 func (*SwInterfaceSetRxMode) GetCrcString() string {
1696 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1697 return api.RequestMessage
1700 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply':
1702 // "sw_interface_set_rx_mode_reply",
1716 // "crc": "0xe8d4e804"
1719 type SwInterfaceSetRxModeReply struct {
1723 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
1724 return "sw_interface_set_rx_mode_reply"
1726 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
1729 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1730 return api.ReplyMessage
1733 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement':
1735 // "sw_interface_set_rx_placement",
1765 // "crc": "0x4ef4377d"
1768 type SwInterfaceSetRxPlacement struct {
1775 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
1776 return "sw_interface_set_rx_placement"
1778 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
1781 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
1782 return api.RequestMessage
1785 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply':
1787 // "sw_interface_set_rx_placement_reply",
1801 // "crc": "0xe8d4e804"
1804 type SwInterfaceSetRxPlacementReply struct {
1808 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
1809 return "sw_interface_set_rx_placement_reply"
1811 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
1814 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
1815 return api.ReplyMessage
1818 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump':
1820 // "sw_interface_rx_placement_dump",
1838 // "crc": "0x529cb13f"
1841 type SwInterfaceRxPlacementDump struct {
1845 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
1846 return "sw_interface_rx_placement_dump"
1848 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
1851 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
1852 return api.RequestMessage
1855 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details':
1857 // "sw_interface_rx_placement_details",
1887 // "crc": "0x0e9e33f4"
1890 type SwInterfaceRxPlacementDetails struct {
1897 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
1898 return "sw_interface_rx_placement_details"
1900 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
1903 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
1904 return api.RequestMessage
1907 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber':
1909 // "interface_name_renumber",
1928 // "new_show_dev_instance"
1931 // "crc": "0x39194269"
1934 type InterfaceNameRenumber struct {
1936 NewShowDevInstance uint32
1939 func (*InterfaceNameRenumber) GetMessageName() string {
1940 return "interface_name_renumber"
1942 func (*InterfaceNameRenumber) GetCrcString() string {
1945 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
1946 return api.RequestMessage
1949 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply':
1951 // "interface_name_renumber_reply",
1965 // "crc": "0xe8d4e804"
1968 type InterfaceNameRenumberReply struct {
1972 func (*InterfaceNameRenumberReply) GetMessageName() string {
1973 return "interface_name_renumber_reply"
1975 func (*InterfaceNameRenumberReply) GetCrcString() string {
1978 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
1979 return api.ReplyMessage
1982 // CreateSubif represents VPP binary API message 'create_subif':
2031 // "outer_vlan_id_any"
2035 // "inner_vlan_id_any"
2046 // "crc": "0x86cfe408"
2049 type CreateSubif struct {
2058 OuterVlanIDAny uint8
2059 InnerVlanIDAny uint8
2064 func (*CreateSubif) GetMessageName() string {
2065 return "create_subif"
2067 func (*CreateSubif) GetCrcString() string {
2070 func (*CreateSubif) GetMessageType() api.MessageType {
2071 return api.RequestMessage
2074 // CreateSubifReply represents VPP binary API message 'create_subif_reply':
2076 // "create_subif_reply",
2094 // "crc": "0xfda5941f"
2097 type CreateSubifReply struct {
2102 func (*CreateSubifReply) GetMessageName() string {
2103 return "create_subif_reply"
2105 func (*CreateSubifReply) GetCrcString() string {
2108 func (*CreateSubifReply) GetMessageType() api.MessageType {
2109 return api.ReplyMessage
2112 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif':
2114 // "create_vlan_subif",
2136 // "crc": "0x70cadeda"
2139 type CreateVlanSubif struct {
2144 func (*CreateVlanSubif) GetMessageName() string {
2145 return "create_vlan_subif"
2147 func (*CreateVlanSubif) GetCrcString() string {
2150 func (*CreateVlanSubif) GetMessageType() api.MessageType {
2151 return api.RequestMessage
2154 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply':
2156 // "create_vlan_subif_reply",
2174 // "crc": "0xfda5941f"
2177 type CreateVlanSubifReply struct {
2182 func (*CreateVlanSubifReply) GetMessageName() string {
2183 return "create_vlan_subif_reply"
2185 func (*CreateVlanSubifReply) GetCrcString() string {
2188 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
2189 return api.ReplyMessage
2192 // DeleteSubif represents VPP binary API message 'delete_subif':
2212 // "crc": "0x529cb13f"
2215 type DeleteSubif struct {
2219 func (*DeleteSubif) GetMessageName() string {
2220 return "delete_subif"
2222 func (*DeleteSubif) GetCrcString() string {
2225 func (*DeleteSubif) GetMessageType() api.MessageType {
2226 return api.RequestMessage
2229 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply':
2231 // "delete_subif_reply",
2245 // "crc": "0xe8d4e804"
2248 type DeleteSubifReply struct {
2252 func (*DeleteSubifReply) GetMessageName() string {
2253 return "delete_subif_reply"
2255 func (*DeleteSubifReply) GetCrcString() string {
2258 func (*DeleteSubifReply) GetMessageType() api.MessageType {
2259 return api.ReplyMessage
2262 // CreateLoopback represents VPP binary API message 'create_loopback':
2264 // "create_loopback",
2283 // "crc": "0x3b54129c"
2286 type CreateLoopback struct {
2287 MacAddress []byte `struc:"[6]byte"`
2290 func (*CreateLoopback) GetMessageName() string {
2291 return "create_loopback"
2293 func (*CreateLoopback) GetCrcString() string {
2296 func (*CreateLoopback) GetMessageType() api.MessageType {
2297 return api.RequestMessage
2300 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply':
2302 // "create_loopback_reply",
2320 // "crc": "0xfda5941f"
2323 type CreateLoopbackReply struct {
2328 func (*CreateLoopbackReply) GetMessageName() string {
2329 return "create_loopback_reply"
2331 func (*CreateLoopbackReply) GetCrcString() string {
2334 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
2335 return api.ReplyMessage
2338 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance':
2340 // "create_loopback_instance",
2367 // "crc": "0x7bbd53b6"
2370 type CreateLoopbackInstance struct {
2371 MacAddress []byte `struc:"[6]byte"`
2376 func (*CreateLoopbackInstance) GetMessageName() string {
2377 return "create_loopback_instance"
2379 func (*CreateLoopbackInstance) GetCrcString() string {
2382 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
2383 return api.RequestMessage
2386 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply':
2388 // "create_loopback_instance_reply",
2406 // "crc": "0xfda5941f"
2409 type CreateLoopbackInstanceReply struct {
2414 func (*CreateLoopbackInstanceReply) GetMessageName() string {
2415 return "create_loopback_instance_reply"
2417 func (*CreateLoopbackInstanceReply) GetCrcString() string {
2420 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
2421 return api.ReplyMessage
2424 // DeleteLoopback represents VPP binary API message 'delete_loopback':
2426 // "delete_loopback",
2444 // "crc": "0x529cb13f"
2447 type DeleteLoopback struct {
2451 func (*DeleteLoopback) GetMessageName() string {
2452 return "delete_loopback"
2454 func (*DeleteLoopback) GetCrcString() string {
2457 func (*DeleteLoopback) GetMessageType() api.MessageType {
2458 return api.RequestMessage
2461 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply':
2463 // "delete_loopback_reply",
2477 // "crc": "0xe8d4e804"
2480 type DeleteLoopbackReply struct {
2484 func (*DeleteLoopbackReply) GetMessageName() string {
2485 return "delete_loopback_reply"
2487 func (*DeleteLoopbackReply) GetCrcString() string {
2490 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
2491 return api.ReplyMessage
2494 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats':
2496 // "collect_detailed_interface_stats",
2518 // "crc": "0x69d24598"
2521 type CollectDetailedInterfaceStats struct {
2526 func (*CollectDetailedInterfaceStats) GetMessageName() string {
2527 return "collect_detailed_interface_stats"
2529 func (*CollectDetailedInterfaceStats) GetCrcString() string {
2532 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
2533 return api.RequestMessage
2536 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply':
2538 // "collect_detailed_interface_stats_reply",
2552 // "crc": "0xe8d4e804"
2555 type CollectDetailedInterfaceStatsReply struct {
2559 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
2560 return "collect_detailed_interface_stats_reply"
2562 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
2565 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
2566 return api.ReplyMessage
2570 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
2571 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
2572 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
2573 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
2574 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
2575 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
2576 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
2577 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
2578 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
2579 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
2580 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
2581 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
2582 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
2583 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
2584 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
2585 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
2586 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
2587 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
2588 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
2589 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
2590 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
2591 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
2592 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
2593 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
2594 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
2595 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
2596 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
2597 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
2598 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
2599 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
2600 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
2601 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
2602 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
2603 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
2604 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
2605 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
2606 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
2607 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
2608 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
2609 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
2610 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
2611 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
2612 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
2613 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
2614 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
2615 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
2616 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
2617 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
2618 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
2619 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
2620 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")