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:
15 import "git.fd.io/govpp.git/api"
16 import "github.com/lunixbochs/struc"
19 // Reference imports to suppress errors if they are not otherwise used.
20 var _ = api.RegisterMessage
22 var _ = bytes.NewBuffer
26 // VlibCounter represents the VPP binary API type 'vlib_counter'.
38 // "crc": "0xce2325a2"
41 type VlibCounter struct {
46 func (*VlibCounter) GetTypeName() string {
49 func (*VlibCounter) GetCrcString() string {
53 // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
55 // "vnet_combined_counter",
70 // "rx_unicast_packets"
78 // "rx_multicast_packets"
82 // "rx_multicast_bytes"
86 // "rx_broadcast_packets"
90 // "rx_broadcast_bytes"
102 // "tx_unicast_packets"
106 // "tx_unicast_bytes"
110 // "tx_multicast_packets"
114 // "tx_multicast_bytes"
118 // "tx_broadcast_packets"
122 // "tx_broadcast_bytes"
125 // "crc": "0x20905ca4"
128 type VnetCombinedCounter struct {
132 RxUnicastPackets uint64
133 RxUnicastBytes uint64
134 RxMulticastPackets uint64
135 RxMulticastBytes uint64
136 RxBroadcastPackets uint64
137 RxBroadcastBytes uint64
140 TxUnicastPackets uint64
141 TxUnicastBytes uint64
142 TxMulticastPackets uint64
143 TxMulticastBytes uint64
144 TxBroadcastPackets uint64
145 TxBroadcastBytes uint64
148 func (*VnetCombinedCounter) GetTypeName() string {
149 return "vnet_combined_counter"
151 func (*VnetCombinedCounter) GetCrcString() string {
155 // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
157 // "vnet_simple_counter",
199 // "crc": "0x8bd65e2d"
202 type VnetSimpleCounter struct {
215 func (*VnetSimpleCounter) GetTypeName() string {
216 return "vnet_simple_counter"
218 func (*VnetSimpleCounter) GetCrcString() string {
224 // SwInterfaceSetFlags represents the VPP binary API message 'sw_interface_set_flags'.
226 // "sw_interface_set_flags",
248 // "crc": "0x555485f5"
251 type SwInterfaceSetFlags struct {
256 func (*SwInterfaceSetFlags) GetMessageName() string {
257 return "sw_interface_set_flags"
259 func (*SwInterfaceSetFlags) GetCrcString() string {
262 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
263 return api.RequestMessage
266 // SwInterfaceSetFlagsReply represents the VPP binary API message 'sw_interface_set_flags_reply'.
268 // "sw_interface_set_flags_reply",
282 // "crc": "0xe8d4e804"
285 type SwInterfaceSetFlagsReply struct {
289 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
290 return "sw_interface_set_flags_reply"
292 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
295 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
296 return api.ReplyMessage
299 // HwInterfaceSetMtu represents the VPP binary API message 'hw_interface_set_mtu'.
301 // "hw_interface_set_mtu",
323 // "crc": "0x132da1e7"
326 type HwInterfaceSetMtu struct {
331 func (*HwInterfaceSetMtu) GetMessageName() string {
332 return "hw_interface_set_mtu"
334 func (*HwInterfaceSetMtu) GetCrcString() string {
337 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
338 return api.RequestMessage
341 // HwInterfaceSetMtuReply represents the VPP binary API message 'hw_interface_set_mtu_reply'.
343 // "hw_interface_set_mtu_reply",
357 // "crc": "0xe8d4e804"
360 type HwInterfaceSetMtuReply struct {
364 func (*HwInterfaceSetMtuReply) GetMessageName() string {
365 return "hw_interface_set_mtu_reply"
367 func (*HwInterfaceSetMtuReply) GetCrcString() string {
370 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
371 return api.ReplyMessage
374 // SwInterfaceSetMtu represents the VPP binary API message 'sw_interface_set_mtu'.
376 // "sw_interface_set_mtu",
399 // "crc": "0xd0008db8"
402 type SwInterfaceSetMtu struct {
404 Mtu []uint32 `struc:"[4]uint32"`
407 func (*SwInterfaceSetMtu) GetMessageName() string {
408 return "sw_interface_set_mtu"
410 func (*SwInterfaceSetMtu) GetCrcString() string {
413 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
414 return api.RequestMessage
417 // SwInterfaceSetMtuReply represents the VPP binary API message 'sw_interface_set_mtu_reply'.
419 // "sw_interface_set_mtu_reply",
433 // "crc": "0xe8d4e804"
436 type SwInterfaceSetMtuReply struct {
440 func (*SwInterfaceSetMtuReply) GetMessageName() string {
441 return "sw_interface_set_mtu_reply"
443 func (*SwInterfaceSetMtuReply) GetCrcString() string {
446 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
447 return api.ReplyMessage
450 // SwInterfaceEvent represents the VPP binary API message 'sw_interface_event'.
452 // "sw_interface_event",
482 // "crc": "0xbf9938e4"
485 type SwInterfaceEvent struct {
493 func (*SwInterfaceEvent) GetMessageName() string {
494 return "sw_interface_event"
496 func (*SwInterfaceEvent) GetCrcString() string {
499 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
500 return api.EventMessage
503 // WantInterfaceEvents represents the VPP binary API message 'want_interface_events'.
505 // "want_interface_events",
527 // "crc": "0x476f5a08"
530 type WantInterfaceEvents struct {
535 func (*WantInterfaceEvents) GetMessageName() string {
536 return "want_interface_events"
538 func (*WantInterfaceEvents) GetCrcString() string {
541 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
542 return api.RequestMessage
545 // WantInterfaceEventsReply represents the VPP binary API message 'want_interface_events_reply'.
547 // "want_interface_events_reply",
561 // "crc": "0xe8d4e804"
564 type WantInterfaceEventsReply struct {
568 func (*WantInterfaceEventsReply) GetMessageName() string {
569 return "want_interface_events_reply"
571 func (*WantInterfaceEventsReply) GetCrcString() string {
574 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
575 return api.ReplyMessage
578 // SwInterfaceDetails represents the VPP binary API message 'sw_interface_details'.
580 // "sw_interface_details",
599 // "l2_address_length"
650 // "sub_number_of_tags"
654 // "sub_outer_vlan_id"
658 // "sub_inner_vlan_id"
670 // "sub_outer_vlan_id_any"
674 // "sub_inner_vlan_id_any"
720 // "crc": "0x09b4b510"
723 type SwInterfaceDetails struct {
726 L2AddressLength uint32
727 L2Address []byte `struc:"[8]byte"`
728 InterfaceName []byte `struc:"[64]byte"`
734 Mtu []uint32 `struc:"[4]uint32"`
738 SubNumberOfTags uint8
739 SubOuterVlanID uint16
740 SubInnerVlanID uint16
743 SubOuterVlanIDAny uint8
744 SubInnerVlanIDAny uint8
749 Tag []byte `struc:"[64]byte"`
751 BDmac []byte `struc:"[6]byte"`
752 BSmac []byte `struc:"[6]byte"`
757 func (*SwInterfaceDetails) GetMessageName() string {
758 return "sw_interface_details"
760 func (*SwInterfaceDetails) GetCrcString() string {
763 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
764 return api.ReplyMessage
767 // SwInterfaceDump represents the VPP binary API message 'sw_interface_dump'.
769 // "sw_interface_dump",
784 // "name_filter_valid"
792 // "crc": "0x63f5e3b7"
795 type SwInterfaceDump struct {
796 NameFilterValid uint8
797 NameFilter []byte `struc:"[49]byte"`
800 func (*SwInterfaceDump) GetMessageName() string {
801 return "sw_interface_dump"
803 func (*SwInterfaceDump) GetCrcString() string {
806 func (*SwInterfaceDump) GetMessageType() api.MessageType {
807 return api.RequestMessage
810 // SwInterfaceAddDelAddress represents the VPP binary API message 'sw_interface_add_del_address'.
812 // "sw_interface_add_del_address",
851 // "crc": "0x7b583179"
854 type SwInterfaceAddDelAddress struct {
860 Address []byte `struc:"[16]byte"`
863 func (*SwInterfaceAddDelAddress) GetMessageName() string {
864 return "sw_interface_add_del_address"
866 func (*SwInterfaceAddDelAddress) GetCrcString() string {
869 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
870 return api.RequestMessage
873 // SwInterfaceAddDelAddressReply represents the VPP binary API message 'sw_interface_add_del_address_reply'.
875 // "sw_interface_add_del_address_reply",
889 // "crc": "0xe8d4e804"
892 type SwInterfaceAddDelAddressReply struct {
896 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
897 return "sw_interface_add_del_address_reply"
899 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
902 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
903 return api.ReplyMessage
906 // SwInterfaceSetTable represents the VPP binary API message 'sw_interface_set_table'.
908 // "sw_interface_set_table",
934 // "crc": "0xacb25d89"
937 type SwInterfaceSetTable struct {
943 func (*SwInterfaceSetTable) GetMessageName() string {
944 return "sw_interface_set_table"
946 func (*SwInterfaceSetTable) GetCrcString() string {
949 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
950 return api.RequestMessage
953 // SwInterfaceSetTableReply represents the VPP binary API message 'sw_interface_set_table_reply'.
955 // "sw_interface_set_table_reply",
969 // "crc": "0xe8d4e804"
972 type SwInterfaceSetTableReply struct {
976 func (*SwInterfaceSetTableReply) GetMessageName() string {
977 return "sw_interface_set_table_reply"
979 func (*SwInterfaceSetTableReply) GetCrcString() string {
982 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
983 return api.ReplyMessage
986 // SwInterfaceGetTable represents the VPP binary API message 'sw_interface_get_table'.
988 // "sw_interface_get_table",
1010 // "crc": "0x6b7bcd0a"
1013 type SwInterfaceGetTable struct {
1018 func (*SwInterfaceGetTable) GetMessageName() string {
1019 return "sw_interface_get_table"
1021 func (*SwInterfaceGetTable) GetCrcString() string {
1024 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1025 return api.RequestMessage
1028 // SwInterfaceGetTableReply represents the VPP binary API message 'sw_interface_get_table_reply'.
1030 // "sw_interface_get_table_reply",
1048 // "crc": "0xa6eb0109"
1051 type SwInterfaceGetTableReply struct {
1056 func (*SwInterfaceGetTableReply) GetMessageName() string {
1057 return "sw_interface_get_table_reply"
1059 func (*SwInterfaceGetTableReply) GetCrcString() string {
1062 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1063 return api.ReplyMessage
1066 // SwInterfaceSetUnnumbered represents the VPP binary API message 'sw_interface_set_unnumbered'.
1068 // "sw_interface_set_unnumbered",
1087 // "unnumbered_sw_if_index"
1094 // "crc": "0xa2c1bbda"
1097 type SwInterfaceSetUnnumbered struct {
1099 UnnumberedSwIfIndex uint32
1103 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
1104 return "sw_interface_set_unnumbered"
1106 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
1109 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
1110 return api.RequestMessage
1113 // SwInterfaceSetUnnumberedReply represents the VPP binary API message 'sw_interface_set_unnumbered_reply'.
1115 // "sw_interface_set_unnumbered_reply",
1129 // "crc": "0xe8d4e804"
1132 type SwInterfaceSetUnnumberedReply struct {
1136 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
1137 return "sw_interface_set_unnumbered_reply"
1139 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
1142 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
1143 return api.ReplyMessage
1146 // SwInterfaceClearStats represents the VPP binary API message 'sw_interface_clear_stats'.
1148 // "sw_interface_clear_stats",
1166 // "crc": "0x529cb13f"
1169 type SwInterfaceClearStats struct {
1173 func (*SwInterfaceClearStats) GetMessageName() string {
1174 return "sw_interface_clear_stats"
1176 func (*SwInterfaceClearStats) GetCrcString() string {
1179 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
1180 return api.RequestMessage
1183 // SwInterfaceClearStatsReply represents the VPP binary API message 'sw_interface_clear_stats_reply'.
1185 // "sw_interface_clear_stats_reply",
1199 // "crc": "0xe8d4e804"
1202 type SwInterfaceClearStatsReply struct {
1206 func (*SwInterfaceClearStatsReply) GetMessageName() string {
1207 return "sw_interface_clear_stats_reply"
1209 func (*SwInterfaceClearStatsReply) GetCrcString() string {
1212 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1213 return api.ReplyMessage
1216 // SwInterfaceTagAddDel represents the VPP binary API message 'sw_interface_tag_add_del'.
1218 // "sw_interface_tag_add_del",
1245 // "crc": "0x14cc636c"
1248 type SwInterfaceTagAddDel struct {
1251 Tag []byte `struc:"[64]byte"`
1254 func (*SwInterfaceTagAddDel) GetMessageName() string {
1255 return "sw_interface_tag_add_del"
1257 func (*SwInterfaceTagAddDel) GetCrcString() string {
1260 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
1261 return api.RequestMessage
1264 // SwInterfaceTagAddDelReply represents the VPP binary API message 'sw_interface_tag_add_del_reply'.
1266 // "sw_interface_tag_add_del_reply",
1280 // "crc": "0xe8d4e804"
1283 type SwInterfaceTagAddDelReply struct {
1287 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
1288 return "sw_interface_tag_add_del_reply"
1290 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
1293 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
1294 return api.ReplyMessage
1297 // SwInterfaceSetMacAddress represents the VPP binary API message 'sw_interface_set_mac_address'.
1299 // "sw_interface_set_mac_address",
1322 // "crc": "0xeed5dfca"
1325 type SwInterfaceSetMacAddress struct {
1327 MacAddress []byte `struc:"[6]byte"`
1330 func (*SwInterfaceSetMacAddress) GetMessageName() string {
1331 return "sw_interface_set_mac_address"
1333 func (*SwInterfaceSetMacAddress) GetCrcString() string {
1336 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1337 return api.RequestMessage
1340 // SwInterfaceSetMacAddressReply represents the VPP binary API message 'sw_interface_set_mac_address_reply'.
1342 // "sw_interface_set_mac_address_reply",
1356 // "crc": "0xe8d4e804"
1359 type SwInterfaceSetMacAddressReply struct {
1363 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1364 return "sw_interface_set_mac_address_reply"
1366 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
1369 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1370 return api.ReplyMessage
1373 // SwInterfaceGetMacAddress represents the VPP binary API message 'sw_interface_get_mac_address'.
1375 // "sw_interface_get_mac_address",
1393 // "crc": "0x529cb13f"
1396 type SwInterfaceGetMacAddress struct {
1400 func (*SwInterfaceGetMacAddress) GetMessageName() string {
1401 return "sw_interface_get_mac_address"
1403 func (*SwInterfaceGetMacAddress) GetCrcString() string {
1406 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1407 return api.RequestMessage
1410 // SwInterfaceGetMacAddressReply represents the VPP binary API message 'sw_interface_get_mac_address_reply'.
1412 // "sw_interface_get_mac_address_reply",
1431 // "crc": "0x8ea538d3"
1434 type SwInterfaceGetMacAddressReply struct {
1436 MacAddress []byte `struc:"[6]byte"`
1439 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1440 return "sw_interface_get_mac_address_reply"
1442 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
1445 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1446 return api.ReplyMessage
1449 // SwInterfaceSetRxMode represents the VPP binary API message 'sw_interface_set_rx_mode'.
1451 // "sw_interface_set_rx_mode",
1481 // "crc": "0x2a1cc58c"
1484 type SwInterfaceSetRxMode struct {
1491 func (*SwInterfaceSetRxMode) GetMessageName() string {
1492 return "sw_interface_set_rx_mode"
1494 func (*SwInterfaceSetRxMode) GetCrcString() string {
1497 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1498 return api.RequestMessage
1501 // SwInterfaceSetRxModeReply represents the VPP binary API message 'sw_interface_set_rx_mode_reply'.
1503 // "sw_interface_set_rx_mode_reply",
1517 // "crc": "0xe8d4e804"
1520 type SwInterfaceSetRxModeReply struct {
1524 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
1525 return "sw_interface_set_rx_mode_reply"
1527 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
1530 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1531 return api.ReplyMessage
1534 // InterfaceNameRenumber represents the VPP binary API message 'interface_name_renumber'.
1536 // "interface_name_renumber",
1555 // "new_show_dev_instance"
1558 // "crc": "0x39194269"
1561 type InterfaceNameRenumber struct {
1563 NewShowDevInstance uint32
1566 func (*InterfaceNameRenumber) GetMessageName() string {
1567 return "interface_name_renumber"
1569 func (*InterfaceNameRenumber) GetCrcString() string {
1572 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
1573 return api.RequestMessage
1576 // InterfaceNameRenumberReply represents the VPP binary API message 'interface_name_renumber_reply'.
1578 // "interface_name_renumber_reply",
1592 // "crc": "0xe8d4e804"
1595 type InterfaceNameRenumberReply struct {
1599 func (*InterfaceNameRenumberReply) GetMessageName() string {
1600 return "interface_name_renumber_reply"
1602 func (*InterfaceNameRenumberReply) GetCrcString() string {
1605 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
1606 return api.ReplyMessage
1609 // CreateSubif represents the VPP binary API message 'create_subif'.
1658 // "outer_vlan_id_any"
1662 // "inner_vlan_id_any"
1673 // "crc": "0x86cfe408"
1676 type CreateSubif struct {
1685 OuterVlanIDAny uint8
1686 InnerVlanIDAny uint8
1691 func (*CreateSubif) GetMessageName() string {
1692 return "create_subif"
1694 func (*CreateSubif) GetCrcString() string {
1697 func (*CreateSubif) GetMessageType() api.MessageType {
1698 return api.RequestMessage
1701 // CreateSubifReply represents the VPP binary API message 'create_subif_reply'.
1703 // "create_subif_reply",
1721 // "crc": "0xfda5941f"
1724 type CreateSubifReply struct {
1729 func (*CreateSubifReply) GetMessageName() string {
1730 return "create_subif_reply"
1732 func (*CreateSubifReply) GetCrcString() string {
1735 func (*CreateSubifReply) GetMessageType() api.MessageType {
1736 return api.ReplyMessage
1739 // CreateVlanSubif represents the VPP binary API message 'create_vlan_subif'.
1741 // "create_vlan_subif",
1763 // "crc": "0x70cadeda"
1766 type CreateVlanSubif struct {
1771 func (*CreateVlanSubif) GetMessageName() string {
1772 return "create_vlan_subif"
1774 func (*CreateVlanSubif) GetCrcString() string {
1777 func (*CreateVlanSubif) GetMessageType() api.MessageType {
1778 return api.RequestMessage
1781 // CreateVlanSubifReply represents the VPP binary API message 'create_vlan_subif_reply'.
1783 // "create_vlan_subif_reply",
1801 // "crc": "0xfda5941f"
1804 type CreateVlanSubifReply struct {
1809 func (*CreateVlanSubifReply) GetMessageName() string {
1810 return "create_vlan_subif_reply"
1812 func (*CreateVlanSubifReply) GetCrcString() string {
1815 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
1816 return api.ReplyMessage
1819 // DeleteSubif represents the VPP binary API message 'delete_subif'.
1839 // "crc": "0x529cb13f"
1842 type DeleteSubif struct {
1846 func (*DeleteSubif) GetMessageName() string {
1847 return "delete_subif"
1849 func (*DeleteSubif) GetCrcString() string {
1852 func (*DeleteSubif) GetMessageType() api.MessageType {
1853 return api.RequestMessage
1856 // DeleteSubifReply represents the VPP binary API message 'delete_subif_reply'.
1858 // "delete_subif_reply",
1872 // "crc": "0xe8d4e804"
1875 type DeleteSubifReply struct {
1879 func (*DeleteSubifReply) GetMessageName() string {
1880 return "delete_subif_reply"
1882 func (*DeleteSubifReply) GetCrcString() string {
1885 func (*DeleteSubifReply) GetMessageType() api.MessageType {
1886 return api.ReplyMessage
1889 // CreateLoopback represents the VPP binary API message 'create_loopback'.
1891 // "create_loopback",
1910 // "crc": "0x3b54129c"
1913 type CreateLoopback struct {
1914 MacAddress []byte `struc:"[6]byte"`
1917 func (*CreateLoopback) GetMessageName() string {
1918 return "create_loopback"
1920 func (*CreateLoopback) GetCrcString() string {
1923 func (*CreateLoopback) GetMessageType() api.MessageType {
1924 return api.RequestMessage
1927 // CreateLoopbackReply represents the VPP binary API message 'create_loopback_reply'.
1929 // "create_loopback_reply",
1947 // "crc": "0xfda5941f"
1950 type CreateLoopbackReply struct {
1955 func (*CreateLoopbackReply) GetMessageName() string {
1956 return "create_loopback_reply"
1958 func (*CreateLoopbackReply) GetCrcString() string {
1961 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
1962 return api.ReplyMessage
1965 // CreateLoopbackInstance represents the VPP binary API message 'create_loopback_instance'.
1967 // "create_loopback_instance",
1994 // "crc": "0x7bbd53b6"
1997 type CreateLoopbackInstance struct {
1998 MacAddress []byte `struc:"[6]byte"`
2003 func (*CreateLoopbackInstance) GetMessageName() string {
2004 return "create_loopback_instance"
2006 func (*CreateLoopbackInstance) GetCrcString() string {
2009 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
2010 return api.RequestMessage
2013 // CreateLoopbackInstanceReply represents the VPP binary API message 'create_loopback_instance_reply'.
2015 // "create_loopback_instance_reply",
2033 // "crc": "0xfda5941f"
2036 type CreateLoopbackInstanceReply struct {
2041 func (*CreateLoopbackInstanceReply) GetMessageName() string {
2042 return "create_loopback_instance_reply"
2044 func (*CreateLoopbackInstanceReply) GetCrcString() string {
2047 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
2048 return api.ReplyMessage
2051 // DeleteLoopback represents the VPP binary API message 'delete_loopback'.
2053 // "delete_loopback",
2071 // "crc": "0x529cb13f"
2074 type DeleteLoopback struct {
2078 func (*DeleteLoopback) GetMessageName() string {
2079 return "delete_loopback"
2081 func (*DeleteLoopback) GetCrcString() string {
2084 func (*DeleteLoopback) GetMessageType() api.MessageType {
2085 return api.RequestMessage
2088 // DeleteLoopbackReply represents the VPP binary API message 'delete_loopback_reply'.
2090 // "delete_loopback_reply",
2104 // "crc": "0xe8d4e804"
2107 type DeleteLoopbackReply struct {
2111 func (*DeleteLoopbackReply) GetMessageName() string {
2112 return "delete_loopback_reply"
2114 func (*DeleteLoopbackReply) GetCrcString() string {
2117 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
2118 return api.ReplyMessage
2121 // CollectDetailedInterfaceStats represents the VPP binary API message 'collect_detailed_interface_stats'.
2123 // "collect_detailed_interface_stats",
2145 // "crc": "0x69d24598"
2148 type CollectDetailedInterfaceStats struct {
2153 func (*CollectDetailedInterfaceStats) GetMessageName() string {
2154 return "collect_detailed_interface_stats"
2156 func (*CollectDetailedInterfaceStats) GetCrcString() string {
2159 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
2160 return api.RequestMessage
2163 // CollectDetailedInterfaceStatsReply represents the VPP binary API message 'collect_detailed_interface_stats_reply'.
2165 // "collect_detailed_interface_stats_reply",
2179 // "crc": "0xe8d4e804"
2182 type CollectDetailedInterfaceStatsReply struct {
2186 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
2187 return "collect_detailed_interface_stats_reply"
2189 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
2192 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
2193 return api.ReplyMessage
2198 type Services interface {
2199 DumpSwInterface(*SwInterfaceDump) (*SwInterfaceDetails, error)
2200 CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
2201 CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
2202 CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
2203 CreateSubif(*CreateSubif) (*CreateSubifReply, error)
2204 CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
2205 DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
2206 DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
2207 HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
2208 InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
2209 SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
2210 SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
2211 SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
2212 SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
2213 SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
2214 SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
2215 SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
2216 SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
2217 SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
2218 SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
2219 SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
2220 WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
2224 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
2225 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
2226 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
2227 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
2228 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
2229 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
2230 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
2231 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
2232 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
2233 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
2234 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
2235 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
2236 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
2237 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
2238 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
2239 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
2240 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
2241 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
2242 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
2243 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
2244 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
2245 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
2246 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
2247 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
2248 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
2249 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
2250 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
2251 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
2252 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
2253 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
2254 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
2255 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
2256 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
2257 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
2258 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
2259 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
2260 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
2261 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
2262 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
2263 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
2264 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
2265 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
2266 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
2267 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
2268 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")