1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/core/interface.api.json
7 // Package interfaces contains generated bindings for API file interface.api.
15 api "git.fd.io/govpp.git/api"
16 ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types"
17 interface_types "git.fd.io/govpp.git/binapi/interface_types"
18 ip_types "git.fd.io/govpp.git/binapi/ip_types"
19 codec "git.fd.io/govpp.git/codec"
22 // This is a compile-time assertion to ensure that this generated file
23 // is compatible with the GoVPP api package it is being compiled against.
24 // A compilation error at this line likely means your copy of the
25 // GoVPP api package needs to be updated.
26 const _ = api.GoVppAPIPackageIsVersion2
31 VersionCrc = 0x29a0076c
34 // CollectDetailedInterfaceStats defines message 'collect_detailed_interface_stats'.
35 type CollectDetailedInterfaceStats struct {
36 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
37 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
40 func (m *CollectDetailedInterfaceStats) Reset() { *m = CollectDetailedInterfaceStats{} }
41 func (*CollectDetailedInterfaceStats) GetMessageName() string {
42 return "collect_detailed_interface_stats"
44 func (*CollectDetailedInterfaceStats) GetCrcString() string { return "5501adee" }
45 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
46 return api.RequestMessage
49 func (m *CollectDetailedInterfaceStats) Size() (size int) {
53 size += 4 // m.SwIfIndex
54 size += 1 // m.EnableDisable
57 func (m *CollectDetailedInterfaceStats) Marshal(b []byte) ([]byte, error) {
59 b = make([]byte, m.Size())
61 buf := codec.NewBuffer(b)
62 buf.EncodeUint32(uint32(m.SwIfIndex))
63 buf.EncodeBool(m.EnableDisable)
64 return buf.Bytes(), nil
66 func (m *CollectDetailedInterfaceStats) Unmarshal(b []byte) error {
67 buf := codec.NewBuffer(b)
68 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
69 m.EnableDisable = buf.DecodeBool()
73 // CollectDetailedInterfaceStatsReply defines message 'collect_detailed_interface_stats_reply'.
74 type CollectDetailedInterfaceStatsReply struct {
75 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
78 func (m *CollectDetailedInterfaceStatsReply) Reset() { *m = CollectDetailedInterfaceStatsReply{} }
79 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
80 return "collect_detailed_interface_stats_reply"
82 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string { return "e8d4e804" }
83 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
84 return api.ReplyMessage
87 func (m *CollectDetailedInterfaceStatsReply) Size() (size int) {
94 func (m *CollectDetailedInterfaceStatsReply) Marshal(b []byte) ([]byte, error) {
96 b = make([]byte, m.Size())
98 buf := codec.NewBuffer(b)
99 buf.EncodeInt32(m.Retval)
100 return buf.Bytes(), nil
102 func (m *CollectDetailedInterfaceStatsReply) Unmarshal(b []byte) error {
103 buf := codec.NewBuffer(b)
104 m.Retval = buf.DecodeInt32()
108 // CreateLoopback defines message 'create_loopback'.
109 type CreateLoopback struct {
110 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
113 func (m *CreateLoopback) Reset() { *m = CreateLoopback{} }
114 func (*CreateLoopback) GetMessageName() string { return "create_loopback" }
115 func (*CreateLoopback) GetCrcString() string { return "42bb5d22" }
116 func (*CreateLoopback) GetMessageType() api.MessageType {
117 return api.RequestMessage
120 func (m *CreateLoopback) Size() (size int) {
124 size += 1 * 6 // m.MacAddress
127 func (m *CreateLoopback) Marshal(b []byte) ([]byte, error) {
129 b = make([]byte, m.Size())
131 buf := codec.NewBuffer(b)
132 buf.EncodeBytes(m.MacAddress[:], 6)
133 return buf.Bytes(), nil
135 func (m *CreateLoopback) Unmarshal(b []byte) error {
136 buf := codec.NewBuffer(b)
137 copy(m.MacAddress[:], buf.DecodeBytes(6))
141 // CreateLoopbackInstance defines message 'create_loopback_instance'.
142 type CreateLoopbackInstance struct {
143 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
144 IsSpecified bool `binapi:"bool,name=is_specified" json:"is_specified,omitempty"`
145 UserInstance uint32 `binapi:"u32,name=user_instance" json:"user_instance,omitempty"`
148 func (m *CreateLoopbackInstance) Reset() { *m = CreateLoopbackInstance{} }
149 func (*CreateLoopbackInstance) GetMessageName() string { return "create_loopback_instance" }
150 func (*CreateLoopbackInstance) GetCrcString() string { return "d36a3ee2" }
151 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
152 return api.RequestMessage
155 func (m *CreateLoopbackInstance) Size() (size int) {
159 size += 1 * 6 // m.MacAddress
160 size += 1 // m.IsSpecified
161 size += 4 // m.UserInstance
164 func (m *CreateLoopbackInstance) Marshal(b []byte) ([]byte, error) {
166 b = make([]byte, m.Size())
168 buf := codec.NewBuffer(b)
169 buf.EncodeBytes(m.MacAddress[:], 6)
170 buf.EncodeBool(m.IsSpecified)
171 buf.EncodeUint32(m.UserInstance)
172 return buf.Bytes(), nil
174 func (m *CreateLoopbackInstance) Unmarshal(b []byte) error {
175 buf := codec.NewBuffer(b)
176 copy(m.MacAddress[:], buf.DecodeBytes(6))
177 m.IsSpecified = buf.DecodeBool()
178 m.UserInstance = buf.DecodeUint32()
182 // CreateLoopbackInstanceReply defines message 'create_loopback_instance_reply'.
183 type CreateLoopbackInstanceReply struct {
184 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
185 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
188 func (m *CreateLoopbackInstanceReply) Reset() { *m = CreateLoopbackInstanceReply{} }
189 func (*CreateLoopbackInstanceReply) GetMessageName() string { return "create_loopback_instance_reply" }
190 func (*CreateLoopbackInstanceReply) GetCrcString() string { return "5383d31f" }
191 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
192 return api.ReplyMessage
195 func (m *CreateLoopbackInstanceReply) Size() (size int) {
199 size += 4 // m.Retval
200 size += 4 // m.SwIfIndex
203 func (m *CreateLoopbackInstanceReply) Marshal(b []byte) ([]byte, error) {
205 b = make([]byte, m.Size())
207 buf := codec.NewBuffer(b)
208 buf.EncodeInt32(m.Retval)
209 buf.EncodeUint32(uint32(m.SwIfIndex))
210 return buf.Bytes(), nil
212 func (m *CreateLoopbackInstanceReply) Unmarshal(b []byte) error {
213 buf := codec.NewBuffer(b)
214 m.Retval = buf.DecodeInt32()
215 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
219 // CreateLoopbackReply defines message 'create_loopback_reply'.
220 type CreateLoopbackReply struct {
221 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
222 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
225 func (m *CreateLoopbackReply) Reset() { *m = CreateLoopbackReply{} }
226 func (*CreateLoopbackReply) GetMessageName() string { return "create_loopback_reply" }
227 func (*CreateLoopbackReply) GetCrcString() string { return "5383d31f" }
228 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
229 return api.ReplyMessage
232 func (m *CreateLoopbackReply) Size() (size int) {
236 size += 4 // m.Retval
237 size += 4 // m.SwIfIndex
240 func (m *CreateLoopbackReply) Marshal(b []byte) ([]byte, error) {
242 b = make([]byte, m.Size())
244 buf := codec.NewBuffer(b)
245 buf.EncodeInt32(m.Retval)
246 buf.EncodeUint32(uint32(m.SwIfIndex))
247 return buf.Bytes(), nil
249 func (m *CreateLoopbackReply) Unmarshal(b []byte) error {
250 buf := codec.NewBuffer(b)
251 m.Retval = buf.DecodeInt32()
252 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
256 // CreateSubif defines message 'create_subif'.
257 type CreateSubif struct {
258 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
259 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
260 SubIfFlags interface_types.SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
261 OuterVlanID uint16 `binapi:"u16,name=outer_vlan_id" json:"outer_vlan_id,omitempty"`
262 InnerVlanID uint16 `binapi:"u16,name=inner_vlan_id" json:"inner_vlan_id,omitempty"`
265 func (m *CreateSubif) Reset() { *m = CreateSubif{} }
266 func (*CreateSubif) GetMessageName() string { return "create_subif" }
267 func (*CreateSubif) GetCrcString() string { return "790ca755" }
268 func (*CreateSubif) GetMessageType() api.MessageType {
269 return api.RequestMessage
272 func (m *CreateSubif) Size() (size int) {
276 size += 4 // m.SwIfIndex
278 size += 4 // m.SubIfFlags
279 size += 2 // m.OuterVlanID
280 size += 2 // m.InnerVlanID
283 func (m *CreateSubif) Marshal(b []byte) ([]byte, error) {
285 b = make([]byte, m.Size())
287 buf := codec.NewBuffer(b)
288 buf.EncodeUint32(uint32(m.SwIfIndex))
289 buf.EncodeUint32(m.SubID)
290 buf.EncodeUint32(uint32(m.SubIfFlags))
291 buf.EncodeUint16(m.OuterVlanID)
292 buf.EncodeUint16(m.InnerVlanID)
293 return buf.Bytes(), nil
295 func (m *CreateSubif) Unmarshal(b []byte) error {
296 buf := codec.NewBuffer(b)
297 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
298 m.SubID = buf.DecodeUint32()
299 m.SubIfFlags = interface_types.SubIfFlags(buf.DecodeUint32())
300 m.OuterVlanID = buf.DecodeUint16()
301 m.InnerVlanID = buf.DecodeUint16()
305 // CreateSubifReply defines message 'create_subif_reply'.
306 type CreateSubifReply struct {
307 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
308 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
311 func (m *CreateSubifReply) Reset() { *m = CreateSubifReply{} }
312 func (*CreateSubifReply) GetMessageName() string { return "create_subif_reply" }
313 func (*CreateSubifReply) GetCrcString() string { return "5383d31f" }
314 func (*CreateSubifReply) GetMessageType() api.MessageType {
315 return api.ReplyMessage
318 func (m *CreateSubifReply) Size() (size int) {
322 size += 4 // m.Retval
323 size += 4 // m.SwIfIndex
326 func (m *CreateSubifReply) Marshal(b []byte) ([]byte, error) {
328 b = make([]byte, m.Size())
330 buf := codec.NewBuffer(b)
331 buf.EncodeInt32(m.Retval)
332 buf.EncodeUint32(uint32(m.SwIfIndex))
333 return buf.Bytes(), nil
335 func (m *CreateSubifReply) Unmarshal(b []byte) error {
336 buf := codec.NewBuffer(b)
337 m.Retval = buf.DecodeInt32()
338 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
342 // CreateVlanSubif defines message 'create_vlan_subif'.
343 type CreateVlanSubif struct {
344 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
345 VlanID uint32 `binapi:"u32,name=vlan_id" json:"vlan_id,omitempty"`
348 func (m *CreateVlanSubif) Reset() { *m = CreateVlanSubif{} }
349 func (*CreateVlanSubif) GetMessageName() string { return "create_vlan_subif" }
350 func (*CreateVlanSubif) GetCrcString() string { return "af34ac8b" }
351 func (*CreateVlanSubif) GetMessageType() api.MessageType {
352 return api.RequestMessage
355 func (m *CreateVlanSubif) Size() (size int) {
359 size += 4 // m.SwIfIndex
360 size += 4 // m.VlanID
363 func (m *CreateVlanSubif) Marshal(b []byte) ([]byte, error) {
365 b = make([]byte, m.Size())
367 buf := codec.NewBuffer(b)
368 buf.EncodeUint32(uint32(m.SwIfIndex))
369 buf.EncodeUint32(m.VlanID)
370 return buf.Bytes(), nil
372 func (m *CreateVlanSubif) Unmarshal(b []byte) error {
373 buf := codec.NewBuffer(b)
374 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
375 m.VlanID = buf.DecodeUint32()
379 // CreateVlanSubifReply defines message 'create_vlan_subif_reply'.
380 type CreateVlanSubifReply struct {
381 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
382 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
385 func (m *CreateVlanSubifReply) Reset() { *m = CreateVlanSubifReply{} }
386 func (*CreateVlanSubifReply) GetMessageName() string { return "create_vlan_subif_reply" }
387 func (*CreateVlanSubifReply) GetCrcString() string { return "5383d31f" }
388 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
389 return api.ReplyMessage
392 func (m *CreateVlanSubifReply) Size() (size int) {
396 size += 4 // m.Retval
397 size += 4 // m.SwIfIndex
400 func (m *CreateVlanSubifReply) Marshal(b []byte) ([]byte, error) {
402 b = make([]byte, m.Size())
404 buf := codec.NewBuffer(b)
405 buf.EncodeInt32(m.Retval)
406 buf.EncodeUint32(uint32(m.SwIfIndex))
407 return buf.Bytes(), nil
409 func (m *CreateVlanSubifReply) Unmarshal(b []byte) error {
410 buf := codec.NewBuffer(b)
411 m.Retval = buf.DecodeInt32()
412 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
416 // DeleteLoopback defines message 'delete_loopback'.
417 type DeleteLoopback struct {
418 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
421 func (m *DeleteLoopback) Reset() { *m = DeleteLoopback{} }
422 func (*DeleteLoopback) GetMessageName() string { return "delete_loopback" }
423 func (*DeleteLoopback) GetCrcString() string { return "f9e6675e" }
424 func (*DeleteLoopback) GetMessageType() api.MessageType {
425 return api.RequestMessage
428 func (m *DeleteLoopback) Size() (size int) {
432 size += 4 // m.SwIfIndex
435 func (m *DeleteLoopback) Marshal(b []byte) ([]byte, error) {
437 b = make([]byte, m.Size())
439 buf := codec.NewBuffer(b)
440 buf.EncodeUint32(uint32(m.SwIfIndex))
441 return buf.Bytes(), nil
443 func (m *DeleteLoopback) Unmarshal(b []byte) error {
444 buf := codec.NewBuffer(b)
445 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
449 // DeleteLoopbackReply defines message 'delete_loopback_reply'.
450 type DeleteLoopbackReply struct {
451 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
454 func (m *DeleteLoopbackReply) Reset() { *m = DeleteLoopbackReply{} }
455 func (*DeleteLoopbackReply) GetMessageName() string { return "delete_loopback_reply" }
456 func (*DeleteLoopbackReply) GetCrcString() string { return "e8d4e804" }
457 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
458 return api.ReplyMessage
461 func (m *DeleteLoopbackReply) Size() (size int) {
465 size += 4 // m.Retval
468 func (m *DeleteLoopbackReply) Marshal(b []byte) ([]byte, error) {
470 b = make([]byte, m.Size())
472 buf := codec.NewBuffer(b)
473 buf.EncodeInt32(m.Retval)
474 return buf.Bytes(), nil
476 func (m *DeleteLoopbackReply) Unmarshal(b []byte) error {
477 buf := codec.NewBuffer(b)
478 m.Retval = buf.DecodeInt32()
482 // DeleteSubif defines message 'delete_subif'.
483 type DeleteSubif struct {
484 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
487 func (m *DeleteSubif) Reset() { *m = DeleteSubif{} }
488 func (*DeleteSubif) GetMessageName() string { return "delete_subif" }
489 func (*DeleteSubif) GetCrcString() string { return "f9e6675e" }
490 func (*DeleteSubif) GetMessageType() api.MessageType {
491 return api.RequestMessage
494 func (m *DeleteSubif) Size() (size int) {
498 size += 4 // m.SwIfIndex
501 func (m *DeleteSubif) Marshal(b []byte) ([]byte, error) {
503 b = make([]byte, m.Size())
505 buf := codec.NewBuffer(b)
506 buf.EncodeUint32(uint32(m.SwIfIndex))
507 return buf.Bytes(), nil
509 func (m *DeleteSubif) Unmarshal(b []byte) error {
510 buf := codec.NewBuffer(b)
511 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
515 // DeleteSubifReply defines message 'delete_subif_reply'.
516 type DeleteSubifReply struct {
517 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
520 func (m *DeleteSubifReply) Reset() { *m = DeleteSubifReply{} }
521 func (*DeleteSubifReply) GetMessageName() string { return "delete_subif_reply" }
522 func (*DeleteSubifReply) GetCrcString() string { return "e8d4e804" }
523 func (*DeleteSubifReply) GetMessageType() api.MessageType {
524 return api.ReplyMessage
527 func (m *DeleteSubifReply) Size() (size int) {
531 size += 4 // m.Retval
534 func (m *DeleteSubifReply) Marshal(b []byte) ([]byte, error) {
536 b = make([]byte, m.Size())
538 buf := codec.NewBuffer(b)
539 buf.EncodeInt32(m.Retval)
540 return buf.Bytes(), nil
542 func (m *DeleteSubifReply) Unmarshal(b []byte) error {
543 buf := codec.NewBuffer(b)
544 m.Retval = buf.DecodeInt32()
548 // HwInterfaceSetMtu defines message 'hw_interface_set_mtu'.
549 type HwInterfaceSetMtu struct {
550 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
551 Mtu uint16 `binapi:"u16,name=mtu" json:"mtu,omitempty"`
554 func (m *HwInterfaceSetMtu) Reset() { *m = HwInterfaceSetMtu{} }
555 func (*HwInterfaceSetMtu) GetMessageName() string { return "hw_interface_set_mtu" }
556 func (*HwInterfaceSetMtu) GetCrcString() string { return "e6746899" }
557 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
558 return api.RequestMessage
561 func (m *HwInterfaceSetMtu) Size() (size int) {
565 size += 4 // m.SwIfIndex
569 func (m *HwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
571 b = make([]byte, m.Size())
573 buf := codec.NewBuffer(b)
574 buf.EncodeUint32(uint32(m.SwIfIndex))
575 buf.EncodeUint16(m.Mtu)
576 return buf.Bytes(), nil
578 func (m *HwInterfaceSetMtu) Unmarshal(b []byte) error {
579 buf := codec.NewBuffer(b)
580 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
581 m.Mtu = buf.DecodeUint16()
585 // HwInterfaceSetMtuReply defines message 'hw_interface_set_mtu_reply'.
586 type HwInterfaceSetMtuReply struct {
587 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
590 func (m *HwInterfaceSetMtuReply) Reset() { *m = HwInterfaceSetMtuReply{} }
591 func (*HwInterfaceSetMtuReply) GetMessageName() string { return "hw_interface_set_mtu_reply" }
592 func (*HwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
593 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
594 return api.ReplyMessage
597 func (m *HwInterfaceSetMtuReply) Size() (size int) {
601 size += 4 // m.Retval
604 func (m *HwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
606 b = make([]byte, m.Size())
608 buf := codec.NewBuffer(b)
609 buf.EncodeInt32(m.Retval)
610 return buf.Bytes(), nil
612 func (m *HwInterfaceSetMtuReply) Unmarshal(b []byte) error {
613 buf := codec.NewBuffer(b)
614 m.Retval = buf.DecodeInt32()
618 // InterfaceNameRenumber defines message 'interface_name_renumber'.
619 type InterfaceNameRenumber struct {
620 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
621 NewShowDevInstance uint32 `binapi:"u32,name=new_show_dev_instance" json:"new_show_dev_instance,omitempty"`
624 func (m *InterfaceNameRenumber) Reset() { *m = InterfaceNameRenumber{} }
625 func (*InterfaceNameRenumber) GetMessageName() string { return "interface_name_renumber" }
626 func (*InterfaceNameRenumber) GetCrcString() string { return "2b8858b8" }
627 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
628 return api.RequestMessage
631 func (m *InterfaceNameRenumber) Size() (size int) {
635 size += 4 // m.SwIfIndex
636 size += 4 // m.NewShowDevInstance
639 func (m *InterfaceNameRenumber) Marshal(b []byte) ([]byte, error) {
641 b = make([]byte, m.Size())
643 buf := codec.NewBuffer(b)
644 buf.EncodeUint32(uint32(m.SwIfIndex))
645 buf.EncodeUint32(m.NewShowDevInstance)
646 return buf.Bytes(), nil
648 func (m *InterfaceNameRenumber) Unmarshal(b []byte) error {
649 buf := codec.NewBuffer(b)
650 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
651 m.NewShowDevInstance = buf.DecodeUint32()
655 // InterfaceNameRenumberReply defines message 'interface_name_renumber_reply'.
656 type InterfaceNameRenumberReply struct {
657 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
660 func (m *InterfaceNameRenumberReply) Reset() { *m = InterfaceNameRenumberReply{} }
661 func (*InterfaceNameRenumberReply) GetMessageName() string { return "interface_name_renumber_reply" }
662 func (*InterfaceNameRenumberReply) GetCrcString() string { return "e8d4e804" }
663 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
664 return api.ReplyMessage
667 func (m *InterfaceNameRenumberReply) Size() (size int) {
671 size += 4 // m.Retval
674 func (m *InterfaceNameRenumberReply) Marshal(b []byte) ([]byte, error) {
676 b = make([]byte, m.Size())
678 buf := codec.NewBuffer(b)
679 buf.EncodeInt32(m.Retval)
680 return buf.Bytes(), nil
682 func (m *InterfaceNameRenumberReply) Unmarshal(b []byte) error {
683 buf := codec.NewBuffer(b)
684 m.Retval = buf.DecodeInt32()
688 // SwInterfaceAddDelAddress defines message 'sw_interface_add_del_address'.
689 type SwInterfaceAddDelAddress struct {
690 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
691 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
692 DelAll bool `binapi:"bool,name=del_all" json:"del_all,omitempty"`
693 Prefix ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=prefix" json:"prefix,omitempty"`
696 func (m *SwInterfaceAddDelAddress) Reset() { *m = SwInterfaceAddDelAddress{} }
697 func (*SwInterfaceAddDelAddress) GetMessageName() string { return "sw_interface_add_del_address" }
698 func (*SwInterfaceAddDelAddress) GetCrcString() string { return "5463d73b" }
699 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
700 return api.RequestMessage
703 func (m *SwInterfaceAddDelAddress) Size() (size int) {
707 size += 4 // m.SwIfIndex
709 size += 1 // m.DelAll
710 size += 1 // m.Prefix.Address.Af
711 size += 1 * 16 // m.Prefix.Address.Un
712 size += 1 // m.Prefix.Len
715 func (m *SwInterfaceAddDelAddress) Marshal(b []byte) ([]byte, error) {
717 b = make([]byte, m.Size())
719 buf := codec.NewBuffer(b)
720 buf.EncodeUint32(uint32(m.SwIfIndex))
721 buf.EncodeBool(m.IsAdd)
722 buf.EncodeBool(m.DelAll)
723 buf.EncodeUint8(uint8(m.Prefix.Address.Af))
724 buf.EncodeBytes(m.Prefix.Address.Un.XXX_UnionData[:], 16)
725 buf.EncodeUint8(m.Prefix.Len)
726 return buf.Bytes(), nil
728 func (m *SwInterfaceAddDelAddress) Unmarshal(b []byte) error {
729 buf := codec.NewBuffer(b)
730 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
731 m.IsAdd = buf.DecodeBool()
732 m.DelAll = buf.DecodeBool()
733 m.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
734 copy(m.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
735 m.Prefix.Len = buf.DecodeUint8()
739 // SwInterfaceAddDelAddressReply defines message 'sw_interface_add_del_address_reply'.
740 type SwInterfaceAddDelAddressReply struct {
741 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
744 func (m *SwInterfaceAddDelAddressReply) Reset() { *m = SwInterfaceAddDelAddressReply{} }
745 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
746 return "sw_interface_add_del_address_reply"
748 func (*SwInterfaceAddDelAddressReply) GetCrcString() string { return "e8d4e804" }
749 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
750 return api.ReplyMessage
753 func (m *SwInterfaceAddDelAddressReply) Size() (size int) {
757 size += 4 // m.Retval
760 func (m *SwInterfaceAddDelAddressReply) Marshal(b []byte) ([]byte, error) {
762 b = make([]byte, m.Size())
764 buf := codec.NewBuffer(b)
765 buf.EncodeInt32(m.Retval)
766 return buf.Bytes(), nil
768 func (m *SwInterfaceAddDelAddressReply) Unmarshal(b []byte) error {
769 buf := codec.NewBuffer(b)
770 m.Retval = buf.DecodeInt32()
774 // SwInterfaceAddDelMacAddress defines message 'sw_interface_add_del_mac_address'.
775 type SwInterfaceAddDelMacAddress struct {
776 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
777 Addr ethernet_types.MacAddress `binapi:"mac_address,name=addr" json:"addr,omitempty"`
778 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
781 func (m *SwInterfaceAddDelMacAddress) Reset() { *m = SwInterfaceAddDelMacAddress{} }
782 func (*SwInterfaceAddDelMacAddress) GetMessageName() string {
783 return "sw_interface_add_del_mac_address"
785 func (*SwInterfaceAddDelMacAddress) GetCrcString() string { return "638bb9f4" }
786 func (*SwInterfaceAddDelMacAddress) GetMessageType() api.MessageType {
787 return api.RequestMessage
790 func (m *SwInterfaceAddDelMacAddress) Size() (size int) {
794 size += 4 // m.SwIfIndex
795 size += 1 * 6 // m.Addr
799 func (m *SwInterfaceAddDelMacAddress) Marshal(b []byte) ([]byte, error) {
801 b = make([]byte, m.Size())
803 buf := codec.NewBuffer(b)
804 buf.EncodeUint32(m.SwIfIndex)
805 buf.EncodeBytes(m.Addr[:], 6)
806 buf.EncodeUint8(m.IsAdd)
807 return buf.Bytes(), nil
809 func (m *SwInterfaceAddDelMacAddress) Unmarshal(b []byte) error {
810 buf := codec.NewBuffer(b)
811 m.SwIfIndex = buf.DecodeUint32()
812 copy(m.Addr[:], buf.DecodeBytes(6))
813 m.IsAdd = buf.DecodeUint8()
817 // SwInterfaceAddDelMacAddressReply defines message 'sw_interface_add_del_mac_address_reply'.
818 type SwInterfaceAddDelMacAddressReply struct {
819 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
822 func (m *SwInterfaceAddDelMacAddressReply) Reset() { *m = SwInterfaceAddDelMacAddressReply{} }
823 func (*SwInterfaceAddDelMacAddressReply) GetMessageName() string {
824 return "sw_interface_add_del_mac_address_reply"
826 func (*SwInterfaceAddDelMacAddressReply) GetCrcString() string { return "e8d4e804" }
827 func (*SwInterfaceAddDelMacAddressReply) GetMessageType() api.MessageType {
828 return api.ReplyMessage
831 func (m *SwInterfaceAddDelMacAddressReply) Size() (size int) {
835 size += 4 // m.Retval
838 func (m *SwInterfaceAddDelMacAddressReply) Marshal(b []byte) ([]byte, error) {
840 b = make([]byte, m.Size())
842 buf := codec.NewBuffer(b)
843 buf.EncodeInt32(m.Retval)
844 return buf.Bytes(), nil
846 func (m *SwInterfaceAddDelMacAddressReply) Unmarshal(b []byte) error {
847 buf := codec.NewBuffer(b)
848 m.Retval = buf.DecodeInt32()
852 // SwInterfaceAddressReplaceBegin defines message 'sw_interface_address_replace_begin'.
853 type SwInterfaceAddressReplaceBegin struct{}
855 func (m *SwInterfaceAddressReplaceBegin) Reset() { *m = SwInterfaceAddressReplaceBegin{} }
856 func (*SwInterfaceAddressReplaceBegin) GetMessageName() string {
857 return "sw_interface_address_replace_begin"
859 func (*SwInterfaceAddressReplaceBegin) GetCrcString() string { return "51077d14" }
860 func (*SwInterfaceAddressReplaceBegin) GetMessageType() api.MessageType {
861 return api.RequestMessage
864 func (m *SwInterfaceAddressReplaceBegin) Size() (size int) {
870 func (m *SwInterfaceAddressReplaceBegin) Marshal(b []byte) ([]byte, error) {
872 b = make([]byte, m.Size())
874 buf := codec.NewBuffer(b)
875 return buf.Bytes(), nil
877 func (m *SwInterfaceAddressReplaceBegin) Unmarshal(b []byte) error {
881 // SwInterfaceAddressReplaceBeginReply defines message 'sw_interface_address_replace_begin_reply'.
882 type SwInterfaceAddressReplaceBeginReply struct {
883 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
886 func (m *SwInterfaceAddressReplaceBeginReply) Reset() { *m = SwInterfaceAddressReplaceBeginReply{} }
887 func (*SwInterfaceAddressReplaceBeginReply) GetMessageName() string {
888 return "sw_interface_address_replace_begin_reply"
890 func (*SwInterfaceAddressReplaceBeginReply) GetCrcString() string { return "e8d4e804" }
891 func (*SwInterfaceAddressReplaceBeginReply) GetMessageType() api.MessageType {
892 return api.ReplyMessage
895 func (m *SwInterfaceAddressReplaceBeginReply) Size() (size int) {
899 size += 4 // m.Retval
902 func (m *SwInterfaceAddressReplaceBeginReply) Marshal(b []byte) ([]byte, error) {
904 b = make([]byte, m.Size())
906 buf := codec.NewBuffer(b)
907 buf.EncodeInt32(m.Retval)
908 return buf.Bytes(), nil
910 func (m *SwInterfaceAddressReplaceBeginReply) Unmarshal(b []byte) error {
911 buf := codec.NewBuffer(b)
912 m.Retval = buf.DecodeInt32()
916 // SwInterfaceAddressReplaceEnd defines message 'sw_interface_address_replace_end'.
917 type SwInterfaceAddressReplaceEnd struct{}
919 func (m *SwInterfaceAddressReplaceEnd) Reset() { *m = SwInterfaceAddressReplaceEnd{} }
920 func (*SwInterfaceAddressReplaceEnd) GetMessageName() string {
921 return "sw_interface_address_replace_end"
923 func (*SwInterfaceAddressReplaceEnd) GetCrcString() string { return "51077d14" }
924 func (*SwInterfaceAddressReplaceEnd) GetMessageType() api.MessageType {
925 return api.RequestMessage
928 func (m *SwInterfaceAddressReplaceEnd) Size() (size int) {
934 func (m *SwInterfaceAddressReplaceEnd) Marshal(b []byte) ([]byte, error) {
936 b = make([]byte, m.Size())
938 buf := codec.NewBuffer(b)
939 return buf.Bytes(), nil
941 func (m *SwInterfaceAddressReplaceEnd) Unmarshal(b []byte) error {
945 // SwInterfaceAddressReplaceEndReply defines message 'sw_interface_address_replace_end_reply'.
946 type SwInterfaceAddressReplaceEndReply struct {
947 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
950 func (m *SwInterfaceAddressReplaceEndReply) Reset() { *m = SwInterfaceAddressReplaceEndReply{} }
951 func (*SwInterfaceAddressReplaceEndReply) GetMessageName() string {
952 return "sw_interface_address_replace_end_reply"
954 func (*SwInterfaceAddressReplaceEndReply) GetCrcString() string { return "e8d4e804" }
955 func (*SwInterfaceAddressReplaceEndReply) GetMessageType() api.MessageType {
956 return api.ReplyMessage
959 func (m *SwInterfaceAddressReplaceEndReply) Size() (size int) {
963 size += 4 // m.Retval
966 func (m *SwInterfaceAddressReplaceEndReply) Marshal(b []byte) ([]byte, error) {
968 b = make([]byte, m.Size())
970 buf := codec.NewBuffer(b)
971 buf.EncodeInt32(m.Retval)
972 return buf.Bytes(), nil
974 func (m *SwInterfaceAddressReplaceEndReply) Unmarshal(b []byte) error {
975 buf := codec.NewBuffer(b)
976 m.Retval = buf.DecodeInt32()
980 // SwInterfaceClearStats defines message 'sw_interface_clear_stats'.
981 type SwInterfaceClearStats struct {
982 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
985 func (m *SwInterfaceClearStats) Reset() { *m = SwInterfaceClearStats{} }
986 func (*SwInterfaceClearStats) GetMessageName() string { return "sw_interface_clear_stats" }
987 func (*SwInterfaceClearStats) GetCrcString() string { return "f9e6675e" }
988 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
989 return api.RequestMessage
992 func (m *SwInterfaceClearStats) Size() (size int) {
996 size += 4 // m.SwIfIndex
999 func (m *SwInterfaceClearStats) Marshal(b []byte) ([]byte, error) {
1001 b = make([]byte, m.Size())
1003 buf := codec.NewBuffer(b)
1004 buf.EncodeUint32(uint32(m.SwIfIndex))
1005 return buf.Bytes(), nil
1007 func (m *SwInterfaceClearStats) Unmarshal(b []byte) error {
1008 buf := codec.NewBuffer(b)
1009 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1013 // SwInterfaceClearStatsReply defines message 'sw_interface_clear_stats_reply'.
1014 type SwInterfaceClearStatsReply struct {
1015 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1018 func (m *SwInterfaceClearStatsReply) Reset() { *m = SwInterfaceClearStatsReply{} }
1019 func (*SwInterfaceClearStatsReply) GetMessageName() string { return "sw_interface_clear_stats_reply" }
1020 func (*SwInterfaceClearStatsReply) GetCrcString() string { return "e8d4e804" }
1021 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1022 return api.ReplyMessage
1025 func (m *SwInterfaceClearStatsReply) Size() (size int) {
1029 size += 4 // m.Retval
1032 func (m *SwInterfaceClearStatsReply) Marshal(b []byte) ([]byte, error) {
1034 b = make([]byte, m.Size())
1036 buf := codec.NewBuffer(b)
1037 buf.EncodeInt32(m.Retval)
1038 return buf.Bytes(), nil
1040 func (m *SwInterfaceClearStatsReply) Unmarshal(b []byte) error {
1041 buf := codec.NewBuffer(b)
1042 m.Retval = buf.DecodeInt32()
1046 // SwInterfaceDetails defines message 'sw_interface_details'.
1047 type SwInterfaceDetails struct {
1048 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1049 SupSwIfIndex uint32 `binapi:"u32,name=sup_sw_if_index" json:"sup_sw_if_index,omitempty"`
1050 L2Address ethernet_types.MacAddress `binapi:"mac_address,name=l2_address" json:"l2_address,omitempty"`
1051 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1052 Type interface_types.IfType `binapi:"if_type,name=type" json:"type,omitempty"`
1053 LinkDuplex interface_types.LinkDuplex `binapi:"link_duplex,name=link_duplex" json:"link_duplex,omitempty"`
1054 LinkSpeed uint32 `binapi:"u32,name=link_speed" json:"link_speed,omitempty"`
1055 LinkMtu uint16 `binapi:"u16,name=link_mtu" json:"link_mtu,omitempty"`
1056 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty"`
1057 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
1058 SubNumberOfTags uint8 `binapi:"u8,name=sub_number_of_tags" json:"sub_number_of_tags,omitempty"`
1059 SubOuterVlanID uint16 `binapi:"u16,name=sub_outer_vlan_id" json:"sub_outer_vlan_id,omitempty"`
1060 SubInnerVlanID uint16 `binapi:"u16,name=sub_inner_vlan_id" json:"sub_inner_vlan_id,omitempty"`
1061 SubIfFlags interface_types.SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
1062 VtrOp uint32 `binapi:"u32,name=vtr_op" json:"vtr_op,omitempty"`
1063 VtrPushDot1q uint32 `binapi:"u32,name=vtr_push_dot1q" json:"vtr_push_dot1q,omitempty"`
1064 VtrTag1 uint32 `binapi:"u32,name=vtr_tag1" json:"vtr_tag1,omitempty"`
1065 VtrTag2 uint32 `binapi:"u32,name=vtr_tag2" json:"vtr_tag2,omitempty"`
1066 OuterTag uint16 `binapi:"u16,name=outer_tag" json:"outer_tag,omitempty"`
1067 BDmac ethernet_types.MacAddress `binapi:"mac_address,name=b_dmac" json:"b_dmac,omitempty"`
1068 BSmac ethernet_types.MacAddress `binapi:"mac_address,name=b_smac" json:"b_smac,omitempty"`
1069 BVlanid uint16 `binapi:"u16,name=b_vlanid" json:"b_vlanid,omitempty"`
1070 ISid uint32 `binapi:"u32,name=i_sid" json:"i_sid,omitempty"`
1071 InterfaceName string `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"`
1072 InterfaceDevType string `binapi:"string[64],name=interface_dev_type" json:"interface_dev_type,omitempty"`
1073 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
1076 func (m *SwInterfaceDetails) Reset() { *m = SwInterfaceDetails{} }
1077 func (*SwInterfaceDetails) GetMessageName() string { return "sw_interface_details" }
1078 func (*SwInterfaceDetails) GetCrcString() string { return "6c221fc7" }
1079 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
1080 return api.ReplyMessage
1083 func (m *SwInterfaceDetails) Size() (size int) {
1087 size += 4 // m.SwIfIndex
1088 size += 4 // m.SupSwIfIndex
1089 size += 1 * 6 // m.L2Address
1090 size += 4 // m.Flags
1092 size += 4 // m.LinkDuplex
1093 size += 4 // m.LinkSpeed
1094 size += 2 // m.LinkMtu
1095 size += 4 * 4 // m.Mtu
1096 size += 4 // m.SubID
1097 size += 1 // m.SubNumberOfTags
1098 size += 2 // m.SubOuterVlanID
1099 size += 2 // m.SubInnerVlanID
1100 size += 4 // m.SubIfFlags
1101 size += 4 // m.VtrOp
1102 size += 4 // m.VtrPushDot1q
1103 size += 4 // m.VtrTag1
1104 size += 4 // m.VtrTag2
1105 size += 2 // m.OuterTag
1106 size += 1 * 6 // m.BDmac
1107 size += 1 * 6 // m.BSmac
1108 size += 2 // m.BVlanid
1110 size += 64 // m.InterfaceName
1111 size += 64 // m.InterfaceDevType
1115 func (m *SwInterfaceDetails) Marshal(b []byte) ([]byte, error) {
1117 b = make([]byte, m.Size())
1119 buf := codec.NewBuffer(b)
1120 buf.EncodeUint32(uint32(m.SwIfIndex))
1121 buf.EncodeUint32(m.SupSwIfIndex)
1122 buf.EncodeBytes(m.L2Address[:], 6)
1123 buf.EncodeUint32(uint32(m.Flags))
1124 buf.EncodeUint32(uint32(m.Type))
1125 buf.EncodeUint32(uint32(m.LinkDuplex))
1126 buf.EncodeUint32(m.LinkSpeed)
1127 buf.EncodeUint16(m.LinkMtu)
1128 for i := 0; i < 4; i++ {
1131 x = uint32(m.Mtu[i])
1135 buf.EncodeUint32(m.SubID)
1136 buf.EncodeUint8(m.SubNumberOfTags)
1137 buf.EncodeUint16(m.SubOuterVlanID)
1138 buf.EncodeUint16(m.SubInnerVlanID)
1139 buf.EncodeUint32(uint32(m.SubIfFlags))
1140 buf.EncodeUint32(m.VtrOp)
1141 buf.EncodeUint32(m.VtrPushDot1q)
1142 buf.EncodeUint32(m.VtrTag1)
1143 buf.EncodeUint32(m.VtrTag2)
1144 buf.EncodeUint16(m.OuterTag)
1145 buf.EncodeBytes(m.BDmac[:], 6)
1146 buf.EncodeBytes(m.BSmac[:], 6)
1147 buf.EncodeUint16(m.BVlanid)
1148 buf.EncodeUint32(m.ISid)
1149 buf.EncodeString(m.InterfaceName, 64)
1150 buf.EncodeString(m.InterfaceDevType, 64)
1151 buf.EncodeString(m.Tag, 64)
1152 return buf.Bytes(), nil
1154 func (m *SwInterfaceDetails) Unmarshal(b []byte) error {
1155 buf := codec.NewBuffer(b)
1156 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1157 m.SupSwIfIndex = buf.DecodeUint32()
1158 copy(m.L2Address[:], buf.DecodeBytes(6))
1159 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1160 m.Type = interface_types.IfType(buf.DecodeUint32())
1161 m.LinkDuplex = interface_types.LinkDuplex(buf.DecodeUint32())
1162 m.LinkSpeed = buf.DecodeUint32()
1163 m.LinkMtu = buf.DecodeUint16()
1164 m.Mtu = make([]uint32, 4)
1165 for i := 0; i < len(m.Mtu); i++ {
1166 m.Mtu[i] = buf.DecodeUint32()
1168 m.SubID = buf.DecodeUint32()
1169 m.SubNumberOfTags = buf.DecodeUint8()
1170 m.SubOuterVlanID = buf.DecodeUint16()
1171 m.SubInnerVlanID = buf.DecodeUint16()
1172 m.SubIfFlags = interface_types.SubIfFlags(buf.DecodeUint32())
1173 m.VtrOp = buf.DecodeUint32()
1174 m.VtrPushDot1q = buf.DecodeUint32()
1175 m.VtrTag1 = buf.DecodeUint32()
1176 m.VtrTag2 = buf.DecodeUint32()
1177 m.OuterTag = buf.DecodeUint16()
1178 copy(m.BDmac[:], buf.DecodeBytes(6))
1179 copy(m.BSmac[:], buf.DecodeBytes(6))
1180 m.BVlanid = buf.DecodeUint16()
1181 m.ISid = buf.DecodeUint32()
1182 m.InterfaceName = buf.DecodeString(64)
1183 m.InterfaceDevType = buf.DecodeString(64)
1184 m.Tag = buf.DecodeString(64)
1188 // SwInterfaceDump defines message 'sw_interface_dump'.
1189 type SwInterfaceDump struct {
1190 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
1191 NameFilterValid bool `binapi:"bool,name=name_filter_valid" json:"name_filter_valid,omitempty"`
1192 NameFilter string `binapi:"string[],name=name_filter" json:"name_filter,omitempty"`
1195 func (m *SwInterfaceDump) Reset() { *m = SwInterfaceDump{} }
1196 func (*SwInterfaceDump) GetMessageName() string { return "sw_interface_dump" }
1197 func (*SwInterfaceDump) GetCrcString() string { return "aa610c27" }
1198 func (*SwInterfaceDump) GetMessageType() api.MessageType {
1199 return api.RequestMessage
1202 func (m *SwInterfaceDump) Size() (size int) {
1206 size += 4 // m.SwIfIndex
1207 size += 1 // m.NameFilterValid
1208 size += 4 + len(m.NameFilter) // m.NameFilter
1211 func (m *SwInterfaceDump) Marshal(b []byte) ([]byte, error) {
1213 b = make([]byte, m.Size())
1215 buf := codec.NewBuffer(b)
1216 buf.EncodeUint32(uint32(m.SwIfIndex))
1217 buf.EncodeBool(m.NameFilterValid)
1218 buf.EncodeString(m.NameFilter, 0)
1219 return buf.Bytes(), nil
1221 func (m *SwInterfaceDump) Unmarshal(b []byte) error {
1222 buf := codec.NewBuffer(b)
1223 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1224 m.NameFilterValid = buf.DecodeBool()
1225 m.NameFilter = buf.DecodeString(0)
1229 // SwInterfaceEvent defines message 'sw_interface_event'.
1230 type SwInterfaceEvent struct {
1231 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
1232 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1233 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1234 Deleted bool `binapi:"bool,name=deleted" json:"deleted,omitempty"`
1237 func (m *SwInterfaceEvent) Reset() { *m = SwInterfaceEvent{} }
1238 func (*SwInterfaceEvent) GetMessageName() string { return "sw_interface_event" }
1239 func (*SwInterfaceEvent) GetCrcString() string { return "2d3d95a7" }
1240 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
1241 return api.EventMessage
1244 func (m *SwInterfaceEvent) Size() (size int) {
1249 size += 4 // m.SwIfIndex
1250 size += 4 // m.Flags
1251 size += 1 // m.Deleted
1254 func (m *SwInterfaceEvent) Marshal(b []byte) ([]byte, error) {
1256 b = make([]byte, m.Size())
1258 buf := codec.NewBuffer(b)
1259 buf.EncodeUint32(m.PID)
1260 buf.EncodeUint32(uint32(m.SwIfIndex))
1261 buf.EncodeUint32(uint32(m.Flags))
1262 buf.EncodeBool(m.Deleted)
1263 return buf.Bytes(), nil
1265 func (m *SwInterfaceEvent) Unmarshal(b []byte) error {
1266 buf := codec.NewBuffer(b)
1267 m.PID = buf.DecodeUint32()
1268 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1269 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1270 m.Deleted = buf.DecodeBool()
1274 // SwInterfaceGetMacAddress defines message 'sw_interface_get_mac_address'.
1275 type SwInterfaceGetMacAddress struct {
1276 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1279 func (m *SwInterfaceGetMacAddress) Reset() { *m = SwInterfaceGetMacAddress{} }
1280 func (*SwInterfaceGetMacAddress) GetMessageName() string { return "sw_interface_get_mac_address" }
1281 func (*SwInterfaceGetMacAddress) GetCrcString() string { return "f9e6675e" }
1282 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1283 return api.RequestMessage
1286 func (m *SwInterfaceGetMacAddress) Size() (size int) {
1290 size += 4 // m.SwIfIndex
1293 func (m *SwInterfaceGetMacAddress) Marshal(b []byte) ([]byte, error) {
1295 b = make([]byte, m.Size())
1297 buf := codec.NewBuffer(b)
1298 buf.EncodeUint32(uint32(m.SwIfIndex))
1299 return buf.Bytes(), nil
1301 func (m *SwInterfaceGetMacAddress) Unmarshal(b []byte) error {
1302 buf := codec.NewBuffer(b)
1303 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1307 // SwInterfaceGetMacAddressReply defines message 'sw_interface_get_mac_address_reply'.
1308 type SwInterfaceGetMacAddressReply struct {
1309 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1310 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
1313 func (m *SwInterfaceGetMacAddressReply) Reset() { *m = SwInterfaceGetMacAddressReply{} }
1314 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1315 return "sw_interface_get_mac_address_reply"
1317 func (*SwInterfaceGetMacAddressReply) GetCrcString() string { return "40ef2c08" }
1318 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1319 return api.ReplyMessage
1322 func (m *SwInterfaceGetMacAddressReply) Size() (size int) {
1326 size += 4 // m.Retval
1327 size += 1 * 6 // m.MacAddress
1330 func (m *SwInterfaceGetMacAddressReply) Marshal(b []byte) ([]byte, error) {
1332 b = make([]byte, m.Size())
1334 buf := codec.NewBuffer(b)
1335 buf.EncodeInt32(m.Retval)
1336 buf.EncodeBytes(m.MacAddress[:], 6)
1337 return buf.Bytes(), nil
1339 func (m *SwInterfaceGetMacAddressReply) Unmarshal(b []byte) error {
1340 buf := codec.NewBuffer(b)
1341 m.Retval = buf.DecodeInt32()
1342 copy(m.MacAddress[:], buf.DecodeBytes(6))
1346 // SwInterfaceGetTable defines message 'sw_interface_get_table'.
1347 type SwInterfaceGetTable struct {
1348 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1349 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
1352 func (m *SwInterfaceGetTable) Reset() { *m = SwInterfaceGetTable{} }
1353 func (*SwInterfaceGetTable) GetMessageName() string { return "sw_interface_get_table" }
1354 func (*SwInterfaceGetTable) GetCrcString() string { return "2d033de4" }
1355 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1356 return api.RequestMessage
1359 func (m *SwInterfaceGetTable) Size() (size int) {
1363 size += 4 // m.SwIfIndex
1364 size += 1 // m.IsIPv6
1367 func (m *SwInterfaceGetTable) Marshal(b []byte) ([]byte, error) {
1369 b = make([]byte, m.Size())
1371 buf := codec.NewBuffer(b)
1372 buf.EncodeUint32(uint32(m.SwIfIndex))
1373 buf.EncodeBool(m.IsIPv6)
1374 return buf.Bytes(), nil
1376 func (m *SwInterfaceGetTable) Unmarshal(b []byte) error {
1377 buf := codec.NewBuffer(b)
1378 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1379 m.IsIPv6 = buf.DecodeBool()
1383 // SwInterfaceGetTableReply defines message 'sw_interface_get_table_reply'.
1384 type SwInterfaceGetTableReply struct {
1385 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1386 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
1389 func (m *SwInterfaceGetTableReply) Reset() { *m = SwInterfaceGetTableReply{} }
1390 func (*SwInterfaceGetTableReply) GetMessageName() string { return "sw_interface_get_table_reply" }
1391 func (*SwInterfaceGetTableReply) GetCrcString() string { return "a6eb0109" }
1392 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1393 return api.ReplyMessage
1396 func (m *SwInterfaceGetTableReply) Size() (size int) {
1400 size += 4 // m.Retval
1401 size += 4 // m.VrfID
1404 func (m *SwInterfaceGetTableReply) Marshal(b []byte) ([]byte, error) {
1406 b = make([]byte, m.Size())
1408 buf := codec.NewBuffer(b)
1409 buf.EncodeInt32(m.Retval)
1410 buf.EncodeUint32(m.VrfID)
1411 return buf.Bytes(), nil
1413 func (m *SwInterfaceGetTableReply) Unmarshal(b []byte) error {
1414 buf := codec.NewBuffer(b)
1415 m.Retval = buf.DecodeInt32()
1416 m.VrfID = buf.DecodeUint32()
1420 // SwInterfaceRxPlacementDetails defines message 'sw_interface_rx_placement_details'.
1421 type SwInterfaceRxPlacementDetails struct {
1422 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1423 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1424 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
1425 Mode interface_types.RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
1428 func (m *SwInterfaceRxPlacementDetails) Reset() { *m = SwInterfaceRxPlacementDetails{} }
1429 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
1430 return "sw_interface_rx_placement_details"
1432 func (*SwInterfaceRxPlacementDetails) GetCrcString() string { return "9e44a7ce" }
1433 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
1434 return api.RequestMessage
1437 func (m *SwInterfaceRxPlacementDetails) Size() (size int) {
1441 size += 4 // m.SwIfIndex
1442 size += 4 // m.QueueID
1443 size += 4 // m.WorkerID
1447 func (m *SwInterfaceRxPlacementDetails) Marshal(b []byte) ([]byte, error) {
1449 b = make([]byte, m.Size())
1451 buf := codec.NewBuffer(b)
1452 buf.EncodeUint32(uint32(m.SwIfIndex))
1453 buf.EncodeUint32(m.QueueID)
1454 buf.EncodeUint32(m.WorkerID)
1455 buf.EncodeUint32(uint32(m.Mode))
1456 return buf.Bytes(), nil
1458 func (m *SwInterfaceRxPlacementDetails) Unmarshal(b []byte) error {
1459 buf := codec.NewBuffer(b)
1460 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1461 m.QueueID = buf.DecodeUint32()
1462 m.WorkerID = buf.DecodeUint32()
1463 m.Mode = interface_types.RxMode(buf.DecodeUint32())
1467 // SwInterfaceRxPlacementDump defines message 'sw_interface_rx_placement_dump'.
1468 type SwInterfaceRxPlacementDump struct {
1469 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1472 func (m *SwInterfaceRxPlacementDump) Reset() { *m = SwInterfaceRxPlacementDump{} }
1473 func (*SwInterfaceRxPlacementDump) GetMessageName() string { return "sw_interface_rx_placement_dump" }
1474 func (*SwInterfaceRxPlacementDump) GetCrcString() string { return "f9e6675e" }
1475 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
1476 return api.RequestMessage
1479 func (m *SwInterfaceRxPlacementDump) Size() (size int) {
1483 size += 4 // m.SwIfIndex
1486 func (m *SwInterfaceRxPlacementDump) Marshal(b []byte) ([]byte, error) {
1488 b = make([]byte, m.Size())
1490 buf := codec.NewBuffer(b)
1491 buf.EncodeUint32(uint32(m.SwIfIndex))
1492 return buf.Bytes(), nil
1494 func (m *SwInterfaceRxPlacementDump) Unmarshal(b []byte) error {
1495 buf := codec.NewBuffer(b)
1496 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1500 // SwInterfaceSetFlags defines message 'sw_interface_set_flags'.
1501 type SwInterfaceSetFlags struct {
1502 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1503 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1506 func (m *SwInterfaceSetFlags) Reset() { *m = SwInterfaceSetFlags{} }
1507 func (*SwInterfaceSetFlags) GetMessageName() string { return "sw_interface_set_flags" }
1508 func (*SwInterfaceSetFlags) GetCrcString() string { return "f5aec1b8" }
1509 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
1510 return api.RequestMessage
1513 func (m *SwInterfaceSetFlags) Size() (size int) {
1517 size += 4 // m.SwIfIndex
1518 size += 4 // m.Flags
1521 func (m *SwInterfaceSetFlags) Marshal(b []byte) ([]byte, error) {
1523 b = make([]byte, m.Size())
1525 buf := codec.NewBuffer(b)
1526 buf.EncodeUint32(uint32(m.SwIfIndex))
1527 buf.EncodeUint32(uint32(m.Flags))
1528 return buf.Bytes(), nil
1530 func (m *SwInterfaceSetFlags) Unmarshal(b []byte) error {
1531 buf := codec.NewBuffer(b)
1532 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1533 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32())
1537 // SwInterfaceSetFlagsReply defines message 'sw_interface_set_flags_reply'.
1538 type SwInterfaceSetFlagsReply struct {
1539 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1542 func (m *SwInterfaceSetFlagsReply) Reset() { *m = SwInterfaceSetFlagsReply{} }
1543 func (*SwInterfaceSetFlagsReply) GetMessageName() string { return "sw_interface_set_flags_reply" }
1544 func (*SwInterfaceSetFlagsReply) GetCrcString() string { return "e8d4e804" }
1545 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
1546 return api.ReplyMessage
1549 func (m *SwInterfaceSetFlagsReply) Size() (size int) {
1553 size += 4 // m.Retval
1556 func (m *SwInterfaceSetFlagsReply) Marshal(b []byte) ([]byte, error) {
1558 b = make([]byte, m.Size())
1560 buf := codec.NewBuffer(b)
1561 buf.EncodeInt32(m.Retval)
1562 return buf.Bytes(), nil
1564 func (m *SwInterfaceSetFlagsReply) Unmarshal(b []byte) error {
1565 buf := codec.NewBuffer(b)
1566 m.Retval = buf.DecodeInt32()
1570 // SwInterfaceSetIPDirectedBroadcast defines message 'sw_interface_set_ip_directed_broadcast'.
1571 type SwInterfaceSetIPDirectedBroadcast struct {
1572 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1573 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1576 func (m *SwInterfaceSetIPDirectedBroadcast) Reset() { *m = SwInterfaceSetIPDirectedBroadcast{} }
1577 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
1578 return "sw_interface_set_ip_directed_broadcast"
1580 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string { return "ae6cfcfb" }
1581 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
1582 return api.RequestMessage
1585 func (m *SwInterfaceSetIPDirectedBroadcast) Size() (size int) {
1589 size += 4 // m.SwIfIndex
1590 size += 1 // m.Enable
1593 func (m *SwInterfaceSetIPDirectedBroadcast) Marshal(b []byte) ([]byte, error) {
1595 b = make([]byte, m.Size())
1597 buf := codec.NewBuffer(b)
1598 buf.EncodeUint32(uint32(m.SwIfIndex))
1599 buf.EncodeBool(m.Enable)
1600 return buf.Bytes(), nil
1602 func (m *SwInterfaceSetIPDirectedBroadcast) Unmarshal(b []byte) error {
1603 buf := codec.NewBuffer(b)
1604 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1605 m.Enable = buf.DecodeBool()
1609 // SwInterfaceSetIPDirectedBroadcastReply defines message 'sw_interface_set_ip_directed_broadcast_reply'.
1610 type SwInterfaceSetIPDirectedBroadcastReply struct {
1611 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1614 func (m *SwInterfaceSetIPDirectedBroadcastReply) Reset() {
1615 *m = SwInterfaceSetIPDirectedBroadcastReply{}
1617 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
1618 return "sw_interface_set_ip_directed_broadcast_reply"
1620 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string { return "e8d4e804" }
1621 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
1622 return api.ReplyMessage
1625 func (m *SwInterfaceSetIPDirectedBroadcastReply) Size() (size int) {
1629 size += 4 // m.Retval
1632 func (m *SwInterfaceSetIPDirectedBroadcastReply) Marshal(b []byte) ([]byte, error) {
1634 b = make([]byte, m.Size())
1636 buf := codec.NewBuffer(b)
1637 buf.EncodeInt32(m.Retval)
1638 return buf.Bytes(), nil
1640 func (m *SwInterfaceSetIPDirectedBroadcastReply) Unmarshal(b []byte) error {
1641 buf := codec.NewBuffer(b)
1642 m.Retval = buf.DecodeInt32()
1646 // SwInterfaceSetMacAddress defines message 'sw_interface_set_mac_address'.
1647 type SwInterfaceSetMacAddress struct {
1648 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1649 MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
1652 func (m *SwInterfaceSetMacAddress) Reset() { *m = SwInterfaceSetMacAddress{} }
1653 func (*SwInterfaceSetMacAddress) GetMessageName() string { return "sw_interface_set_mac_address" }
1654 func (*SwInterfaceSetMacAddress) GetCrcString() string { return "c536e7eb" }
1655 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1656 return api.RequestMessage
1659 func (m *SwInterfaceSetMacAddress) Size() (size int) {
1663 size += 4 // m.SwIfIndex
1664 size += 1 * 6 // m.MacAddress
1667 func (m *SwInterfaceSetMacAddress) Marshal(b []byte) ([]byte, error) {
1669 b = make([]byte, m.Size())
1671 buf := codec.NewBuffer(b)
1672 buf.EncodeUint32(uint32(m.SwIfIndex))
1673 buf.EncodeBytes(m.MacAddress[:], 6)
1674 return buf.Bytes(), nil
1676 func (m *SwInterfaceSetMacAddress) Unmarshal(b []byte) error {
1677 buf := codec.NewBuffer(b)
1678 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1679 copy(m.MacAddress[:], buf.DecodeBytes(6))
1683 // SwInterfaceSetMacAddressReply defines message 'sw_interface_set_mac_address_reply'.
1684 type SwInterfaceSetMacAddressReply struct {
1685 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1688 func (m *SwInterfaceSetMacAddressReply) Reset() { *m = SwInterfaceSetMacAddressReply{} }
1689 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1690 return "sw_interface_set_mac_address_reply"
1692 func (*SwInterfaceSetMacAddressReply) GetCrcString() string { return "e8d4e804" }
1693 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1694 return api.ReplyMessage
1697 func (m *SwInterfaceSetMacAddressReply) Size() (size int) {
1701 size += 4 // m.Retval
1704 func (m *SwInterfaceSetMacAddressReply) Marshal(b []byte) ([]byte, error) {
1706 b = make([]byte, m.Size())
1708 buf := codec.NewBuffer(b)
1709 buf.EncodeInt32(m.Retval)
1710 return buf.Bytes(), nil
1712 func (m *SwInterfaceSetMacAddressReply) Unmarshal(b []byte) error {
1713 buf := codec.NewBuffer(b)
1714 m.Retval = buf.DecodeInt32()
1718 // SwInterfaceSetMtu defines message 'sw_interface_set_mtu'.
1719 type SwInterfaceSetMtu struct {
1720 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1721 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty"`
1724 func (m *SwInterfaceSetMtu) Reset() { *m = SwInterfaceSetMtu{} }
1725 func (*SwInterfaceSetMtu) GetMessageName() string { return "sw_interface_set_mtu" }
1726 func (*SwInterfaceSetMtu) GetCrcString() string { return "5cbe85e5" }
1727 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
1728 return api.RequestMessage
1731 func (m *SwInterfaceSetMtu) Size() (size int) {
1735 size += 4 // m.SwIfIndex
1736 size += 4 * 4 // m.Mtu
1739 func (m *SwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
1741 b = make([]byte, m.Size())
1743 buf := codec.NewBuffer(b)
1744 buf.EncodeUint32(uint32(m.SwIfIndex))
1745 for i := 0; i < 4; i++ {
1748 x = uint32(m.Mtu[i])
1752 return buf.Bytes(), nil
1754 func (m *SwInterfaceSetMtu) Unmarshal(b []byte) error {
1755 buf := codec.NewBuffer(b)
1756 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1757 m.Mtu = make([]uint32, 4)
1758 for i := 0; i < len(m.Mtu); i++ {
1759 m.Mtu[i] = buf.DecodeUint32()
1764 // SwInterfaceSetMtuReply defines message 'sw_interface_set_mtu_reply'.
1765 type SwInterfaceSetMtuReply struct {
1766 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1769 func (m *SwInterfaceSetMtuReply) Reset() { *m = SwInterfaceSetMtuReply{} }
1770 func (*SwInterfaceSetMtuReply) GetMessageName() string { return "sw_interface_set_mtu_reply" }
1771 func (*SwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
1772 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
1773 return api.ReplyMessage
1776 func (m *SwInterfaceSetMtuReply) Size() (size int) {
1780 size += 4 // m.Retval
1783 func (m *SwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
1785 b = make([]byte, m.Size())
1787 buf := codec.NewBuffer(b)
1788 buf.EncodeInt32(m.Retval)
1789 return buf.Bytes(), nil
1791 func (m *SwInterfaceSetMtuReply) Unmarshal(b []byte) error {
1792 buf := codec.NewBuffer(b)
1793 m.Retval = buf.DecodeInt32()
1797 // SwInterfaceSetPromisc defines message 'sw_interface_set_promisc'.
1798 type SwInterfaceSetPromisc struct {
1799 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1800 PromiscOn bool `binapi:"bool,name=promisc_on" json:"promisc_on,omitempty"`
1803 func (m *SwInterfaceSetPromisc) Reset() { *m = SwInterfaceSetPromisc{} }
1804 func (*SwInterfaceSetPromisc) GetMessageName() string { return "sw_interface_set_promisc" }
1805 func (*SwInterfaceSetPromisc) GetCrcString() string { return "d40860d4" }
1806 func (*SwInterfaceSetPromisc) GetMessageType() api.MessageType {
1807 return api.RequestMessage
1810 func (m *SwInterfaceSetPromisc) Size() (size int) {
1814 size += 4 // m.SwIfIndex
1815 size += 1 // m.PromiscOn
1818 func (m *SwInterfaceSetPromisc) Marshal(b []byte) ([]byte, error) {
1820 b = make([]byte, m.Size())
1822 buf := codec.NewBuffer(b)
1823 buf.EncodeUint32(uint32(m.SwIfIndex))
1824 buf.EncodeBool(m.PromiscOn)
1825 return buf.Bytes(), nil
1827 func (m *SwInterfaceSetPromisc) Unmarshal(b []byte) error {
1828 buf := codec.NewBuffer(b)
1829 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1830 m.PromiscOn = buf.DecodeBool()
1834 // SwInterfaceSetPromiscReply defines message 'sw_interface_set_promisc_reply'.
1835 type SwInterfaceSetPromiscReply struct {
1836 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1839 func (m *SwInterfaceSetPromiscReply) Reset() { *m = SwInterfaceSetPromiscReply{} }
1840 func (*SwInterfaceSetPromiscReply) GetMessageName() string { return "sw_interface_set_promisc_reply" }
1841 func (*SwInterfaceSetPromiscReply) GetCrcString() string { return "e8d4e804" }
1842 func (*SwInterfaceSetPromiscReply) GetMessageType() api.MessageType {
1843 return api.ReplyMessage
1846 func (m *SwInterfaceSetPromiscReply) Size() (size int) {
1850 size += 4 // m.Retval
1853 func (m *SwInterfaceSetPromiscReply) Marshal(b []byte) ([]byte, error) {
1855 b = make([]byte, m.Size())
1857 buf := codec.NewBuffer(b)
1858 buf.EncodeInt32(m.Retval)
1859 return buf.Bytes(), nil
1861 func (m *SwInterfaceSetPromiscReply) Unmarshal(b []byte) error {
1862 buf := codec.NewBuffer(b)
1863 m.Retval = buf.DecodeInt32()
1867 // SwInterfaceSetRxMode defines message 'sw_interface_set_rx_mode'.
1868 type SwInterfaceSetRxMode struct {
1869 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1870 QueueIDValid bool `binapi:"bool,name=queue_id_valid" json:"queue_id_valid,omitempty"`
1871 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1872 Mode interface_types.RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
1875 func (m *SwInterfaceSetRxMode) Reset() { *m = SwInterfaceSetRxMode{} }
1876 func (*SwInterfaceSetRxMode) GetMessageName() string { return "sw_interface_set_rx_mode" }
1877 func (*SwInterfaceSetRxMode) GetCrcString() string { return "b04d1cfe" }
1878 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1879 return api.RequestMessage
1882 func (m *SwInterfaceSetRxMode) Size() (size int) {
1886 size += 4 // m.SwIfIndex
1887 size += 1 // m.QueueIDValid
1888 size += 4 // m.QueueID
1892 func (m *SwInterfaceSetRxMode) Marshal(b []byte) ([]byte, error) {
1894 b = make([]byte, m.Size())
1896 buf := codec.NewBuffer(b)
1897 buf.EncodeUint32(uint32(m.SwIfIndex))
1898 buf.EncodeBool(m.QueueIDValid)
1899 buf.EncodeUint32(m.QueueID)
1900 buf.EncodeUint32(uint32(m.Mode))
1901 return buf.Bytes(), nil
1903 func (m *SwInterfaceSetRxMode) Unmarshal(b []byte) error {
1904 buf := codec.NewBuffer(b)
1905 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1906 m.QueueIDValid = buf.DecodeBool()
1907 m.QueueID = buf.DecodeUint32()
1908 m.Mode = interface_types.RxMode(buf.DecodeUint32())
1912 // SwInterfaceSetRxModeReply defines message 'sw_interface_set_rx_mode_reply'.
1913 type SwInterfaceSetRxModeReply struct {
1914 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1917 func (m *SwInterfaceSetRxModeReply) Reset() { *m = SwInterfaceSetRxModeReply{} }
1918 func (*SwInterfaceSetRxModeReply) GetMessageName() string { return "sw_interface_set_rx_mode_reply" }
1919 func (*SwInterfaceSetRxModeReply) GetCrcString() string { return "e8d4e804" }
1920 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1921 return api.ReplyMessage
1924 func (m *SwInterfaceSetRxModeReply) Size() (size int) {
1928 size += 4 // m.Retval
1931 func (m *SwInterfaceSetRxModeReply) Marshal(b []byte) ([]byte, error) {
1933 b = make([]byte, m.Size())
1935 buf := codec.NewBuffer(b)
1936 buf.EncodeInt32(m.Retval)
1937 return buf.Bytes(), nil
1939 func (m *SwInterfaceSetRxModeReply) Unmarshal(b []byte) error {
1940 buf := codec.NewBuffer(b)
1941 m.Retval = buf.DecodeInt32()
1945 // SwInterfaceSetRxPlacement defines message 'sw_interface_set_rx_placement'.
1946 type SwInterfaceSetRxPlacement struct {
1947 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1948 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
1949 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
1950 IsMain bool `binapi:"bool,name=is_main" json:"is_main,omitempty"`
1953 func (m *SwInterfaceSetRxPlacement) Reset() { *m = SwInterfaceSetRxPlacement{} }
1954 func (*SwInterfaceSetRxPlacement) GetMessageName() string { return "sw_interface_set_rx_placement" }
1955 func (*SwInterfaceSetRxPlacement) GetCrcString() string { return "db65f3c9" }
1956 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
1957 return api.RequestMessage
1960 func (m *SwInterfaceSetRxPlacement) Size() (size int) {
1964 size += 4 // m.SwIfIndex
1965 size += 4 // m.QueueID
1966 size += 4 // m.WorkerID
1967 size += 1 // m.IsMain
1970 func (m *SwInterfaceSetRxPlacement) Marshal(b []byte) ([]byte, error) {
1972 b = make([]byte, m.Size())
1974 buf := codec.NewBuffer(b)
1975 buf.EncodeUint32(uint32(m.SwIfIndex))
1976 buf.EncodeUint32(m.QueueID)
1977 buf.EncodeUint32(m.WorkerID)
1978 buf.EncodeBool(m.IsMain)
1979 return buf.Bytes(), nil
1981 func (m *SwInterfaceSetRxPlacement) Unmarshal(b []byte) error {
1982 buf := codec.NewBuffer(b)
1983 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1984 m.QueueID = buf.DecodeUint32()
1985 m.WorkerID = buf.DecodeUint32()
1986 m.IsMain = buf.DecodeBool()
1990 // SwInterfaceSetRxPlacementReply defines message 'sw_interface_set_rx_placement_reply'.
1991 type SwInterfaceSetRxPlacementReply struct {
1992 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1995 func (m *SwInterfaceSetRxPlacementReply) Reset() { *m = SwInterfaceSetRxPlacementReply{} }
1996 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
1997 return "sw_interface_set_rx_placement_reply"
1999 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string { return "e8d4e804" }
2000 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
2001 return api.ReplyMessage
2004 func (m *SwInterfaceSetRxPlacementReply) Size() (size int) {
2008 size += 4 // m.Retval
2011 func (m *SwInterfaceSetRxPlacementReply) Marshal(b []byte) ([]byte, error) {
2013 b = make([]byte, m.Size())
2015 buf := codec.NewBuffer(b)
2016 buf.EncodeInt32(m.Retval)
2017 return buf.Bytes(), nil
2019 func (m *SwInterfaceSetRxPlacementReply) Unmarshal(b []byte) error {
2020 buf := codec.NewBuffer(b)
2021 m.Retval = buf.DecodeInt32()
2025 // SwInterfaceSetTable defines message 'sw_interface_set_table'.
2026 type SwInterfaceSetTable struct {
2027 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2028 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
2029 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
2032 func (m *SwInterfaceSetTable) Reset() { *m = SwInterfaceSetTable{} }
2033 func (*SwInterfaceSetTable) GetMessageName() string { return "sw_interface_set_table" }
2034 func (*SwInterfaceSetTable) GetCrcString() string { return "df42a577" }
2035 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
2036 return api.RequestMessage
2039 func (m *SwInterfaceSetTable) Size() (size int) {
2043 size += 4 // m.SwIfIndex
2044 size += 1 // m.IsIPv6
2045 size += 4 // m.VrfID
2048 func (m *SwInterfaceSetTable) Marshal(b []byte) ([]byte, error) {
2050 b = make([]byte, m.Size())
2052 buf := codec.NewBuffer(b)
2053 buf.EncodeUint32(uint32(m.SwIfIndex))
2054 buf.EncodeBool(m.IsIPv6)
2055 buf.EncodeUint32(m.VrfID)
2056 return buf.Bytes(), nil
2058 func (m *SwInterfaceSetTable) Unmarshal(b []byte) error {
2059 buf := codec.NewBuffer(b)
2060 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2061 m.IsIPv6 = buf.DecodeBool()
2062 m.VrfID = buf.DecodeUint32()
2066 // SwInterfaceSetTableReply defines message 'sw_interface_set_table_reply'.
2067 type SwInterfaceSetTableReply struct {
2068 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2071 func (m *SwInterfaceSetTableReply) Reset() { *m = SwInterfaceSetTableReply{} }
2072 func (*SwInterfaceSetTableReply) GetMessageName() string { return "sw_interface_set_table_reply" }
2073 func (*SwInterfaceSetTableReply) GetCrcString() string { return "e8d4e804" }
2074 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
2075 return api.ReplyMessage
2078 func (m *SwInterfaceSetTableReply) Size() (size int) {
2082 size += 4 // m.Retval
2085 func (m *SwInterfaceSetTableReply) Marshal(b []byte) ([]byte, error) {
2087 b = make([]byte, m.Size())
2089 buf := codec.NewBuffer(b)
2090 buf.EncodeInt32(m.Retval)
2091 return buf.Bytes(), nil
2093 func (m *SwInterfaceSetTableReply) Unmarshal(b []byte) error {
2094 buf := codec.NewBuffer(b)
2095 m.Retval = buf.DecodeInt32()
2099 // SwInterfaceSetUnnumbered defines message 'sw_interface_set_unnumbered'.
2100 type SwInterfaceSetUnnumbered struct {
2101 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2102 UnnumberedSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=unnumbered_sw_if_index" json:"unnumbered_sw_if_index,omitempty"`
2103 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
2106 func (m *SwInterfaceSetUnnumbered) Reset() { *m = SwInterfaceSetUnnumbered{} }
2107 func (*SwInterfaceSetUnnumbered) GetMessageName() string { return "sw_interface_set_unnumbered" }
2108 func (*SwInterfaceSetUnnumbered) GetCrcString() string { return "154a6439" }
2109 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
2110 return api.RequestMessage
2113 func (m *SwInterfaceSetUnnumbered) Size() (size int) {
2117 size += 4 // m.SwIfIndex
2118 size += 4 // m.UnnumberedSwIfIndex
2119 size += 1 // m.IsAdd
2122 func (m *SwInterfaceSetUnnumbered) Marshal(b []byte) ([]byte, error) {
2124 b = make([]byte, m.Size())
2126 buf := codec.NewBuffer(b)
2127 buf.EncodeUint32(uint32(m.SwIfIndex))
2128 buf.EncodeUint32(uint32(m.UnnumberedSwIfIndex))
2129 buf.EncodeBool(m.IsAdd)
2130 return buf.Bytes(), nil
2132 func (m *SwInterfaceSetUnnumbered) Unmarshal(b []byte) error {
2133 buf := codec.NewBuffer(b)
2134 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2135 m.UnnumberedSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2136 m.IsAdd = buf.DecodeBool()
2140 // SwInterfaceSetUnnumberedReply defines message 'sw_interface_set_unnumbered_reply'.
2141 type SwInterfaceSetUnnumberedReply struct {
2142 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2145 func (m *SwInterfaceSetUnnumberedReply) Reset() { *m = SwInterfaceSetUnnumberedReply{} }
2146 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
2147 return "sw_interface_set_unnumbered_reply"
2149 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string { return "e8d4e804" }
2150 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
2151 return api.ReplyMessage
2154 func (m *SwInterfaceSetUnnumberedReply) Size() (size int) {
2158 size += 4 // m.Retval
2161 func (m *SwInterfaceSetUnnumberedReply) Marshal(b []byte) ([]byte, error) {
2163 b = make([]byte, m.Size())
2165 buf := codec.NewBuffer(b)
2166 buf.EncodeInt32(m.Retval)
2167 return buf.Bytes(), nil
2169 func (m *SwInterfaceSetUnnumberedReply) Unmarshal(b []byte) error {
2170 buf := codec.NewBuffer(b)
2171 m.Retval = buf.DecodeInt32()
2175 // SwInterfaceTagAddDel defines message 'sw_interface_tag_add_del'.
2176 type SwInterfaceTagAddDel struct {
2177 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
2178 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2179 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
2182 func (m *SwInterfaceTagAddDel) Reset() { *m = SwInterfaceTagAddDel{} }
2183 func (*SwInterfaceTagAddDel) GetMessageName() string { return "sw_interface_tag_add_del" }
2184 func (*SwInterfaceTagAddDel) GetCrcString() string { return "426f8bc1" }
2185 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
2186 return api.RequestMessage
2189 func (m *SwInterfaceTagAddDel) Size() (size int) {
2193 size += 1 // m.IsAdd
2194 size += 4 // m.SwIfIndex
2198 func (m *SwInterfaceTagAddDel) Marshal(b []byte) ([]byte, error) {
2200 b = make([]byte, m.Size())
2202 buf := codec.NewBuffer(b)
2203 buf.EncodeBool(m.IsAdd)
2204 buf.EncodeUint32(uint32(m.SwIfIndex))
2205 buf.EncodeString(m.Tag, 64)
2206 return buf.Bytes(), nil
2208 func (m *SwInterfaceTagAddDel) Unmarshal(b []byte) error {
2209 buf := codec.NewBuffer(b)
2210 m.IsAdd = buf.DecodeBool()
2211 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2212 m.Tag = buf.DecodeString(64)
2216 // SwInterfaceTagAddDelReply defines message 'sw_interface_tag_add_del_reply'.
2217 type SwInterfaceTagAddDelReply struct {
2218 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2221 func (m *SwInterfaceTagAddDelReply) Reset() { *m = SwInterfaceTagAddDelReply{} }
2222 func (*SwInterfaceTagAddDelReply) GetMessageName() string { return "sw_interface_tag_add_del_reply" }
2223 func (*SwInterfaceTagAddDelReply) GetCrcString() string { return "e8d4e804" }
2224 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
2225 return api.ReplyMessage
2228 func (m *SwInterfaceTagAddDelReply) Size() (size int) {
2232 size += 4 // m.Retval
2235 func (m *SwInterfaceTagAddDelReply) Marshal(b []byte) ([]byte, error) {
2237 b = make([]byte, m.Size())
2239 buf := codec.NewBuffer(b)
2240 buf.EncodeInt32(m.Retval)
2241 return buf.Bytes(), nil
2243 func (m *SwInterfaceTagAddDelReply) Unmarshal(b []byte) error {
2244 buf := codec.NewBuffer(b)
2245 m.Retval = buf.DecodeInt32()
2249 // WantInterfaceEvents defines message 'want_interface_events'.
2250 type WantInterfaceEvents struct {
2251 EnableDisable uint32 `binapi:"u32,name=enable_disable" json:"enable_disable,omitempty"`
2252 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
2255 func (m *WantInterfaceEvents) Reset() { *m = WantInterfaceEvents{} }
2256 func (*WantInterfaceEvents) GetMessageName() string { return "want_interface_events" }
2257 func (*WantInterfaceEvents) GetCrcString() string { return "476f5a08" }
2258 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
2259 return api.RequestMessage
2262 func (m *WantInterfaceEvents) Size() (size int) {
2266 size += 4 // m.EnableDisable
2270 func (m *WantInterfaceEvents) Marshal(b []byte) ([]byte, error) {
2272 b = make([]byte, m.Size())
2274 buf := codec.NewBuffer(b)
2275 buf.EncodeUint32(m.EnableDisable)
2276 buf.EncodeUint32(m.PID)
2277 return buf.Bytes(), nil
2279 func (m *WantInterfaceEvents) Unmarshal(b []byte) error {
2280 buf := codec.NewBuffer(b)
2281 m.EnableDisable = buf.DecodeUint32()
2282 m.PID = buf.DecodeUint32()
2286 // WantInterfaceEventsReply defines message 'want_interface_events_reply'.
2287 type WantInterfaceEventsReply struct {
2288 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2291 func (m *WantInterfaceEventsReply) Reset() { *m = WantInterfaceEventsReply{} }
2292 func (*WantInterfaceEventsReply) GetMessageName() string { return "want_interface_events_reply" }
2293 func (*WantInterfaceEventsReply) GetCrcString() string { return "e8d4e804" }
2294 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
2295 return api.ReplyMessage
2298 func (m *WantInterfaceEventsReply) Size() (size int) {
2302 size += 4 // m.Retval
2305 func (m *WantInterfaceEventsReply) Marshal(b []byte) ([]byte, error) {
2307 b = make([]byte, m.Size())
2309 buf := codec.NewBuffer(b)
2310 buf.EncodeInt32(m.Retval)
2311 return buf.Bytes(), nil
2313 func (m *WantInterfaceEventsReply) Unmarshal(b []byte) error {
2314 buf := codec.NewBuffer(b)
2315 m.Retval = buf.DecodeInt32()
2319 func init() { file_interfaces_binapi_init() }
2320 func file_interfaces_binapi_init() {
2321 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "collect_detailed_interface_stats_5501adee")
2322 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "collect_detailed_interface_stats_reply_e8d4e804")
2323 api.RegisterMessage((*CreateLoopback)(nil), "create_loopback_42bb5d22")
2324 api.RegisterMessage((*CreateLoopbackInstance)(nil), "create_loopback_instance_d36a3ee2")
2325 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "create_loopback_instance_reply_5383d31f")
2326 api.RegisterMessage((*CreateLoopbackReply)(nil), "create_loopback_reply_5383d31f")
2327 api.RegisterMessage((*CreateSubif)(nil), "create_subif_790ca755")
2328 api.RegisterMessage((*CreateSubifReply)(nil), "create_subif_reply_5383d31f")
2329 api.RegisterMessage((*CreateVlanSubif)(nil), "create_vlan_subif_af34ac8b")
2330 api.RegisterMessage((*CreateVlanSubifReply)(nil), "create_vlan_subif_reply_5383d31f")
2331 api.RegisterMessage((*DeleteLoopback)(nil), "delete_loopback_f9e6675e")
2332 api.RegisterMessage((*DeleteLoopbackReply)(nil), "delete_loopback_reply_e8d4e804")
2333 api.RegisterMessage((*DeleteSubif)(nil), "delete_subif_f9e6675e")
2334 api.RegisterMessage((*DeleteSubifReply)(nil), "delete_subif_reply_e8d4e804")
2335 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "hw_interface_set_mtu_e6746899")
2336 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "hw_interface_set_mtu_reply_e8d4e804")
2337 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface_name_renumber_2b8858b8")
2338 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface_name_renumber_reply_e8d4e804")
2339 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "sw_interface_add_del_address_5463d73b")
2340 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "sw_interface_add_del_address_reply_e8d4e804")
2341 api.RegisterMessage((*SwInterfaceAddDelMacAddress)(nil), "sw_interface_add_del_mac_address_638bb9f4")
2342 api.RegisterMessage((*SwInterfaceAddDelMacAddressReply)(nil), "sw_interface_add_del_mac_address_reply_e8d4e804")
2343 api.RegisterMessage((*SwInterfaceAddressReplaceBegin)(nil), "sw_interface_address_replace_begin_51077d14")
2344 api.RegisterMessage((*SwInterfaceAddressReplaceBeginReply)(nil), "sw_interface_address_replace_begin_reply_e8d4e804")
2345 api.RegisterMessage((*SwInterfaceAddressReplaceEnd)(nil), "sw_interface_address_replace_end_51077d14")
2346 api.RegisterMessage((*SwInterfaceAddressReplaceEndReply)(nil), "sw_interface_address_replace_end_reply_e8d4e804")
2347 api.RegisterMessage((*SwInterfaceClearStats)(nil), "sw_interface_clear_stats_f9e6675e")
2348 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "sw_interface_clear_stats_reply_e8d4e804")
2349 api.RegisterMessage((*SwInterfaceDetails)(nil), "sw_interface_details_6c221fc7")
2350 api.RegisterMessage((*SwInterfaceDump)(nil), "sw_interface_dump_aa610c27")
2351 api.RegisterMessage((*SwInterfaceEvent)(nil), "sw_interface_event_2d3d95a7")
2352 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "sw_interface_get_mac_address_f9e6675e")
2353 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "sw_interface_get_mac_address_reply_40ef2c08")
2354 api.RegisterMessage((*SwInterfaceGetTable)(nil), "sw_interface_get_table_2d033de4")
2355 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "sw_interface_get_table_reply_a6eb0109")
2356 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "sw_interface_rx_placement_details_9e44a7ce")
2357 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "sw_interface_rx_placement_dump_f9e6675e")
2358 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "sw_interface_set_flags_f5aec1b8")
2359 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "sw_interface_set_flags_reply_e8d4e804")
2360 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "sw_interface_set_ip_directed_broadcast_ae6cfcfb")
2361 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "sw_interface_set_ip_directed_broadcast_reply_e8d4e804")
2362 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "sw_interface_set_mac_address_c536e7eb")
2363 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "sw_interface_set_mac_address_reply_e8d4e804")
2364 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "sw_interface_set_mtu_5cbe85e5")
2365 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "sw_interface_set_mtu_reply_e8d4e804")
2366 api.RegisterMessage((*SwInterfaceSetPromisc)(nil), "sw_interface_set_promisc_d40860d4")
2367 api.RegisterMessage((*SwInterfaceSetPromiscReply)(nil), "sw_interface_set_promisc_reply_e8d4e804")
2368 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "sw_interface_set_rx_mode_b04d1cfe")
2369 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "sw_interface_set_rx_mode_reply_e8d4e804")
2370 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "sw_interface_set_rx_placement_db65f3c9")
2371 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "sw_interface_set_rx_placement_reply_e8d4e804")
2372 api.RegisterMessage((*SwInterfaceSetTable)(nil), "sw_interface_set_table_df42a577")
2373 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "sw_interface_set_table_reply_e8d4e804")
2374 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "sw_interface_set_unnumbered_154a6439")
2375 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "sw_interface_set_unnumbered_reply_e8d4e804")
2376 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "sw_interface_tag_add_del_426f8bc1")
2377 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "sw_interface_tag_add_del_reply_e8d4e804")
2378 api.RegisterMessage((*WantInterfaceEvents)(nil), "want_interface_events_476f5a08")
2379 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "want_interface_events_reply_e8d4e804")
2382 // Messages returns list of all messages in this module.
2383 func AllMessages() []api.Message {
2384 return []api.Message{
2385 (*CollectDetailedInterfaceStats)(nil),
2386 (*CollectDetailedInterfaceStatsReply)(nil),
2387 (*CreateLoopback)(nil),
2388 (*CreateLoopbackInstance)(nil),
2389 (*CreateLoopbackInstanceReply)(nil),
2390 (*CreateLoopbackReply)(nil),
2391 (*CreateSubif)(nil),
2392 (*CreateSubifReply)(nil),
2393 (*CreateVlanSubif)(nil),
2394 (*CreateVlanSubifReply)(nil),
2395 (*DeleteLoopback)(nil),
2396 (*DeleteLoopbackReply)(nil),
2397 (*DeleteSubif)(nil),
2398 (*DeleteSubifReply)(nil),
2399 (*HwInterfaceSetMtu)(nil),
2400 (*HwInterfaceSetMtuReply)(nil),
2401 (*InterfaceNameRenumber)(nil),
2402 (*InterfaceNameRenumberReply)(nil),
2403 (*SwInterfaceAddDelAddress)(nil),
2404 (*SwInterfaceAddDelAddressReply)(nil),
2405 (*SwInterfaceAddDelMacAddress)(nil),
2406 (*SwInterfaceAddDelMacAddressReply)(nil),
2407 (*SwInterfaceAddressReplaceBegin)(nil),
2408 (*SwInterfaceAddressReplaceBeginReply)(nil),
2409 (*SwInterfaceAddressReplaceEnd)(nil),
2410 (*SwInterfaceAddressReplaceEndReply)(nil),
2411 (*SwInterfaceClearStats)(nil),
2412 (*SwInterfaceClearStatsReply)(nil),
2413 (*SwInterfaceDetails)(nil),
2414 (*SwInterfaceDump)(nil),
2415 (*SwInterfaceEvent)(nil),
2416 (*SwInterfaceGetMacAddress)(nil),
2417 (*SwInterfaceGetMacAddressReply)(nil),
2418 (*SwInterfaceGetTable)(nil),
2419 (*SwInterfaceGetTableReply)(nil),
2420 (*SwInterfaceRxPlacementDetails)(nil),
2421 (*SwInterfaceRxPlacementDump)(nil),
2422 (*SwInterfaceSetFlags)(nil),
2423 (*SwInterfaceSetFlagsReply)(nil),
2424 (*SwInterfaceSetIPDirectedBroadcast)(nil),
2425 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
2426 (*SwInterfaceSetMacAddress)(nil),
2427 (*SwInterfaceSetMacAddressReply)(nil),
2428 (*SwInterfaceSetMtu)(nil),
2429 (*SwInterfaceSetMtuReply)(nil),
2430 (*SwInterfaceSetPromisc)(nil),
2431 (*SwInterfaceSetPromiscReply)(nil),
2432 (*SwInterfaceSetRxMode)(nil),
2433 (*SwInterfaceSetRxModeReply)(nil),
2434 (*SwInterfaceSetRxPlacement)(nil),
2435 (*SwInterfaceSetRxPlacementReply)(nil),
2436 (*SwInterfaceSetTable)(nil),
2437 (*SwInterfaceSetTableReply)(nil),
2438 (*SwInterfaceSetUnnumbered)(nil),
2439 (*SwInterfaceSetUnnumberedReply)(nil),
2440 (*SwInterfaceTagAddDel)(nil),
2441 (*SwInterfaceTagAddDelReply)(nil),
2442 (*WantInterfaceEvents)(nil),
2443 (*WantInterfaceEventsReply)(nil),