1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
6 // Package interfaces contains generated bindings for API file interface.api.
14 api "git.fd.io/govpp.git/api"
15 ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types"
16 interface_types "git.fd.io/govpp.git/binapi/interface_types"
17 ip_types "git.fd.io/govpp.git/binapi/ip_types"
18 codec "git.fd.io/govpp.git/codec"
21 // This is a compile-time assertion to ensure that this generated file
22 // is compatible with the GoVPP api package it is being compiled against.
23 // A compilation error at this line likely means your copy of the
24 // GoVPP api package needs to be updated.
25 const _ = api.GoVppAPIPackageIsVersion2
30 VersionCrc = 0x58d4cf5a
33 // CollectDetailedInterfaceStats defines message 'collect_detailed_interface_stats'.
34 type CollectDetailedInterfaceStats struct {
35 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
36 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
39 func (m *CollectDetailedInterfaceStats) Reset() { *m = CollectDetailedInterfaceStats{} }
40 func (*CollectDetailedInterfaceStats) GetMessageName() string {
41 return "collect_detailed_interface_stats"
43 func (*CollectDetailedInterfaceStats) GetCrcString() string { return "5501adee" }
44 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
45 return api.RequestMessage
48 func (m *CollectDetailedInterfaceStats) Size() (size int) {
52 size += 4 // m.SwIfIndex
53 size += 1 // m.EnableDisable
56 func (m *CollectDetailedInterfaceStats) Marshal(b []byte) ([]byte, error) {
58 b = make([]byte, m.Size())
60 buf := codec.NewBuffer(b)
61 buf.EncodeUint32(uint32(m.SwIfIndex))
62 buf.EncodeBool(m.EnableDisable)
63 return buf.Bytes(), nil
65 func (m *CollectDetailedInterfaceStats) Unmarshal(b []byte) error {
66 buf := codec.NewBuffer(b)
67 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
68 m.EnableDisable = buf.DecodeBool()
72 // CollectDetailedInterfaceStatsReply defines message 'collect_detailed_interface_stats_reply'.
73 type CollectDetailedInterfaceStatsReply struct {
74 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
77 func (m *CollectDetailedInterfaceStatsReply) Reset() { *m = CollectDetailedInterfaceStatsReply{} }
78 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
79 return "collect_detailed_interface_stats_reply"
81 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string { return "e8d4e804" }
82 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
83 return api.ReplyMessage
86 func (m *CollectDetailedInterfaceStatsReply) Size() (size int) {
93 func (m *CollectDetailedInterfaceStatsReply) Marshal(b []byte) ([]byte, error) {
95 b = make([]byte, m.Size())
97 buf := codec.NewBuffer(b)
98 buf.EncodeInt32(m.Retval)
99 return buf.Bytes(), nil
101 func (m *CollectDetailedInterfaceStatsReply) Unmarshal(b []byte) error {
102 buf := codec.NewBuffer(b)
103 m.Retval = buf.DecodeInt32()
107 // CreateLoopback defines message 'create_loopback'.
108 type CreateLoopback struct {
109 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
112 func (m *CreateLoopback) Reset() { *m = CreateLoopback{} }
113 func (*CreateLoopback) GetMessageName() string { return "create_loopback" }
114 func (*CreateLoopback) GetCrcString() string { return "42bb5d22" }
115 func (*CreateLoopback) GetMessageType() api.MessageType {
116 return api.RequestMessage
119 func (m *CreateLoopback) Size() (size int) {
123 size += 1 * 6 // m.MacAddress
126 func (m *CreateLoopback) Marshal(b []byte) ([]byte, error) {
128 b = make([]byte, m.Size())
130 buf := codec.NewBuffer(b)
131 buf.EncodeBytes(m.MacAddress[:], 6)
132 return buf.Bytes(), nil
134 func (m *CreateLoopback) Unmarshal(b []byte) error {
135 buf := codec.NewBuffer(b)
136 copy(m.MacAddress[:], buf.DecodeBytes(6))
140 // CreateLoopbackInstance defines message 'create_loopback_instance'.
141 type CreateLoopbackInstance struct {
142 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
143 IsSpecified bool `binapi:"bool,name=is_specified" json:"is_specified,omitempty"`
144 UserInstance uint32 `binapi:"u32,name=user_instance" json:"user_instance,omitempty"`
147 func (m *CreateLoopbackInstance) Reset() { *m = CreateLoopbackInstance{} }
148 func (*CreateLoopbackInstance) GetMessageName() string { return "create_loopback_instance" }
149 func (*CreateLoopbackInstance) GetCrcString() string { return "d36a3ee2" }
150 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
151 return api.RequestMessage
154 func (m *CreateLoopbackInstance) Size() (size int) {
158 size += 1 * 6 // m.MacAddress
159 size += 1 // m.IsSpecified
160 size += 4 // m.UserInstance
163 func (m *CreateLoopbackInstance) Marshal(b []byte) ([]byte, error) {
165 b = make([]byte, m.Size())
167 buf := codec.NewBuffer(b)
168 buf.EncodeBytes(m.MacAddress[:], 6)
169 buf.EncodeBool(m.IsSpecified)
170 buf.EncodeUint32(m.UserInstance)
171 return buf.Bytes(), nil
173 func (m *CreateLoopbackInstance) Unmarshal(b []byte) error {
174 buf := codec.NewBuffer(b)
175 copy(m.MacAddress[:], buf.DecodeBytes(6))
176 m.IsSpecified = buf.DecodeBool()
177 m.UserInstance = buf.DecodeUint32()
181 // CreateLoopbackInstanceReply defines message 'create_loopback_instance_reply'.
182 type CreateLoopbackInstanceReply struct {
183 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
184 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
187 func (m *CreateLoopbackInstanceReply) Reset() { *m = CreateLoopbackInstanceReply{} }
188 func (*CreateLoopbackInstanceReply) GetMessageName() string { return "create_loopback_instance_reply" }
189 func (*CreateLoopbackInstanceReply) GetCrcString() string { return "5383d31f" }
190 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
191 return api.ReplyMessage
194 func (m *CreateLoopbackInstanceReply) Size() (size int) {
198 size += 4 // m.Retval
199 size += 4 // m.SwIfIndex
202 func (m *CreateLoopbackInstanceReply) Marshal(b []byte) ([]byte, error) {
204 b = make([]byte, m.Size())
206 buf := codec.NewBuffer(b)
207 buf.EncodeInt32(m.Retval)
208 buf.EncodeUint32(uint32(m.SwIfIndex))
209 return buf.Bytes(), nil
211 func (m *CreateLoopbackInstanceReply) Unmarshal(b []byte) error {
212 buf := codec.NewBuffer(b)
213 m.Retval = buf.DecodeInt32()
214 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
218 // CreateLoopbackReply defines message 'create_loopback_reply'.
219 type CreateLoopbackReply struct {
220 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
221 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
224 func (m *CreateLoopbackReply) Reset() { *m = CreateLoopbackReply{} }
225 func (*CreateLoopbackReply) GetMessageName() string { return "create_loopback_reply" }
226 func (*CreateLoopbackReply) GetCrcString() string { return "5383d31f" }
227 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
228 return api.ReplyMessage
231 func (m *CreateLoopbackReply) Size() (size int) {
235 size += 4 // m.Retval
236 size += 4 // m.SwIfIndex
239 func (m *CreateLoopbackReply) Marshal(b []byte) ([]byte, error) {
241 b = make([]byte, m.Size())
243 buf := codec.NewBuffer(b)
244 buf.EncodeInt32(m.Retval)
245 buf.EncodeUint32(uint32(m.SwIfIndex))
246 return buf.Bytes(), nil
248 func (m *CreateLoopbackReply) Unmarshal(b []byte) error {
249 buf := codec.NewBuffer(b)
250 m.Retval = buf.DecodeInt32()
251 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
255 // CreateSubif defines message 'create_subif'.
256 type CreateSubif struct {
257 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
258 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
259 SubIfFlags interface_types.SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
260 OuterVlanID uint16 `binapi:"u16,name=outer_vlan_id" json:"outer_vlan_id,omitempty"`
261 InnerVlanID uint16 `binapi:"u16,name=inner_vlan_id" json:"inner_vlan_id,omitempty"`
264 func (m *CreateSubif) Reset() { *m = CreateSubif{} }
265 func (*CreateSubif) GetMessageName() string { return "create_subif" }
266 func (*CreateSubif) GetCrcString() string { return "cb371063" }
267 func (*CreateSubif) GetMessageType() api.MessageType {
268 return api.RequestMessage
271 func (m *CreateSubif) Size() (size int) {
275 size += 4 // m.SwIfIndex
277 size += 4 // m.SubIfFlags
278 size += 2 // m.OuterVlanID
279 size += 2 // m.InnerVlanID
282 func (m *CreateSubif) Marshal(b []byte) ([]byte, error) {
284 b = make([]byte, m.Size())
286 buf := codec.NewBuffer(b)
287 buf.EncodeUint32(uint32(m.SwIfIndex))
288 buf.EncodeUint32(m.SubID)
289 buf.EncodeUint32(uint32(m.SubIfFlags))
290 buf.EncodeUint16(m.OuterVlanID)
291 buf.EncodeUint16(m.InnerVlanID)
292 return buf.Bytes(), nil
294 func (m *CreateSubif) Unmarshal(b []byte) error {
295 buf := codec.NewBuffer(b)
296 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
297 m.SubID = buf.DecodeUint32()
298 m.SubIfFlags = interface_types.SubIfFlags(buf.DecodeUint32())
299 m.OuterVlanID = buf.DecodeUint16()
300 m.InnerVlanID = buf.DecodeUint16()
304 // CreateSubifReply defines message 'create_subif_reply'.
305 type CreateSubifReply struct {
306 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
307 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
310 func (m *CreateSubifReply) Reset() { *m = CreateSubifReply{} }
311 func (*CreateSubifReply) GetMessageName() string { return "create_subif_reply" }
312 func (*CreateSubifReply) GetCrcString() string { return "5383d31f" }
313 func (*CreateSubifReply) GetMessageType() api.MessageType {
314 return api.ReplyMessage
317 func (m *CreateSubifReply) Size() (size int) {
321 size += 4 // m.Retval
322 size += 4 // m.SwIfIndex
325 func (m *CreateSubifReply) Marshal(b []byte) ([]byte, error) {
327 b = make([]byte, m.Size())
329 buf := codec.NewBuffer(b)
330 buf.EncodeInt32(m.Retval)
331 buf.EncodeUint32(uint32(m.SwIfIndex))
332 return buf.Bytes(), nil
334 func (m *CreateSubifReply) Unmarshal(b []byte) error {
335 buf := codec.NewBuffer(b)
336 m.Retval = buf.DecodeInt32()
337 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
341 // CreateVlanSubif defines message 'create_vlan_subif'.
342 type CreateVlanSubif struct {
343 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
344 VlanID uint32 `binapi:"u32,name=vlan_id" json:"vlan_id,omitempty"`
347 func (m *CreateVlanSubif) Reset() { *m = CreateVlanSubif{} }
348 func (*CreateVlanSubif) GetMessageName() string { return "create_vlan_subif" }
349 func (*CreateVlanSubif) GetCrcString() string { return "af34ac8b" }
350 func (*CreateVlanSubif) GetMessageType() api.MessageType {
351 return api.RequestMessage
354 func (m *CreateVlanSubif) Size() (size int) {
358 size += 4 // m.SwIfIndex
359 size += 4 // m.VlanID
362 func (m *CreateVlanSubif) Marshal(b []byte) ([]byte, error) {
364 b = make([]byte, m.Size())
366 buf := codec.NewBuffer(b)
367 buf.EncodeUint32(uint32(m.SwIfIndex))
368 buf.EncodeUint32(m.VlanID)
369 return buf.Bytes(), nil
371 func (m *CreateVlanSubif) Unmarshal(b []byte) error {
372 buf := codec.NewBuffer(b)
373 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
374 m.VlanID = buf.DecodeUint32()
378 // CreateVlanSubifReply defines message 'create_vlan_subif_reply'.
379 type CreateVlanSubifReply struct {
380 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
381 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
384 func (m *CreateVlanSubifReply) Reset() { *m = CreateVlanSubifReply{} }
385 func (*CreateVlanSubifReply) GetMessageName() string { return "create_vlan_subif_reply" }
386 func (*CreateVlanSubifReply) GetCrcString() string { return "5383d31f" }
387 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
388 return api.ReplyMessage
391 func (m *CreateVlanSubifReply) Size() (size int) {
395 size += 4 // m.Retval
396 size += 4 // m.SwIfIndex
399 func (m *CreateVlanSubifReply) Marshal(b []byte) ([]byte, error) {
401 b = make([]byte, m.Size())
403 buf := codec.NewBuffer(b)
404 buf.EncodeInt32(m.Retval)
405 buf.EncodeUint32(uint32(m.SwIfIndex))
406 return buf.Bytes(), nil
408 func (m *CreateVlanSubifReply) Unmarshal(b []byte) error {
409 buf := codec.NewBuffer(b)
410 m.Retval = buf.DecodeInt32()
411 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
415 // DeleteLoopback defines message 'delete_loopback'.
416 type DeleteLoopback struct {
417 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
420 func (m *DeleteLoopback) Reset() { *m = DeleteLoopback{} }
421 func (*DeleteLoopback) GetMessageName() string { return "delete_loopback" }
422 func (*DeleteLoopback) GetCrcString() string { return "f9e6675e" }
423 func (*DeleteLoopback) GetMessageType() api.MessageType {
424 return api.RequestMessage
427 func (m *DeleteLoopback) Size() (size int) {
431 size += 4 // m.SwIfIndex
434 func (m *DeleteLoopback) Marshal(b []byte) ([]byte, error) {
436 b = make([]byte, m.Size())
438 buf := codec.NewBuffer(b)
439 buf.EncodeUint32(uint32(m.SwIfIndex))
440 return buf.Bytes(), nil
442 func (m *DeleteLoopback) Unmarshal(b []byte) error {
443 buf := codec.NewBuffer(b)
444 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
448 // DeleteLoopbackReply defines message 'delete_loopback_reply'.
449 type DeleteLoopbackReply struct {
450 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
453 func (m *DeleteLoopbackReply) Reset() { *m = DeleteLoopbackReply{} }
454 func (*DeleteLoopbackReply) GetMessageName() string { return "delete_loopback_reply" }
455 func (*DeleteLoopbackReply) GetCrcString() string { return "e8d4e804" }
456 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
457 return api.ReplyMessage
460 func (m *DeleteLoopbackReply) Size() (size int) {
464 size += 4 // m.Retval
467 func (m *DeleteLoopbackReply) Marshal(b []byte) ([]byte, error) {
469 b = make([]byte, m.Size())
471 buf := codec.NewBuffer(b)
472 buf.EncodeInt32(m.Retval)
473 return buf.Bytes(), nil
475 func (m *DeleteLoopbackReply) Unmarshal(b []byte) error {
476 buf := codec.NewBuffer(b)
477 m.Retval = buf.DecodeInt32()
481 // DeleteSubif defines message 'delete_subif'.
482 type DeleteSubif struct {
483 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
486 func (m *DeleteSubif) Reset() { *m = DeleteSubif{} }
487 func (*DeleteSubif) GetMessageName() string { return "delete_subif" }
488 func (*DeleteSubif) GetCrcString() string { return "f9e6675e" }
489 func (*DeleteSubif) GetMessageType() api.MessageType {
490 return api.RequestMessage
493 func (m *DeleteSubif) Size() (size int) {
497 size += 4 // m.SwIfIndex
500 func (m *DeleteSubif) Marshal(b []byte) ([]byte, error) {
502 b = make([]byte, m.Size())
504 buf := codec.NewBuffer(b)
505 buf.EncodeUint32(uint32(m.SwIfIndex))
506 return buf.Bytes(), nil
508 func (m *DeleteSubif) Unmarshal(b []byte) error {
509 buf := codec.NewBuffer(b)
510 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
514 // DeleteSubifReply defines message 'delete_subif_reply'.
515 type DeleteSubifReply struct {
516 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
519 func (m *DeleteSubifReply) Reset() { *m = DeleteSubifReply{} }
520 func (*DeleteSubifReply) GetMessageName() string { return "delete_subif_reply" }
521 func (*DeleteSubifReply) GetCrcString() string { return "e8d4e804" }
522 func (*DeleteSubifReply) GetMessageType() api.MessageType {
523 return api.ReplyMessage
526 func (m *DeleteSubifReply) Size() (size int) {
530 size += 4 // m.Retval
533 func (m *DeleteSubifReply) Marshal(b []byte) ([]byte, error) {
535 b = make([]byte, m.Size())
537 buf := codec.NewBuffer(b)
538 buf.EncodeInt32(m.Retval)
539 return buf.Bytes(), nil
541 func (m *DeleteSubifReply) Unmarshal(b []byte) error {
542 buf := codec.NewBuffer(b)
543 m.Retval = buf.DecodeInt32()
547 // HwInterfaceSetMtu defines message 'hw_interface_set_mtu'.
548 type HwInterfaceSetMtu struct {
549 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
550 Mtu uint16 `binapi:"u16,name=mtu" json:"mtu,omitempty"`
553 func (m *HwInterfaceSetMtu) Reset() { *m = HwInterfaceSetMtu{} }
554 func (*HwInterfaceSetMtu) GetMessageName() string { return "hw_interface_set_mtu" }
555 func (*HwInterfaceSetMtu) GetCrcString() string { return "e6746899" }
556 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
557 return api.RequestMessage
560 func (m *HwInterfaceSetMtu) Size() (size int) {
564 size += 4 // m.SwIfIndex
568 func (m *HwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
570 b = make([]byte, m.Size())
572 buf := codec.NewBuffer(b)
573 buf.EncodeUint32(uint32(m.SwIfIndex))
574 buf.EncodeUint16(m.Mtu)
575 return buf.Bytes(), nil
577 func (m *HwInterfaceSetMtu) Unmarshal(b []byte) error {
578 buf := codec.NewBuffer(b)
579 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
580 m.Mtu = buf.DecodeUint16()
584 // HwInterfaceSetMtuReply defines message 'hw_interface_set_mtu_reply'.
585 type HwInterfaceSetMtuReply struct {
586 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
589 func (m *HwInterfaceSetMtuReply) Reset() { *m = HwInterfaceSetMtuReply{} }
590 func (*HwInterfaceSetMtuReply) GetMessageName() string { return "hw_interface_set_mtu_reply" }
591 func (*HwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
592 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
593 return api.ReplyMessage
596 func (m *HwInterfaceSetMtuReply) Size() (size int) {
600 size += 4 // m.Retval
603 func (m *HwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
605 b = make([]byte, m.Size())
607 buf := codec.NewBuffer(b)
608 buf.EncodeInt32(m.Retval)
609 return buf.Bytes(), nil
611 func (m *HwInterfaceSetMtuReply) Unmarshal(b []byte) error {
612 buf := codec.NewBuffer(b)
613 m.Retval = buf.DecodeInt32()
617 // InterfaceNameRenumber defines message 'interface_name_renumber'.
618 type InterfaceNameRenumber struct {
619 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
620 NewShowDevInstance uint32 `binapi:"u32,name=new_show_dev_instance" json:"new_show_dev_instance,omitempty"`
623 func (m *InterfaceNameRenumber) Reset() { *m = InterfaceNameRenumber{} }
624 func (*InterfaceNameRenumber) GetMessageName() string { return "interface_name_renumber" }
625 func (*InterfaceNameRenumber) GetCrcString() string { return "2b8858b8" }
626 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
627 return api.RequestMessage
630 func (m *InterfaceNameRenumber) Size() (size int) {
634 size += 4 // m.SwIfIndex
635 size += 4 // m.NewShowDevInstance
638 func (m *InterfaceNameRenumber) Marshal(b []byte) ([]byte, error) {
640 b = make([]byte, m.Size())
642 buf := codec.NewBuffer(b)
643 buf.EncodeUint32(uint32(m.SwIfIndex))
644 buf.EncodeUint32(m.NewShowDevInstance)
645 return buf.Bytes(), nil
647 func (m *InterfaceNameRenumber) Unmarshal(b []byte) error {
648 buf := codec.NewBuffer(b)
649 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
650 m.NewShowDevInstance = buf.DecodeUint32()
654 // InterfaceNameRenumberReply defines message 'interface_name_renumber_reply'.
655 type InterfaceNameRenumberReply struct {
656 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
659 func (m *InterfaceNameRenumberReply) Reset() { *m = InterfaceNameRenumberReply{} }
660 func (*InterfaceNameRenumberReply) GetMessageName() string { return "interface_name_renumber_reply" }
661 func (*InterfaceNameRenumberReply) GetCrcString() string { return "e8d4e804" }
662 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
663 return api.ReplyMessage
666 func (m *InterfaceNameRenumberReply) Size() (size int) {
670 size += 4 // m.Retval
673 func (m *InterfaceNameRenumberReply) Marshal(b []byte) ([]byte, error) {
675 b = make([]byte, m.Size())
677 buf := codec.NewBuffer(b)
678 buf.EncodeInt32(m.Retval)
679 return buf.Bytes(), nil
681 func (m *InterfaceNameRenumberReply) Unmarshal(b []byte) error {
682 buf := codec.NewBuffer(b)
683 m.Retval = buf.DecodeInt32()
687 // SwInterfaceAddDelAddress defines message 'sw_interface_add_del_address'.
688 type SwInterfaceAddDelAddress struct {
689 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
690 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
691 DelAll bool `binapi:"bool,name=del_all" json:"del_all,omitempty"`
692 Prefix ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=prefix" json:"prefix,omitempty"`
695 func (m *SwInterfaceAddDelAddress) Reset() { *m = SwInterfaceAddDelAddress{} }
696 func (*SwInterfaceAddDelAddress) GetMessageName() string { return "sw_interface_add_del_address" }
697 func (*SwInterfaceAddDelAddress) GetCrcString() string { return "5803d5c4" }
698 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
699 return api.RequestMessage
702 func (m *SwInterfaceAddDelAddress) Size() (size int) {
706 size += 4 // m.SwIfIndex
708 size += 1 // m.DelAll
709 size += 1 // m.Prefix.Address.Af
710 size += 1 * 16 // m.Prefix.Address.Un
711 size += 1 // m.Prefix.Len
714 func (m *SwInterfaceAddDelAddress) Marshal(b []byte) ([]byte, error) {
716 b = make([]byte, m.Size())
718 buf := codec.NewBuffer(b)
719 buf.EncodeUint32(uint32(m.SwIfIndex))
720 buf.EncodeBool(m.IsAdd)
721 buf.EncodeBool(m.DelAll)
722 buf.EncodeUint8(uint8(m.Prefix.Address.Af))
723 buf.EncodeBytes(m.Prefix.Address.Un.XXX_UnionData[:], 16)
724 buf.EncodeUint8(m.Prefix.Len)
725 return buf.Bytes(), nil
727 func (m *SwInterfaceAddDelAddress) Unmarshal(b []byte) error {
728 buf := codec.NewBuffer(b)
729 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
730 m.IsAdd = buf.DecodeBool()
731 m.DelAll = buf.DecodeBool()
732 m.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
733 copy(m.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
734 m.Prefix.Len = buf.DecodeUint8()
738 // SwInterfaceAddDelAddressReply defines message 'sw_interface_add_del_address_reply'.
739 type SwInterfaceAddDelAddressReply struct {
740 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
743 func (m *SwInterfaceAddDelAddressReply) Reset() { *m = SwInterfaceAddDelAddressReply{} }
744 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
745 return "sw_interface_add_del_address_reply"
747 func (*SwInterfaceAddDelAddressReply) GetCrcString() string { return "e8d4e804" }
748 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
749 return api.ReplyMessage
752 func (m *SwInterfaceAddDelAddressReply) Size() (size int) {
756 size += 4 // m.Retval
759 func (m *SwInterfaceAddDelAddressReply) Marshal(b []byte) ([]byte, error) {
761 b = make([]byte, m.Size())
763 buf := codec.NewBuffer(b)
764 buf.EncodeInt32(m.Retval)
765 return buf.Bytes(), nil
767 func (m *SwInterfaceAddDelAddressReply) Unmarshal(b []byte) error {
768 buf := codec.NewBuffer(b)
769 m.Retval = buf.DecodeInt32()
773 // SwInterfaceAddDelMacAddress defines message 'sw_interface_add_del_mac_address'.
774 type SwInterfaceAddDelMacAddress struct {
775 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
776 Addr ethernet_types.MacAddress `binapi:"mac_address,name=addr" json:"addr,omitempty"`
777 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
780 func (m *SwInterfaceAddDelMacAddress) Reset() { *m = SwInterfaceAddDelMacAddress{} }
781 func (*SwInterfaceAddDelMacAddress) GetMessageName() string {
782 return "sw_interface_add_del_mac_address"
784 func (*SwInterfaceAddDelMacAddress) GetCrcString() string { return "638bb9f4" }
785 func (*SwInterfaceAddDelMacAddress) GetMessageType() api.MessageType {
786 return api.RequestMessage
789 func (m *SwInterfaceAddDelMacAddress) Size() (size int) {
793 size += 4 // m.SwIfIndex
794 size += 1 * 6 // m.Addr
798 func (m *SwInterfaceAddDelMacAddress) Marshal(b []byte) ([]byte, error) {
800 b = make([]byte, m.Size())
802 buf := codec.NewBuffer(b)
803 buf.EncodeUint32(m.SwIfIndex)
804 buf.EncodeBytes(m.Addr[:], 6)
805 buf.EncodeUint8(m.IsAdd)
806 return buf.Bytes(), nil
808 func (m *SwInterfaceAddDelMacAddress) Unmarshal(b []byte) error {
809 buf := codec.NewBuffer(b)
810 m.SwIfIndex = buf.DecodeUint32()
811 copy(m.Addr[:], buf.DecodeBytes(6))
812 m.IsAdd = buf.DecodeUint8()
816 // SwInterfaceAddDelMacAddressReply defines message 'sw_interface_add_del_mac_address_reply'.
817 type SwInterfaceAddDelMacAddressReply struct {
818 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
821 func (m *SwInterfaceAddDelMacAddressReply) Reset() { *m = SwInterfaceAddDelMacAddressReply{} }
822 func (*SwInterfaceAddDelMacAddressReply) GetMessageName() string {
823 return "sw_interface_add_del_mac_address_reply"
825 func (*SwInterfaceAddDelMacAddressReply) GetCrcString() string { return "e8d4e804" }
826 func (*SwInterfaceAddDelMacAddressReply) GetMessageType() api.MessageType {
827 return api.ReplyMessage
830 func (m *SwInterfaceAddDelMacAddressReply) Size() (size int) {
834 size += 4 // m.Retval
837 func (m *SwInterfaceAddDelMacAddressReply) Marshal(b []byte) ([]byte, error) {
839 b = make([]byte, m.Size())
841 buf := codec.NewBuffer(b)
842 buf.EncodeInt32(m.Retval)
843 return buf.Bytes(), nil
845 func (m *SwInterfaceAddDelMacAddressReply) Unmarshal(b []byte) error {
846 buf := codec.NewBuffer(b)
847 m.Retval = buf.DecodeInt32()
851 // SwInterfaceAddressReplaceBegin defines message 'sw_interface_address_replace_begin'.
852 type SwInterfaceAddressReplaceBegin struct{}
854 func (m *SwInterfaceAddressReplaceBegin) Reset() { *m = SwInterfaceAddressReplaceBegin{} }
855 func (*SwInterfaceAddressReplaceBegin) GetMessageName() string {
856 return "sw_interface_address_replace_begin"
858 func (*SwInterfaceAddressReplaceBegin) GetCrcString() string { return "51077d14" }
859 func (*SwInterfaceAddressReplaceBegin) GetMessageType() api.MessageType {
860 return api.RequestMessage
863 func (m *SwInterfaceAddressReplaceBegin) Size() (size int) {
869 func (m *SwInterfaceAddressReplaceBegin) Marshal(b []byte) ([]byte, error) {
871 b = make([]byte, m.Size())
873 buf := codec.NewBuffer(b)
874 return buf.Bytes(), nil
876 func (m *SwInterfaceAddressReplaceBegin) Unmarshal(b []byte) error {
880 // SwInterfaceAddressReplaceBeginReply defines message 'sw_interface_address_replace_begin_reply'.
881 type SwInterfaceAddressReplaceBeginReply struct {
882 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
885 func (m *SwInterfaceAddressReplaceBeginReply) Reset() { *m = SwInterfaceAddressReplaceBeginReply{} }
886 func (*SwInterfaceAddressReplaceBeginReply) GetMessageName() string {
887 return "sw_interface_address_replace_begin_reply"
889 func (*SwInterfaceAddressReplaceBeginReply) GetCrcString() string { return "e8d4e804" }
890 func (*SwInterfaceAddressReplaceBeginReply) GetMessageType() api.MessageType {
891 return api.ReplyMessage
894 func (m *SwInterfaceAddressReplaceBeginReply) Size() (size int) {
898 size += 4 // m.Retval
901 func (m *SwInterfaceAddressReplaceBeginReply) Marshal(b []byte) ([]byte, error) {
903 b = make([]byte, m.Size())
905 buf := codec.NewBuffer(b)
906 buf.EncodeInt32(m.Retval)
907 return buf.Bytes(), nil
909 func (m *SwInterfaceAddressReplaceBeginReply) Unmarshal(b []byte) error {
910 buf := codec.NewBuffer(b)
911 m.Retval = buf.DecodeInt32()
915 // SwInterfaceAddressReplaceEnd defines message 'sw_interface_address_replace_end'.
916 type SwInterfaceAddressReplaceEnd struct{}
918 func (m *SwInterfaceAddressReplaceEnd) Reset() { *m = SwInterfaceAddressReplaceEnd{} }
919 func (*SwInterfaceAddressReplaceEnd) GetMessageName() string {
920 return "sw_interface_address_replace_end"
922 func (*SwInterfaceAddressReplaceEnd) GetCrcString() string { return "51077d14" }
923 func (*SwInterfaceAddressReplaceEnd) GetMessageType() api.MessageType {
924 return api.RequestMessage
927 func (m *SwInterfaceAddressReplaceEnd) Size() (size int) {
933 func (m *SwInterfaceAddressReplaceEnd) Marshal(b []byte) ([]byte, error) {
935 b = make([]byte, m.Size())
937 buf := codec.NewBuffer(b)
938 return buf.Bytes(), nil
940 func (m *SwInterfaceAddressReplaceEnd) Unmarshal(b []byte) error {
944 // SwInterfaceAddressReplaceEndReply defines message 'sw_interface_address_replace_end_reply'.
945 type SwInterfaceAddressReplaceEndReply struct {
946 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
949 func (m *SwInterfaceAddressReplaceEndReply) Reset() { *m = SwInterfaceAddressReplaceEndReply{} }
950 func (*SwInterfaceAddressReplaceEndReply) GetMessageName() string {
951 return "sw_interface_address_replace_end_reply"
953 func (*SwInterfaceAddressReplaceEndReply) GetCrcString() string { return "e8d4e804" }
954 func (*SwInterfaceAddressReplaceEndReply) GetMessageType() api.MessageType {
955 return api.ReplyMessage
958 func (m *SwInterfaceAddressReplaceEndReply) Size() (size int) {
962 size += 4 // m.Retval
965 func (m *SwInterfaceAddressReplaceEndReply) Marshal(b []byte) ([]byte, error) {
967 b = make([]byte, m.Size())
969 buf := codec.NewBuffer(b)
970 buf.EncodeInt32(m.Retval)
971 return buf.Bytes(), nil
973 func (m *SwInterfaceAddressReplaceEndReply) Unmarshal(b []byte) error {
974 buf := codec.NewBuffer(b)
975 m.Retval = buf.DecodeInt32()
979 // SwInterfaceClearStats defines message 'sw_interface_clear_stats'.
980 type SwInterfaceClearStats struct {
981 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
984 func (m *SwInterfaceClearStats) Reset() { *m = SwInterfaceClearStats{} }
985 func (*SwInterfaceClearStats) GetMessageName() string { return "sw_interface_clear_stats" }
986 func (*SwInterfaceClearStats) GetCrcString() string { return "f9e6675e" }
987 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
988 return api.RequestMessage
991 func (m *SwInterfaceClearStats) Size() (size int) {
995 size += 4 // m.SwIfIndex
998 func (m *SwInterfaceClearStats) Marshal(b []byte) ([]byte, error) {
1000 b = make([]byte, m.Size())
1002 buf := codec.NewBuffer(b)
1003 buf.EncodeUint32(uint32(m.SwIfIndex))
1004 return buf.Bytes(), nil
1006 func (m *SwInterfaceClearStats) Unmarshal(b []byte) error {
1007 buf := codec.NewBuffer(b)
1008 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1012 // SwInterfaceClearStatsReply defines message 'sw_interface_clear_stats_reply'.
1013 type SwInterfaceClearStatsReply struct {
1014 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1017 func (m *SwInterfaceClearStatsReply) Reset() { *m = SwInterfaceClearStatsReply{} }
1018 func (*SwInterfaceClearStatsReply) GetMessageName() string { return "sw_interface_clear_stats_reply" }
1019 func (*SwInterfaceClearStatsReply) GetCrcString() string { return "e8d4e804" }
1020 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1021 return api.ReplyMessage
1024 func (m *SwInterfaceClearStatsReply) Size() (size int) {
1028 size += 4 // m.Retval
1031 func (m *SwInterfaceClearStatsReply) Marshal(b []byte) ([]byte, error) {
1033 b = make([]byte, m.Size())
1035 buf := codec.NewBuffer(b)
1036 buf.EncodeInt32(m.Retval)
1037 return buf.Bytes(), nil
1039 func (m *SwInterfaceClearStatsReply) Unmarshal(b []byte) error {
1040 buf := codec.NewBuffer(b)
1041 m.Retval = buf.DecodeInt32()
1045 // SwInterfaceDetails defines message 'sw_interface_details'.
1046 type SwInterfaceDetails struct {
1047 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1048 SupSwIfIndex uint32 `binapi:"u32,name=sup_sw_if_index" json:"sup_sw_if_index,omitempty"`
1049 L2Address ethernet_types.MacAddress `binapi:"mac_address,name=l2_address" json:"l2_address,omitempty"`
1050 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1051 Type interface_types.IfType `binapi:"if_type,name=type" json:"type,omitempty"`
1052 LinkDuplex interface_types.LinkDuplex `binapi:"link_duplex,name=link_duplex" json:"link_duplex,omitempty"`
1053 LinkSpeed uint32 `binapi:"u32,name=link_speed" json:"link_speed,omitempty"`
1054 LinkMtu uint16 `binapi:"u16,name=link_mtu" json:"link_mtu,omitempty"`
1055 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty"`
1056 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
1057 SubNumberOfTags uint8 `binapi:"u8,name=sub_number_of_tags" json:"sub_number_of_tags,omitempty"`
1058 SubOuterVlanID uint16 `binapi:"u16,name=sub_outer_vlan_id" json:"sub_outer_vlan_id,omitempty"`
1059 SubInnerVlanID uint16 `binapi:"u16,name=sub_inner_vlan_id" json:"sub_inner_vlan_id,omitempty"`
1060 SubIfFlags interface_types.SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
1061 VtrOp uint32 `binapi:"u32,name=vtr_op" json:"vtr_op,omitempty"`
1062 VtrPushDot1q uint32 `binapi:"u32,name=vtr_push_dot1q" json:"vtr_push_dot1q,omitempty"`
1063 VtrTag1 uint32 `binapi:"u32,name=vtr_tag1" json:"vtr_tag1,omitempty"`
1064 VtrTag2 uint32 `binapi:"u32,name=vtr_tag2" json:"vtr_tag2,omitempty"`
1065 OuterTag uint16 `binapi:"u16,name=outer_tag" json:"outer_tag,omitempty"`
1066 BDmac ethernet_types.MacAddress `binapi:"mac_address,name=b_dmac" json:"b_dmac,omitempty"`
1067 BSmac ethernet_types.MacAddress `binapi:"mac_address,name=b_smac" json:"b_smac,omitempty"`
1068 BVlanid uint16 `binapi:"u16,name=b_vlanid" json:"b_vlanid,omitempty"`
1069 ISid uint32 `binapi:"u32,name=i_sid" json:"i_sid,omitempty"`
1070 InterfaceName string `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"`
1071 InterfaceDevType string `binapi:"string[64],name=interface_dev_type" json:"interface_dev_type,omitempty"`
1072 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
1075 func (m *SwInterfaceDetails) Reset() { *m = SwInterfaceDetails{} }
1076 func (*SwInterfaceDetails) GetMessageName() string { return "sw_interface_details" }
1077 func (*SwInterfaceDetails) GetCrcString() string { return "17b69fa2" }
1078 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
1079 return api.ReplyMessage
1082 func (m *SwInterfaceDetails) Size() (size int) {
1086 size += 4 // m.SwIfIndex
1087 size += 4 // m.SupSwIfIndex
1088 size += 1 * 6 // m.L2Address
1089 size += 4 // m.Flags
1091 size += 4 // m.LinkDuplex
1092 size += 4 // m.LinkSpeed
1093 size += 2 // m.LinkMtu
1094 size += 4 * 4 // m.Mtu
1095 size += 4 // m.SubID
1096 size += 1 // m.SubNumberOfTags
1097 size += 2 // m.SubOuterVlanID
1098 size += 2 // m.SubInnerVlanID
1099 size += 4 // m.SubIfFlags
1100 size += 4 // m.VtrOp
1101 size += 4 // m.VtrPushDot1q
1102 size += 4 // m.VtrTag1
1103 size += 4 // m.VtrTag2
1104 size += 2 // m.OuterTag
1105 size += 1 * 6 // m.BDmac
1106 size += 1 * 6 // m.BSmac
1107 size += 2 // m.BVlanid
1109 size += 64 // m.InterfaceName
1110 size += 64 // m.InterfaceDevType
1114 func (m *SwInterfaceDetails) Marshal(b []byte) ([]byte, error) {
1116 b = make([]byte, m.Size())
1118 buf := codec.NewBuffer(b)
1119 buf.EncodeUint32(uint32(m.SwIfIndex))
1120 buf.EncodeUint32(m.SupSwIfIndex)
1121 buf.EncodeBytes(m.L2Address[:], 6)
1122 buf.EncodeUint32(uint32(m.Flags))
1123 buf.EncodeUint32(uint32(m.Type))
1124 buf.EncodeUint32(uint32(m.LinkDuplex))
1125 buf.EncodeUint32(m.LinkSpeed)
1126 buf.EncodeUint16(m.LinkMtu)
1127 for i := 0; i < 4; i++ {
1130 x = uint32(m.Mtu[i])
1134 buf.EncodeUint32(m.SubID)
1135 buf.EncodeUint8(m.SubNumberOfTags)
1136 buf.EncodeUint16(m.SubOuterVlanID)
1137 buf.EncodeUint16(m.SubInnerVlanID)
1138 buf.EncodeUint32(uint32(m.SubIfFlags))
1139 buf.EncodeUint32(m.VtrOp)
1140 buf.EncodeUint32(m.VtrPushDot1q)
1141 buf.EncodeUint32(m.VtrTag1)
1142 buf.EncodeUint32(m.VtrTag2)
1143 buf.EncodeUint16(m.OuterTag)
1144 buf.EncodeBytes(m.BDmac[:], 6)
1145 buf.EncodeBytes(m.BSmac[:], 6)
1146 buf.EncodeUint16(m.BVlanid)
1147 buf.EncodeUint32(m.ISid)
1148 buf.EncodeString(m.InterfaceName, 64)
1149 buf.EncodeString(m.InterfaceDevType, 64)
1150 buf.EncodeString(m.Tag, 64)
1151 return buf.Bytes(), nil
1153 func (m *SwInterfaceDetails) Unmarshal(b []byte) error {
1154 buf := codec.NewBuffer(b)
1155 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1156 m.SupSwIfIndex = buf.DecodeUint32()
1157 copy(m.L2Address[:], buf.DecodeBytes(6))
1158 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1159 m.Type = interface_types.IfType(buf.DecodeUint32())
1160 m.LinkDuplex = interface_types.LinkDuplex(buf.DecodeUint32())
1161 m.LinkSpeed = buf.DecodeUint32()
1162 m.LinkMtu = buf.DecodeUint16()
1163 m.Mtu = make([]uint32, 4)
1164 for i := 0; i < len(m.Mtu); i++ {
1165 m.Mtu[i] = buf.DecodeUint32()
1167 m.SubID = buf.DecodeUint32()
1168 m.SubNumberOfTags = buf.DecodeUint8()
1169 m.SubOuterVlanID = buf.DecodeUint16()
1170 m.SubInnerVlanID = buf.DecodeUint16()
1171 m.SubIfFlags = interface_types.SubIfFlags(buf.DecodeUint32())
1172 m.VtrOp = buf.DecodeUint32()
1173 m.VtrPushDot1q = buf.DecodeUint32()
1174 m.VtrTag1 = buf.DecodeUint32()
1175 m.VtrTag2 = buf.DecodeUint32()
1176 m.OuterTag = buf.DecodeUint16()
1177 copy(m.BDmac[:], buf.DecodeBytes(6))
1178 copy(m.BSmac[:], buf.DecodeBytes(6))
1179 m.BVlanid = buf.DecodeUint16()
1180 m.ISid = buf.DecodeUint32()
1181 m.InterfaceName = buf.DecodeString(64)
1182 m.InterfaceDevType = buf.DecodeString(64)
1183 m.Tag = buf.DecodeString(64)
1187 // SwInterfaceDump defines message 'sw_interface_dump'.
1188 type SwInterfaceDump struct {
1189 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
1190 NameFilterValid bool `binapi:"bool,name=name_filter_valid" json:"name_filter_valid,omitempty"`
1191 NameFilter string `binapi:"string[],name=name_filter" json:"name_filter,omitempty"`
1194 func (m *SwInterfaceDump) Reset() { *m = SwInterfaceDump{} }
1195 func (*SwInterfaceDump) GetMessageName() string { return "sw_interface_dump" }
1196 func (*SwInterfaceDump) GetCrcString() string { return "aa610c27" }
1197 func (*SwInterfaceDump) GetMessageType() api.MessageType {
1198 return api.RequestMessage
1201 func (m *SwInterfaceDump) Size() (size int) {
1205 size += 4 // m.SwIfIndex
1206 size += 1 // m.NameFilterValid
1207 size += 4 + len(m.NameFilter) // m.NameFilter
1210 func (m *SwInterfaceDump) Marshal(b []byte) ([]byte, error) {
1212 b = make([]byte, m.Size())
1214 buf := codec.NewBuffer(b)
1215 buf.EncodeUint32(uint32(m.SwIfIndex))
1216 buf.EncodeBool(m.NameFilterValid)
1217 buf.EncodeString(m.NameFilter, 0)
1218 return buf.Bytes(), nil
1220 func (m *SwInterfaceDump) Unmarshal(b []byte) error {
1221 buf := codec.NewBuffer(b)
1222 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1223 m.NameFilterValid = buf.DecodeBool()
1224 m.NameFilter = buf.DecodeString(0)
1228 // SwInterfaceEvent defines message 'sw_interface_event'.
1229 type SwInterfaceEvent struct {
1230 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
1231 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1232 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1233 Deleted bool `binapi:"bool,name=deleted" json:"deleted,omitempty"`
1236 func (m *SwInterfaceEvent) Reset() { *m = SwInterfaceEvent{} }
1237 func (*SwInterfaceEvent) GetMessageName() string { return "sw_interface_event" }
1238 func (*SwInterfaceEvent) GetCrcString() string { return "f709f78d" }
1239 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
1240 return api.EventMessage
1243 func (m *SwInterfaceEvent) Size() (size int) {
1248 size += 4 // m.SwIfIndex
1249 size += 4 // m.Flags
1250 size += 1 // m.Deleted
1253 func (m *SwInterfaceEvent) Marshal(b []byte) ([]byte, error) {
1255 b = make([]byte, m.Size())
1257 buf := codec.NewBuffer(b)
1258 buf.EncodeUint32(m.PID)
1259 buf.EncodeUint32(uint32(m.SwIfIndex))
1260 buf.EncodeUint32(uint32(m.Flags))
1261 buf.EncodeBool(m.Deleted)
1262 return buf.Bytes(), nil
1264 func (m *SwInterfaceEvent) Unmarshal(b []byte) error {
1265 buf := codec.NewBuffer(b)
1266 m.PID = buf.DecodeUint32()
1267 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1268 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1269 m.Deleted = buf.DecodeBool()
1273 // SwInterfaceGetMacAddress defines message 'sw_interface_get_mac_address'.
1274 type SwInterfaceGetMacAddress struct {
1275 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1278 func (m *SwInterfaceGetMacAddress) Reset() { *m = SwInterfaceGetMacAddress{} }
1279 func (*SwInterfaceGetMacAddress) GetMessageName() string { return "sw_interface_get_mac_address" }
1280 func (*SwInterfaceGetMacAddress) GetCrcString() string { return "f9e6675e" }
1281 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1282 return api.RequestMessage
1285 func (m *SwInterfaceGetMacAddress) Size() (size int) {
1289 size += 4 // m.SwIfIndex
1292 func (m *SwInterfaceGetMacAddress) Marshal(b []byte) ([]byte, error) {
1294 b = make([]byte, m.Size())
1296 buf := codec.NewBuffer(b)
1297 buf.EncodeUint32(uint32(m.SwIfIndex))
1298 return buf.Bytes(), nil
1300 func (m *SwInterfaceGetMacAddress) Unmarshal(b []byte) error {
1301 buf := codec.NewBuffer(b)
1302 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1306 // SwInterfaceGetMacAddressReply defines message 'sw_interface_get_mac_address_reply'.
1307 type SwInterfaceGetMacAddressReply struct {
1308 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1309 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
1312 func (m *SwInterfaceGetMacAddressReply) Reset() { *m = SwInterfaceGetMacAddressReply{} }
1313 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1314 return "sw_interface_get_mac_address_reply"
1316 func (*SwInterfaceGetMacAddressReply) GetCrcString() string { return "40ef2c08" }
1317 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1318 return api.ReplyMessage
1321 func (m *SwInterfaceGetMacAddressReply) Size() (size int) {
1325 size += 4 // m.Retval
1326 size += 1 * 6 // m.MacAddress
1329 func (m *SwInterfaceGetMacAddressReply) Marshal(b []byte) ([]byte, error) {
1331 b = make([]byte, m.Size())
1333 buf := codec.NewBuffer(b)
1334 buf.EncodeInt32(m.Retval)
1335 buf.EncodeBytes(m.MacAddress[:], 6)
1336 return buf.Bytes(), nil
1338 func (m *SwInterfaceGetMacAddressReply) Unmarshal(b []byte) error {
1339 buf := codec.NewBuffer(b)
1340 m.Retval = buf.DecodeInt32()
1341 copy(m.MacAddress[:], buf.DecodeBytes(6))
1345 // SwInterfaceGetTable defines message 'sw_interface_get_table'.
1346 type SwInterfaceGetTable struct {
1347 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1348 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
1351 func (m *SwInterfaceGetTable) Reset() { *m = SwInterfaceGetTable{} }
1352 func (*SwInterfaceGetTable) GetMessageName() string { return "sw_interface_get_table" }
1353 func (*SwInterfaceGetTable) GetCrcString() string { return "2d033de4" }
1354 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1355 return api.RequestMessage
1358 func (m *SwInterfaceGetTable) Size() (size int) {
1362 size += 4 // m.SwIfIndex
1363 size += 1 // m.IsIPv6
1366 func (m *SwInterfaceGetTable) Marshal(b []byte) ([]byte, error) {
1368 b = make([]byte, m.Size())
1370 buf := codec.NewBuffer(b)
1371 buf.EncodeUint32(uint32(m.SwIfIndex))
1372 buf.EncodeBool(m.IsIPv6)
1373 return buf.Bytes(), nil
1375 func (m *SwInterfaceGetTable) Unmarshal(b []byte) error {
1376 buf := codec.NewBuffer(b)
1377 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1378 m.IsIPv6 = buf.DecodeBool()
1382 // SwInterfaceGetTableReply defines message 'sw_interface_get_table_reply'.
1383 type SwInterfaceGetTableReply struct {
1384 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1385 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
1388 func (m *SwInterfaceGetTableReply) Reset() { *m = SwInterfaceGetTableReply{} }
1389 func (*SwInterfaceGetTableReply) GetMessageName() string { return "sw_interface_get_table_reply" }
1390 func (*SwInterfaceGetTableReply) GetCrcString() string { return "a6eb0109" }
1391 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1392 return api.ReplyMessage
1395 func (m *SwInterfaceGetTableReply) Size() (size int) {
1399 size += 4 // m.Retval
1400 size += 4 // m.VrfID
1403 func (m *SwInterfaceGetTableReply) Marshal(b []byte) ([]byte, error) {
1405 b = make([]byte, m.Size())
1407 buf := codec.NewBuffer(b)
1408 buf.EncodeInt32(m.Retval)
1409 buf.EncodeUint32(m.VrfID)
1410 return buf.Bytes(), nil
1412 func (m *SwInterfaceGetTableReply) Unmarshal(b []byte) error {
1413 buf := codec.NewBuffer(b)
1414 m.Retval = buf.DecodeInt32()
1415 m.VrfID = buf.DecodeUint32()
1419 // SwInterfaceRxPlacementDetails defines message 'sw_interface_rx_placement_details'.
1420 type SwInterfaceRxPlacementDetails struct {
1421 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1422 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1423 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
1424 Mode interface_types.RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
1427 func (m *SwInterfaceRxPlacementDetails) Reset() { *m = SwInterfaceRxPlacementDetails{} }
1428 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
1429 return "sw_interface_rx_placement_details"
1431 func (*SwInterfaceRxPlacementDetails) GetCrcString() string { return "f6d7d024" }
1432 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
1433 return api.RequestMessage
1436 func (m *SwInterfaceRxPlacementDetails) Size() (size int) {
1440 size += 4 // m.SwIfIndex
1441 size += 4 // m.QueueID
1442 size += 4 // m.WorkerID
1446 func (m *SwInterfaceRxPlacementDetails) Marshal(b []byte) ([]byte, error) {
1448 b = make([]byte, m.Size())
1450 buf := codec.NewBuffer(b)
1451 buf.EncodeUint32(uint32(m.SwIfIndex))
1452 buf.EncodeUint32(m.QueueID)
1453 buf.EncodeUint32(m.WorkerID)
1454 buf.EncodeUint32(uint32(m.Mode))
1455 return buf.Bytes(), nil
1457 func (m *SwInterfaceRxPlacementDetails) Unmarshal(b []byte) error {
1458 buf := codec.NewBuffer(b)
1459 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1460 m.QueueID = buf.DecodeUint32()
1461 m.WorkerID = buf.DecodeUint32()
1462 m.Mode = interface_types.RxMode(buf.DecodeUint32())
1466 // SwInterfaceRxPlacementDump defines message 'sw_interface_rx_placement_dump'.
1467 type SwInterfaceRxPlacementDump struct {
1468 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1471 func (m *SwInterfaceRxPlacementDump) Reset() { *m = SwInterfaceRxPlacementDump{} }
1472 func (*SwInterfaceRxPlacementDump) GetMessageName() string { return "sw_interface_rx_placement_dump" }
1473 func (*SwInterfaceRxPlacementDump) GetCrcString() string { return "f9e6675e" }
1474 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
1475 return api.RequestMessage
1478 func (m *SwInterfaceRxPlacementDump) Size() (size int) {
1482 size += 4 // m.SwIfIndex
1485 func (m *SwInterfaceRxPlacementDump) Marshal(b []byte) ([]byte, error) {
1487 b = make([]byte, m.Size())
1489 buf := codec.NewBuffer(b)
1490 buf.EncodeUint32(uint32(m.SwIfIndex))
1491 return buf.Bytes(), nil
1493 func (m *SwInterfaceRxPlacementDump) Unmarshal(b []byte) error {
1494 buf := codec.NewBuffer(b)
1495 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1499 // SwInterfaceSetFlags defines message 'sw_interface_set_flags'.
1500 type SwInterfaceSetFlags struct {
1501 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1502 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1505 func (m *SwInterfaceSetFlags) Reset() { *m = SwInterfaceSetFlags{} }
1506 func (*SwInterfaceSetFlags) GetMessageName() string { return "sw_interface_set_flags" }
1507 func (*SwInterfaceSetFlags) GetCrcString() string { return "6a2b491a" }
1508 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
1509 return api.RequestMessage
1512 func (m *SwInterfaceSetFlags) Size() (size int) {
1516 size += 4 // m.SwIfIndex
1517 size += 4 // m.Flags
1520 func (m *SwInterfaceSetFlags) Marshal(b []byte) ([]byte, error) {
1522 b = make([]byte, m.Size())
1524 buf := codec.NewBuffer(b)
1525 buf.EncodeUint32(uint32(m.SwIfIndex))
1526 buf.EncodeUint32(uint32(m.Flags))
1527 return buf.Bytes(), nil
1529 func (m *SwInterfaceSetFlags) Unmarshal(b []byte) error {
1530 buf := codec.NewBuffer(b)
1531 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1532 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1536 // SwInterfaceSetFlagsReply defines message 'sw_interface_set_flags_reply'.
1537 type SwInterfaceSetFlagsReply struct {
1538 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1541 func (m *SwInterfaceSetFlagsReply) Reset() { *m = SwInterfaceSetFlagsReply{} }
1542 func (*SwInterfaceSetFlagsReply) GetMessageName() string { return "sw_interface_set_flags_reply" }
1543 func (*SwInterfaceSetFlagsReply) GetCrcString() string { return "e8d4e804" }
1544 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
1545 return api.ReplyMessage
1548 func (m *SwInterfaceSetFlagsReply) Size() (size int) {
1552 size += 4 // m.Retval
1555 func (m *SwInterfaceSetFlagsReply) Marshal(b []byte) ([]byte, error) {
1557 b = make([]byte, m.Size())
1559 buf := codec.NewBuffer(b)
1560 buf.EncodeInt32(m.Retval)
1561 return buf.Bytes(), nil
1563 func (m *SwInterfaceSetFlagsReply) Unmarshal(b []byte) error {
1564 buf := codec.NewBuffer(b)
1565 m.Retval = buf.DecodeInt32()
1569 // SwInterfaceSetIPDirectedBroadcast defines message 'sw_interface_set_ip_directed_broadcast'.
1570 type SwInterfaceSetIPDirectedBroadcast struct {
1571 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1572 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1575 func (m *SwInterfaceSetIPDirectedBroadcast) Reset() { *m = SwInterfaceSetIPDirectedBroadcast{} }
1576 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
1577 return "sw_interface_set_ip_directed_broadcast"
1579 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string { return "ae6cfcfb" }
1580 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
1581 return api.RequestMessage
1584 func (m *SwInterfaceSetIPDirectedBroadcast) Size() (size int) {
1588 size += 4 // m.SwIfIndex
1589 size += 1 // m.Enable
1592 func (m *SwInterfaceSetIPDirectedBroadcast) Marshal(b []byte) ([]byte, error) {
1594 b = make([]byte, m.Size())
1596 buf := codec.NewBuffer(b)
1597 buf.EncodeUint32(uint32(m.SwIfIndex))
1598 buf.EncodeBool(m.Enable)
1599 return buf.Bytes(), nil
1601 func (m *SwInterfaceSetIPDirectedBroadcast) Unmarshal(b []byte) error {
1602 buf := codec.NewBuffer(b)
1603 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1604 m.Enable = buf.DecodeBool()
1608 // SwInterfaceSetIPDirectedBroadcastReply defines message 'sw_interface_set_ip_directed_broadcast_reply'.
1609 type SwInterfaceSetIPDirectedBroadcastReply struct {
1610 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1613 func (m *SwInterfaceSetIPDirectedBroadcastReply) Reset() {
1614 *m = SwInterfaceSetIPDirectedBroadcastReply{}
1616 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
1617 return "sw_interface_set_ip_directed_broadcast_reply"
1619 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string { return "e8d4e804" }
1620 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
1621 return api.ReplyMessage
1624 func (m *SwInterfaceSetIPDirectedBroadcastReply) Size() (size int) {
1628 size += 4 // m.Retval
1631 func (m *SwInterfaceSetIPDirectedBroadcastReply) Marshal(b []byte) ([]byte, error) {
1633 b = make([]byte, m.Size())
1635 buf := codec.NewBuffer(b)
1636 buf.EncodeInt32(m.Retval)
1637 return buf.Bytes(), nil
1639 func (m *SwInterfaceSetIPDirectedBroadcastReply) Unmarshal(b []byte) error {
1640 buf := codec.NewBuffer(b)
1641 m.Retval = buf.DecodeInt32()
1645 // SwInterfaceSetMacAddress defines message 'sw_interface_set_mac_address'.
1646 type SwInterfaceSetMacAddress struct {
1647 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1648 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
1651 func (m *SwInterfaceSetMacAddress) Reset() { *m = SwInterfaceSetMacAddress{} }
1652 func (*SwInterfaceSetMacAddress) GetMessageName() string { return "sw_interface_set_mac_address" }
1653 func (*SwInterfaceSetMacAddress) GetCrcString() string { return "6aca746a" }
1654 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1655 return api.RequestMessage
1658 func (m *SwInterfaceSetMacAddress) Size() (size int) {
1662 size += 4 // m.SwIfIndex
1663 size += 1 * 6 // m.MacAddress
1666 func (m *SwInterfaceSetMacAddress) Marshal(b []byte) ([]byte, error) {
1668 b = make([]byte, m.Size())
1670 buf := codec.NewBuffer(b)
1671 buf.EncodeUint32(uint32(m.SwIfIndex))
1672 buf.EncodeBytes(m.MacAddress[:], 6)
1673 return buf.Bytes(), nil
1675 func (m *SwInterfaceSetMacAddress) Unmarshal(b []byte) error {
1676 buf := codec.NewBuffer(b)
1677 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1678 copy(m.MacAddress[:], buf.DecodeBytes(6))
1682 // SwInterfaceSetMacAddressReply defines message 'sw_interface_set_mac_address_reply'.
1683 type SwInterfaceSetMacAddressReply struct {
1684 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1687 func (m *SwInterfaceSetMacAddressReply) Reset() { *m = SwInterfaceSetMacAddressReply{} }
1688 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1689 return "sw_interface_set_mac_address_reply"
1691 func (*SwInterfaceSetMacAddressReply) GetCrcString() string { return "e8d4e804" }
1692 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1693 return api.ReplyMessage
1696 func (m *SwInterfaceSetMacAddressReply) Size() (size int) {
1700 size += 4 // m.Retval
1703 func (m *SwInterfaceSetMacAddressReply) Marshal(b []byte) ([]byte, error) {
1705 b = make([]byte, m.Size())
1707 buf := codec.NewBuffer(b)
1708 buf.EncodeInt32(m.Retval)
1709 return buf.Bytes(), nil
1711 func (m *SwInterfaceSetMacAddressReply) Unmarshal(b []byte) error {
1712 buf := codec.NewBuffer(b)
1713 m.Retval = buf.DecodeInt32()
1717 // SwInterfaceSetMtu defines message 'sw_interface_set_mtu'.
1718 type SwInterfaceSetMtu struct {
1719 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1720 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty"`
1723 func (m *SwInterfaceSetMtu) Reset() { *m = SwInterfaceSetMtu{} }
1724 func (*SwInterfaceSetMtu) GetMessageName() string { return "sw_interface_set_mtu" }
1725 func (*SwInterfaceSetMtu) GetCrcString() string { return "5cbe85e5" }
1726 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
1727 return api.RequestMessage
1730 func (m *SwInterfaceSetMtu) Size() (size int) {
1734 size += 4 // m.SwIfIndex
1735 size += 4 * 4 // m.Mtu
1738 func (m *SwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
1740 b = make([]byte, m.Size())
1742 buf := codec.NewBuffer(b)
1743 buf.EncodeUint32(uint32(m.SwIfIndex))
1744 for i := 0; i < 4; i++ {
1747 x = uint32(m.Mtu[i])
1751 return buf.Bytes(), nil
1753 func (m *SwInterfaceSetMtu) Unmarshal(b []byte) error {
1754 buf := codec.NewBuffer(b)
1755 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1756 m.Mtu = make([]uint32, 4)
1757 for i := 0; i < len(m.Mtu); i++ {
1758 m.Mtu[i] = buf.DecodeUint32()
1763 // SwInterfaceSetMtuReply defines message 'sw_interface_set_mtu_reply'.
1764 type SwInterfaceSetMtuReply struct {
1765 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1768 func (m *SwInterfaceSetMtuReply) Reset() { *m = SwInterfaceSetMtuReply{} }
1769 func (*SwInterfaceSetMtuReply) GetMessageName() string { return "sw_interface_set_mtu_reply" }
1770 func (*SwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
1771 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
1772 return api.ReplyMessage
1775 func (m *SwInterfaceSetMtuReply) Size() (size int) {
1779 size += 4 // m.Retval
1782 func (m *SwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
1784 b = make([]byte, m.Size())
1786 buf := codec.NewBuffer(b)
1787 buf.EncodeInt32(m.Retval)
1788 return buf.Bytes(), nil
1790 func (m *SwInterfaceSetMtuReply) Unmarshal(b []byte) error {
1791 buf := codec.NewBuffer(b)
1792 m.Retval = buf.DecodeInt32()
1796 // SwInterfaceSetRxMode defines message 'sw_interface_set_rx_mode'.
1797 type SwInterfaceSetRxMode struct {
1798 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1799 QueueIDValid bool `binapi:"bool,name=queue_id_valid" json:"queue_id_valid,omitempty"`
1800 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1801 Mode interface_types.RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
1804 func (m *SwInterfaceSetRxMode) Reset() { *m = SwInterfaceSetRxMode{} }
1805 func (*SwInterfaceSetRxMode) GetMessageName() string { return "sw_interface_set_rx_mode" }
1806 func (*SwInterfaceSetRxMode) GetCrcString() string { return "780f5cee" }
1807 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1808 return api.RequestMessage
1811 func (m *SwInterfaceSetRxMode) Size() (size int) {
1815 size += 4 // m.SwIfIndex
1816 size += 1 // m.QueueIDValid
1817 size += 4 // m.QueueID
1821 func (m *SwInterfaceSetRxMode) Marshal(b []byte) ([]byte, error) {
1823 b = make([]byte, m.Size())
1825 buf := codec.NewBuffer(b)
1826 buf.EncodeUint32(uint32(m.SwIfIndex))
1827 buf.EncodeBool(m.QueueIDValid)
1828 buf.EncodeUint32(m.QueueID)
1829 buf.EncodeUint32(uint32(m.Mode))
1830 return buf.Bytes(), nil
1832 func (m *SwInterfaceSetRxMode) Unmarshal(b []byte) error {
1833 buf := codec.NewBuffer(b)
1834 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1835 m.QueueIDValid = buf.DecodeBool()
1836 m.QueueID = buf.DecodeUint32()
1837 m.Mode = interface_types.RxMode(buf.DecodeUint32())
1841 // SwInterfaceSetRxModeReply defines message 'sw_interface_set_rx_mode_reply'.
1842 type SwInterfaceSetRxModeReply struct {
1843 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1846 func (m *SwInterfaceSetRxModeReply) Reset() { *m = SwInterfaceSetRxModeReply{} }
1847 func (*SwInterfaceSetRxModeReply) GetMessageName() string { return "sw_interface_set_rx_mode_reply" }
1848 func (*SwInterfaceSetRxModeReply) GetCrcString() string { return "e8d4e804" }
1849 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1850 return api.ReplyMessage
1853 func (m *SwInterfaceSetRxModeReply) Size() (size int) {
1857 size += 4 // m.Retval
1860 func (m *SwInterfaceSetRxModeReply) Marshal(b []byte) ([]byte, error) {
1862 b = make([]byte, m.Size())
1864 buf := codec.NewBuffer(b)
1865 buf.EncodeInt32(m.Retval)
1866 return buf.Bytes(), nil
1868 func (m *SwInterfaceSetRxModeReply) Unmarshal(b []byte) error {
1869 buf := codec.NewBuffer(b)
1870 m.Retval = buf.DecodeInt32()
1874 // SwInterfaceSetRxPlacement defines message 'sw_interface_set_rx_placement'.
1875 type SwInterfaceSetRxPlacement struct {
1876 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1877 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1878 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
1879 IsMain bool `binapi:"bool,name=is_main" json:"is_main,omitempty"`
1882 func (m *SwInterfaceSetRxPlacement) Reset() { *m = SwInterfaceSetRxPlacement{} }
1883 func (*SwInterfaceSetRxPlacement) GetMessageName() string { return "sw_interface_set_rx_placement" }
1884 func (*SwInterfaceSetRxPlacement) GetCrcString() string { return "db65f3c9" }
1885 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
1886 return api.RequestMessage
1889 func (m *SwInterfaceSetRxPlacement) Size() (size int) {
1893 size += 4 // m.SwIfIndex
1894 size += 4 // m.QueueID
1895 size += 4 // m.WorkerID
1896 size += 1 // m.IsMain
1899 func (m *SwInterfaceSetRxPlacement) Marshal(b []byte) ([]byte, error) {
1901 b = make([]byte, m.Size())
1903 buf := codec.NewBuffer(b)
1904 buf.EncodeUint32(uint32(m.SwIfIndex))
1905 buf.EncodeUint32(m.QueueID)
1906 buf.EncodeUint32(m.WorkerID)
1907 buf.EncodeBool(m.IsMain)
1908 return buf.Bytes(), nil
1910 func (m *SwInterfaceSetRxPlacement) Unmarshal(b []byte) error {
1911 buf := codec.NewBuffer(b)
1912 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1913 m.QueueID = buf.DecodeUint32()
1914 m.WorkerID = buf.DecodeUint32()
1915 m.IsMain = buf.DecodeBool()
1919 // SwInterfaceSetRxPlacementReply defines message 'sw_interface_set_rx_placement_reply'.
1920 type SwInterfaceSetRxPlacementReply struct {
1921 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1924 func (m *SwInterfaceSetRxPlacementReply) Reset() { *m = SwInterfaceSetRxPlacementReply{} }
1925 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
1926 return "sw_interface_set_rx_placement_reply"
1928 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string { return "e8d4e804" }
1929 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
1930 return api.ReplyMessage
1933 func (m *SwInterfaceSetRxPlacementReply) Size() (size int) {
1937 size += 4 // m.Retval
1940 func (m *SwInterfaceSetRxPlacementReply) Marshal(b []byte) ([]byte, error) {
1942 b = make([]byte, m.Size())
1944 buf := codec.NewBuffer(b)
1945 buf.EncodeInt32(m.Retval)
1946 return buf.Bytes(), nil
1948 func (m *SwInterfaceSetRxPlacementReply) Unmarshal(b []byte) error {
1949 buf := codec.NewBuffer(b)
1950 m.Retval = buf.DecodeInt32()
1954 // SwInterfaceSetTable defines message 'sw_interface_set_table'.
1955 type SwInterfaceSetTable struct {
1956 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1957 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
1958 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
1961 func (m *SwInterfaceSetTable) Reset() { *m = SwInterfaceSetTable{} }
1962 func (*SwInterfaceSetTable) GetMessageName() string { return "sw_interface_set_table" }
1963 func (*SwInterfaceSetTable) GetCrcString() string { return "df42a577" }
1964 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
1965 return api.RequestMessage
1968 func (m *SwInterfaceSetTable) Size() (size int) {
1972 size += 4 // m.SwIfIndex
1973 size += 1 // m.IsIPv6
1974 size += 4 // m.VrfID
1977 func (m *SwInterfaceSetTable) Marshal(b []byte) ([]byte, error) {
1979 b = make([]byte, m.Size())
1981 buf := codec.NewBuffer(b)
1982 buf.EncodeUint32(uint32(m.SwIfIndex))
1983 buf.EncodeBool(m.IsIPv6)
1984 buf.EncodeUint32(m.VrfID)
1985 return buf.Bytes(), nil
1987 func (m *SwInterfaceSetTable) Unmarshal(b []byte) error {
1988 buf := codec.NewBuffer(b)
1989 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1990 m.IsIPv6 = buf.DecodeBool()
1991 m.VrfID = buf.DecodeUint32()
1995 // SwInterfaceSetTableReply defines message 'sw_interface_set_table_reply'.
1996 type SwInterfaceSetTableReply struct {
1997 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2000 func (m *SwInterfaceSetTableReply) Reset() { *m = SwInterfaceSetTableReply{} }
2001 func (*SwInterfaceSetTableReply) GetMessageName() string { return "sw_interface_set_table_reply" }
2002 func (*SwInterfaceSetTableReply) GetCrcString() string { return "e8d4e804" }
2003 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
2004 return api.ReplyMessage
2007 func (m *SwInterfaceSetTableReply) Size() (size int) {
2011 size += 4 // m.Retval
2014 func (m *SwInterfaceSetTableReply) Marshal(b []byte) ([]byte, error) {
2016 b = make([]byte, m.Size())
2018 buf := codec.NewBuffer(b)
2019 buf.EncodeInt32(m.Retval)
2020 return buf.Bytes(), nil
2022 func (m *SwInterfaceSetTableReply) Unmarshal(b []byte) error {
2023 buf := codec.NewBuffer(b)
2024 m.Retval = buf.DecodeInt32()
2028 // SwInterfaceSetUnnumbered defines message 'sw_interface_set_unnumbered'.
2029 type SwInterfaceSetUnnumbered struct {
2030 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2031 UnnumberedSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=unnumbered_sw_if_index" json:"unnumbered_sw_if_index,omitempty"`
2032 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
2035 func (m *SwInterfaceSetUnnumbered) Reset() { *m = SwInterfaceSetUnnumbered{} }
2036 func (*SwInterfaceSetUnnumbered) GetMessageName() string { return "sw_interface_set_unnumbered" }
2037 func (*SwInterfaceSetUnnumbered) GetCrcString() string { return "938ef33b" }
2038 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
2039 return api.RequestMessage
2042 func (m *SwInterfaceSetUnnumbered) Size() (size int) {
2046 size += 4 // m.SwIfIndex
2047 size += 4 // m.UnnumberedSwIfIndex
2048 size += 1 // m.IsAdd
2051 func (m *SwInterfaceSetUnnumbered) Marshal(b []byte) ([]byte, error) {
2053 b = make([]byte, m.Size())
2055 buf := codec.NewBuffer(b)
2056 buf.EncodeUint32(uint32(m.SwIfIndex))
2057 buf.EncodeUint32(uint32(m.UnnumberedSwIfIndex))
2058 buf.EncodeBool(m.IsAdd)
2059 return buf.Bytes(), nil
2061 func (m *SwInterfaceSetUnnumbered) Unmarshal(b []byte) error {
2062 buf := codec.NewBuffer(b)
2063 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2064 m.UnnumberedSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2065 m.IsAdd = buf.DecodeBool()
2069 // SwInterfaceSetUnnumberedReply defines message 'sw_interface_set_unnumbered_reply'.
2070 type SwInterfaceSetUnnumberedReply struct {
2071 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2074 func (m *SwInterfaceSetUnnumberedReply) Reset() { *m = SwInterfaceSetUnnumberedReply{} }
2075 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
2076 return "sw_interface_set_unnumbered_reply"
2078 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string { return "e8d4e804" }
2079 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
2080 return api.ReplyMessage
2083 func (m *SwInterfaceSetUnnumberedReply) Size() (size int) {
2087 size += 4 // m.Retval
2090 func (m *SwInterfaceSetUnnumberedReply) Marshal(b []byte) ([]byte, error) {
2092 b = make([]byte, m.Size())
2094 buf := codec.NewBuffer(b)
2095 buf.EncodeInt32(m.Retval)
2096 return buf.Bytes(), nil
2098 func (m *SwInterfaceSetUnnumberedReply) Unmarshal(b []byte) error {
2099 buf := codec.NewBuffer(b)
2100 m.Retval = buf.DecodeInt32()
2104 // SwInterfaceTagAddDel defines message 'sw_interface_tag_add_del'.
2105 type SwInterfaceTagAddDel struct {
2106 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
2107 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2108 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
2111 func (m *SwInterfaceTagAddDel) Reset() { *m = SwInterfaceTagAddDel{} }
2112 func (*SwInterfaceTagAddDel) GetMessageName() string { return "sw_interface_tag_add_del" }
2113 func (*SwInterfaceTagAddDel) GetCrcString() string { return "426f8bc1" }
2114 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
2115 return api.RequestMessage
2118 func (m *SwInterfaceTagAddDel) Size() (size int) {
2122 size += 1 // m.IsAdd
2123 size += 4 // m.SwIfIndex
2127 func (m *SwInterfaceTagAddDel) Marshal(b []byte) ([]byte, error) {
2129 b = make([]byte, m.Size())
2131 buf := codec.NewBuffer(b)
2132 buf.EncodeBool(m.IsAdd)
2133 buf.EncodeUint32(uint32(m.SwIfIndex))
2134 buf.EncodeString(m.Tag, 64)
2135 return buf.Bytes(), nil
2137 func (m *SwInterfaceTagAddDel) Unmarshal(b []byte) error {
2138 buf := codec.NewBuffer(b)
2139 m.IsAdd = buf.DecodeBool()
2140 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2141 m.Tag = buf.DecodeString(64)
2145 // SwInterfaceTagAddDelReply defines message 'sw_interface_tag_add_del_reply'.
2146 type SwInterfaceTagAddDelReply struct {
2147 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2150 func (m *SwInterfaceTagAddDelReply) Reset() { *m = SwInterfaceTagAddDelReply{} }
2151 func (*SwInterfaceTagAddDelReply) GetMessageName() string { return "sw_interface_tag_add_del_reply" }
2152 func (*SwInterfaceTagAddDelReply) GetCrcString() string { return "e8d4e804" }
2153 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
2154 return api.ReplyMessage
2157 func (m *SwInterfaceTagAddDelReply) Size() (size int) {
2161 size += 4 // m.Retval
2164 func (m *SwInterfaceTagAddDelReply) Marshal(b []byte) ([]byte, error) {
2166 b = make([]byte, m.Size())
2168 buf := codec.NewBuffer(b)
2169 buf.EncodeInt32(m.Retval)
2170 return buf.Bytes(), nil
2172 func (m *SwInterfaceTagAddDelReply) Unmarshal(b []byte) error {
2173 buf := codec.NewBuffer(b)
2174 m.Retval = buf.DecodeInt32()
2178 // WantInterfaceEvents defines message 'want_interface_events'.
2179 type WantInterfaceEvents struct {
2180 EnableDisable uint32 `binapi:"u32,name=enable_disable" json:"enable_disable,omitempty"`
2181 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
2184 func (m *WantInterfaceEvents) Reset() { *m = WantInterfaceEvents{} }
2185 func (*WantInterfaceEvents) GetMessageName() string { return "want_interface_events" }
2186 func (*WantInterfaceEvents) GetCrcString() string { return "476f5a08" }
2187 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
2188 return api.RequestMessage
2191 func (m *WantInterfaceEvents) Size() (size int) {
2195 size += 4 // m.EnableDisable
2199 func (m *WantInterfaceEvents) Marshal(b []byte) ([]byte, error) {
2201 b = make([]byte, m.Size())
2203 buf := codec.NewBuffer(b)
2204 buf.EncodeUint32(m.EnableDisable)
2205 buf.EncodeUint32(m.PID)
2206 return buf.Bytes(), nil
2208 func (m *WantInterfaceEvents) Unmarshal(b []byte) error {
2209 buf := codec.NewBuffer(b)
2210 m.EnableDisable = buf.DecodeUint32()
2211 m.PID = buf.DecodeUint32()
2215 // WantInterfaceEventsReply defines message 'want_interface_events_reply'.
2216 type WantInterfaceEventsReply struct {
2217 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2220 func (m *WantInterfaceEventsReply) Reset() { *m = WantInterfaceEventsReply{} }
2221 func (*WantInterfaceEventsReply) GetMessageName() string { return "want_interface_events_reply" }
2222 func (*WantInterfaceEventsReply) GetCrcString() string { return "e8d4e804" }
2223 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
2224 return api.ReplyMessage
2227 func (m *WantInterfaceEventsReply) Size() (size int) {
2231 size += 4 // m.Retval
2234 func (m *WantInterfaceEventsReply) Marshal(b []byte) ([]byte, error) {
2236 b = make([]byte, m.Size())
2238 buf := codec.NewBuffer(b)
2239 buf.EncodeInt32(m.Retval)
2240 return buf.Bytes(), nil
2242 func (m *WantInterfaceEventsReply) Unmarshal(b []byte) error {
2243 buf := codec.NewBuffer(b)
2244 m.Retval = buf.DecodeInt32()
2248 func init() { file_interfaces_binapi_init() }
2249 func file_interfaces_binapi_init() {
2250 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "collect_detailed_interface_stats_5501adee")
2251 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "collect_detailed_interface_stats_reply_e8d4e804")
2252 api.RegisterMessage((*CreateLoopback)(nil), "create_loopback_42bb5d22")
2253 api.RegisterMessage((*CreateLoopbackInstance)(nil), "create_loopback_instance_d36a3ee2")
2254 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "create_loopback_instance_reply_5383d31f")
2255 api.RegisterMessage((*CreateLoopbackReply)(nil), "create_loopback_reply_5383d31f")
2256 api.RegisterMessage((*CreateSubif)(nil), "create_subif_cb371063")
2257 api.RegisterMessage((*CreateSubifReply)(nil), "create_subif_reply_5383d31f")
2258 api.RegisterMessage((*CreateVlanSubif)(nil), "create_vlan_subif_af34ac8b")
2259 api.RegisterMessage((*CreateVlanSubifReply)(nil), "create_vlan_subif_reply_5383d31f")
2260 api.RegisterMessage((*DeleteLoopback)(nil), "delete_loopback_f9e6675e")
2261 api.RegisterMessage((*DeleteLoopbackReply)(nil), "delete_loopback_reply_e8d4e804")
2262 api.RegisterMessage((*DeleteSubif)(nil), "delete_subif_f9e6675e")
2263 api.RegisterMessage((*DeleteSubifReply)(nil), "delete_subif_reply_e8d4e804")
2264 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "hw_interface_set_mtu_e6746899")
2265 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "hw_interface_set_mtu_reply_e8d4e804")
2266 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface_name_renumber_2b8858b8")
2267 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface_name_renumber_reply_e8d4e804")
2268 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "sw_interface_add_del_address_5803d5c4")
2269 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "sw_interface_add_del_address_reply_e8d4e804")
2270 api.RegisterMessage((*SwInterfaceAddDelMacAddress)(nil), "sw_interface_add_del_mac_address_638bb9f4")
2271 api.RegisterMessage((*SwInterfaceAddDelMacAddressReply)(nil), "sw_interface_add_del_mac_address_reply_e8d4e804")
2272 api.RegisterMessage((*SwInterfaceAddressReplaceBegin)(nil), "sw_interface_address_replace_begin_51077d14")
2273 api.RegisterMessage((*SwInterfaceAddressReplaceBeginReply)(nil), "sw_interface_address_replace_begin_reply_e8d4e804")
2274 api.RegisterMessage((*SwInterfaceAddressReplaceEnd)(nil), "sw_interface_address_replace_end_51077d14")
2275 api.RegisterMessage((*SwInterfaceAddressReplaceEndReply)(nil), "sw_interface_address_replace_end_reply_e8d4e804")
2276 api.RegisterMessage((*SwInterfaceClearStats)(nil), "sw_interface_clear_stats_f9e6675e")
2277 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "sw_interface_clear_stats_reply_e8d4e804")
2278 api.RegisterMessage((*SwInterfaceDetails)(nil), "sw_interface_details_17b69fa2")
2279 api.RegisterMessage((*SwInterfaceDump)(nil), "sw_interface_dump_aa610c27")
2280 api.RegisterMessage((*SwInterfaceEvent)(nil), "sw_interface_event_f709f78d")
2281 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "sw_interface_get_mac_address_f9e6675e")
2282 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "sw_interface_get_mac_address_reply_40ef2c08")
2283 api.RegisterMessage((*SwInterfaceGetTable)(nil), "sw_interface_get_table_2d033de4")
2284 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "sw_interface_get_table_reply_a6eb0109")
2285 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "sw_interface_rx_placement_details_f6d7d024")
2286 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "sw_interface_rx_placement_dump_f9e6675e")
2287 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "sw_interface_set_flags_6a2b491a")
2288 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "sw_interface_set_flags_reply_e8d4e804")
2289 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "sw_interface_set_ip_directed_broadcast_ae6cfcfb")
2290 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "sw_interface_set_ip_directed_broadcast_reply_e8d4e804")
2291 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "sw_interface_set_mac_address_6aca746a")
2292 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "sw_interface_set_mac_address_reply_e8d4e804")
2293 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "sw_interface_set_mtu_5cbe85e5")
2294 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "sw_interface_set_mtu_reply_e8d4e804")
2295 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "sw_interface_set_rx_mode_780f5cee")
2296 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "sw_interface_set_rx_mode_reply_e8d4e804")
2297 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "sw_interface_set_rx_placement_db65f3c9")
2298 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "sw_interface_set_rx_placement_reply_e8d4e804")
2299 api.RegisterMessage((*SwInterfaceSetTable)(nil), "sw_interface_set_table_df42a577")
2300 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "sw_interface_set_table_reply_e8d4e804")
2301 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "sw_interface_set_unnumbered_938ef33b")
2302 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "sw_interface_set_unnumbered_reply_e8d4e804")
2303 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "sw_interface_tag_add_del_426f8bc1")
2304 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "sw_interface_tag_add_del_reply_e8d4e804")
2305 api.RegisterMessage((*WantInterfaceEvents)(nil), "want_interface_events_476f5a08")
2306 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "want_interface_events_reply_e8d4e804")
2309 // Messages returns list of all messages in this module.
2310 func AllMessages() []api.Message {
2311 return []api.Message{
2312 (*CollectDetailedInterfaceStats)(nil),
2313 (*CollectDetailedInterfaceStatsReply)(nil),
2314 (*CreateLoopback)(nil),
2315 (*CreateLoopbackInstance)(nil),
2316 (*CreateLoopbackInstanceReply)(nil),
2317 (*CreateLoopbackReply)(nil),
2318 (*CreateSubif)(nil),
2319 (*CreateSubifReply)(nil),
2320 (*CreateVlanSubif)(nil),
2321 (*CreateVlanSubifReply)(nil),
2322 (*DeleteLoopback)(nil),
2323 (*DeleteLoopbackReply)(nil),
2324 (*DeleteSubif)(nil),
2325 (*DeleteSubifReply)(nil),
2326 (*HwInterfaceSetMtu)(nil),
2327 (*HwInterfaceSetMtuReply)(nil),
2328 (*InterfaceNameRenumber)(nil),
2329 (*InterfaceNameRenumberReply)(nil),
2330 (*SwInterfaceAddDelAddress)(nil),
2331 (*SwInterfaceAddDelAddressReply)(nil),
2332 (*SwInterfaceAddDelMacAddress)(nil),
2333 (*SwInterfaceAddDelMacAddressReply)(nil),
2334 (*SwInterfaceAddressReplaceBegin)(nil),
2335 (*SwInterfaceAddressReplaceBeginReply)(nil),
2336 (*SwInterfaceAddressReplaceEnd)(nil),
2337 (*SwInterfaceAddressReplaceEndReply)(nil),
2338 (*SwInterfaceClearStats)(nil),
2339 (*SwInterfaceClearStatsReply)(nil),
2340 (*SwInterfaceDetails)(nil),
2341 (*SwInterfaceDump)(nil),
2342 (*SwInterfaceEvent)(nil),
2343 (*SwInterfaceGetMacAddress)(nil),
2344 (*SwInterfaceGetMacAddressReply)(nil),
2345 (*SwInterfaceGetTable)(nil),
2346 (*SwInterfaceGetTableReply)(nil),
2347 (*SwInterfaceRxPlacementDetails)(nil),
2348 (*SwInterfaceRxPlacementDump)(nil),
2349 (*SwInterfaceSetFlags)(nil),
2350 (*SwInterfaceSetFlagsReply)(nil),
2351 (*SwInterfaceSetIPDirectedBroadcast)(nil),
2352 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
2353 (*SwInterfaceSetMacAddress)(nil),
2354 (*SwInterfaceSetMacAddressReply)(nil),
2355 (*SwInterfaceSetMtu)(nil),
2356 (*SwInterfaceSetMtuReply)(nil),
2357 (*SwInterfaceSetRxMode)(nil),
2358 (*SwInterfaceSetRxModeReply)(nil),
2359 (*SwInterfaceSetRxPlacement)(nil),
2360 (*SwInterfaceSetRxPlacementReply)(nil),
2361 (*SwInterfaceSetTable)(nil),
2362 (*SwInterfaceSetTableReply)(nil),
2363 (*SwInterfaceSetUnnumbered)(nil),
2364 (*SwInterfaceSetUnnumberedReply)(nil),
2365 (*SwInterfaceTagAddDel)(nil),
2366 (*SwInterfaceTagAddDelReply)(nil),
2367 (*WantInterfaceEvents)(nil),
2368 (*WantInterfaceEventsReply)(nil),