1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
6 // Package gbp contains generated bindings for API file gbp.api.
19 api "git.fd.io/govpp.git/api"
20 ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types"
21 interface_types "git.fd.io/govpp.git/binapi/interface_types"
22 ip_types "git.fd.io/govpp.git/binapi/ip_types"
23 codec "git.fd.io/govpp.git/codec"
26 // This is a compile-time assertion to ensure that this generated file
27 // is compatible with the GoVPP api package it is being compiled against.
28 // A compilation error at this line likely means your copy of the
29 // GoVPP api package needs to be updated.
30 const _ = api.GoVppAPIPackageIsVersion2
35 VersionCrc = 0xa084c6b0
38 // GbpBridgeDomainFlags defines enum 'gbp_bridge_domain_flags'.
39 type GbpBridgeDomainFlags uint32
42 GBP_BD_API_FLAG_NONE GbpBridgeDomainFlags = 0
43 GBP_BD_API_FLAG_DO_NOT_LEARN GbpBridgeDomainFlags = 1
44 GBP_BD_API_FLAG_UU_FWD_DROP GbpBridgeDomainFlags = 2
45 GBP_BD_API_FLAG_MCAST_DROP GbpBridgeDomainFlags = 4
46 GBP_BD_API_FLAG_UCAST_ARP GbpBridgeDomainFlags = 8
50 GbpBridgeDomainFlags_name = map[uint32]string{
51 0: "GBP_BD_API_FLAG_NONE",
52 1: "GBP_BD_API_FLAG_DO_NOT_LEARN",
53 2: "GBP_BD_API_FLAG_UU_FWD_DROP",
54 4: "GBP_BD_API_FLAG_MCAST_DROP",
55 8: "GBP_BD_API_FLAG_UCAST_ARP",
57 GbpBridgeDomainFlags_value = map[string]uint32{
58 "GBP_BD_API_FLAG_NONE": 0,
59 "GBP_BD_API_FLAG_DO_NOT_LEARN": 1,
60 "GBP_BD_API_FLAG_UU_FWD_DROP": 2,
61 "GBP_BD_API_FLAG_MCAST_DROP": 4,
62 "GBP_BD_API_FLAG_UCAST_ARP": 8,
66 func (x GbpBridgeDomainFlags) String() string {
67 s, ok := GbpBridgeDomainFlags_name[uint32(x)]
71 str := func(n uint32) string {
72 s, ok := GbpBridgeDomainFlags_name[uint32(n)]
76 return "GbpBridgeDomainFlags(" + strconv.Itoa(int(n)) + ")"
78 for i := uint32(0); i <= 32; i++ {
93 // GbpEndpointFlags defines enum 'gbp_endpoint_flags'.
94 type GbpEndpointFlags uint32
97 GBP_API_ENDPOINT_FLAG_NONE GbpEndpointFlags = 0
98 GBP_API_ENDPOINT_FLAG_BOUNCE GbpEndpointFlags = 1
99 GBP_API_ENDPOINT_FLAG_REMOTE GbpEndpointFlags = 2
100 GBP_API_ENDPOINT_FLAG_LEARNT GbpEndpointFlags = 4
101 GBP_API_ENDPOINT_FLAG_EXTERNAL GbpEndpointFlags = 8
105 GbpEndpointFlags_name = map[uint32]string{
106 0: "GBP_API_ENDPOINT_FLAG_NONE",
107 1: "GBP_API_ENDPOINT_FLAG_BOUNCE",
108 2: "GBP_API_ENDPOINT_FLAG_REMOTE",
109 4: "GBP_API_ENDPOINT_FLAG_LEARNT",
110 8: "GBP_API_ENDPOINT_FLAG_EXTERNAL",
112 GbpEndpointFlags_value = map[string]uint32{
113 "GBP_API_ENDPOINT_FLAG_NONE": 0,
114 "GBP_API_ENDPOINT_FLAG_BOUNCE": 1,
115 "GBP_API_ENDPOINT_FLAG_REMOTE": 2,
116 "GBP_API_ENDPOINT_FLAG_LEARNT": 4,
117 "GBP_API_ENDPOINT_FLAG_EXTERNAL": 8,
121 func (x GbpEndpointFlags) String() string {
122 s, ok := GbpEndpointFlags_name[uint32(x)]
126 str := func(n uint32) string {
127 s, ok := GbpEndpointFlags_name[uint32(n)]
131 return "GbpEndpointFlags(" + strconv.Itoa(int(n)) + ")"
133 for i := uint32(0); i <= 32; i++ {
143 return str(uint32(x))
148 // GbpExtItfFlags defines enum 'gbp_ext_itf_flags'.
149 type GbpExtItfFlags uint32
152 GBP_API_EXT_ITF_F_NONE GbpExtItfFlags = 0
153 GBP_API_EXT_ITF_F_ANON GbpExtItfFlags = 1
157 GbpExtItfFlags_name = map[uint32]string{
158 0: "GBP_API_EXT_ITF_F_NONE",
159 1: "GBP_API_EXT_ITF_F_ANON",
161 GbpExtItfFlags_value = map[string]uint32{
162 "GBP_API_EXT_ITF_F_NONE": 0,
163 "GBP_API_EXT_ITF_F_ANON": 1,
167 func (x GbpExtItfFlags) String() string {
168 s, ok := GbpExtItfFlags_name[uint32(x)]
172 str := func(n uint32) string {
173 s, ok := GbpExtItfFlags_name[uint32(n)]
177 return "GbpExtItfFlags(" + strconv.Itoa(int(n)) + ")"
179 for i := uint32(0); i <= 32; i++ {
189 return str(uint32(x))
194 // GbpHashMode defines enum 'gbp_hash_mode'.
195 type GbpHashMode uint32
198 GBP_API_HASH_MODE_SRC_IP GbpHashMode = 1
199 GBP_API_HASH_MODE_DST_IP GbpHashMode = 2
200 GBP_API_HASH_MODE_SYMMETRIC GbpHashMode = 3
204 GbpHashMode_name = map[uint32]string{
205 1: "GBP_API_HASH_MODE_SRC_IP",
206 2: "GBP_API_HASH_MODE_DST_IP",
207 3: "GBP_API_HASH_MODE_SYMMETRIC",
209 GbpHashMode_value = map[string]uint32{
210 "GBP_API_HASH_MODE_SRC_IP": 1,
211 "GBP_API_HASH_MODE_DST_IP": 2,
212 "GBP_API_HASH_MODE_SYMMETRIC": 3,
216 func (x GbpHashMode) String() string {
217 s, ok := GbpHashMode_name[uint32(x)]
221 return "GbpHashMode(" + strconv.Itoa(int(x)) + ")"
224 // GbpRuleAction defines enum 'gbp_rule_action'.
225 type GbpRuleAction uint32
228 GBP_API_RULE_PERMIT GbpRuleAction = 1
229 GBP_API_RULE_DENY GbpRuleAction = 2
230 GBP_API_RULE_REDIRECT GbpRuleAction = 3
234 GbpRuleAction_name = map[uint32]string{
235 1: "GBP_API_RULE_PERMIT",
236 2: "GBP_API_RULE_DENY",
237 3: "GBP_API_RULE_REDIRECT",
239 GbpRuleAction_value = map[string]uint32{
240 "GBP_API_RULE_PERMIT": 1,
241 "GBP_API_RULE_DENY": 2,
242 "GBP_API_RULE_REDIRECT": 3,
246 func (x GbpRuleAction) String() string {
247 s, ok := GbpRuleAction_name[uint32(x)]
251 return "GbpRuleAction(" + strconv.Itoa(int(x)) + ")"
254 // GbpSubnetType defines enum 'gbp_subnet_type'.
255 type GbpSubnetType uint32
258 GBP_API_SUBNET_TRANSPORT GbpSubnetType = 1
259 GBP_API_SUBNET_STITCHED_INTERNAL GbpSubnetType = 2
260 GBP_API_SUBNET_STITCHED_EXTERNAL GbpSubnetType = 3
261 GBP_API_SUBNET_L3_OUT GbpSubnetType = 4
262 GBP_API_SUBNET_ANON_L3_OUT GbpSubnetType = 5
266 GbpSubnetType_name = map[uint32]string{
267 1: "GBP_API_SUBNET_TRANSPORT",
268 2: "GBP_API_SUBNET_STITCHED_INTERNAL",
269 3: "GBP_API_SUBNET_STITCHED_EXTERNAL",
270 4: "GBP_API_SUBNET_L3_OUT",
271 5: "GBP_API_SUBNET_ANON_L3_OUT",
273 GbpSubnetType_value = map[string]uint32{
274 "GBP_API_SUBNET_TRANSPORT": 1,
275 "GBP_API_SUBNET_STITCHED_INTERNAL": 2,
276 "GBP_API_SUBNET_STITCHED_EXTERNAL": 3,
277 "GBP_API_SUBNET_L3_OUT": 4,
278 "GBP_API_SUBNET_ANON_L3_OUT": 5,
282 func (x GbpSubnetType) String() string {
283 s, ok := GbpSubnetType_name[uint32(x)]
287 return "GbpSubnetType(" + strconv.Itoa(int(x)) + ")"
290 // GbpVxlanTunnelMode defines enum 'gbp_vxlan_tunnel_mode'.
291 type GbpVxlanTunnelMode uint32
294 GBP_VXLAN_TUNNEL_MODE_L2 GbpVxlanTunnelMode = 1
295 GBP_VXLAN_TUNNEL_MODE_L3 GbpVxlanTunnelMode = 2
299 GbpVxlanTunnelMode_name = map[uint32]string{
300 1: "GBP_VXLAN_TUNNEL_MODE_L2",
301 2: "GBP_VXLAN_TUNNEL_MODE_L3",
303 GbpVxlanTunnelMode_value = map[string]uint32{
304 "GBP_VXLAN_TUNNEL_MODE_L2": 1,
305 "GBP_VXLAN_TUNNEL_MODE_L3": 2,
309 func (x GbpVxlanTunnelMode) String() string {
310 s, ok := GbpVxlanTunnelMode_name[uint32(x)]
314 return "GbpVxlanTunnelMode(" + strconv.Itoa(int(x)) + ")"
317 // GbpScope defines alias 'gbp_scope'.
320 // GbpBridgeDomain defines type 'gbp_bridge_domain'.
321 type GbpBridgeDomain struct {
322 BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
323 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
324 Flags GbpBridgeDomainFlags `binapi:"gbp_bridge_domain_flags,name=flags" json:"flags,omitempty"`
325 BviSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=bvi_sw_if_index" json:"bvi_sw_if_index,omitempty"`
326 UuFwdSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=uu_fwd_sw_if_index" json:"uu_fwd_sw_if_index,omitempty"`
327 BmFloodSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=bm_flood_sw_if_index" json:"bm_flood_sw_if_index,omitempty"`
330 // GbpContract defines type 'gbp_contract'.
331 type GbpContract struct {
332 Scope GbpScope `binapi:"gbp_scope,name=scope" json:"scope,omitempty"`
333 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
334 Dclass uint16 `binapi:"u16,name=dclass" json:"dclass,omitempty"`
335 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
336 NEtherTypes uint8 `binapi:"u8,name=n_ether_types" json:"n_ether_types,omitempty"`
337 AllowedEthertypes []uint16 `binapi:"u16[16],name=allowed_ethertypes" json:"allowed_ethertypes,omitempty"`
338 NRules uint8 `binapi:"u8,name=n_rules" json:"-"`
339 Rules []GbpRule `binapi:"gbp_rule[n_rules],name=rules" json:"rules,omitempty"`
342 // GbpEndpoint defines type 'gbp_endpoint'.
343 type GbpEndpoint struct {
344 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
345 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
346 Flags GbpEndpointFlags `binapi:"gbp_endpoint_flags,name=flags" json:"flags,omitempty"`
347 Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
348 Tun GbpEndpointTun `binapi:"gbp_endpoint_tun,name=tun" json:"tun,omitempty"`
349 NIps uint8 `binapi:"u8,name=n_ips" json:"-"`
350 Ips []ip_types.Address `binapi:"address[n_ips],name=ips" json:"ips,omitempty"`
353 // GbpEndpointGroup defines type 'gbp_endpoint_group'.
354 type GbpEndpointGroup struct {
355 Vnid uint32 `binapi:"u32,name=vnid" json:"vnid,omitempty"`
356 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
357 BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
358 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
359 UplinkSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=uplink_sw_if_index" json:"uplink_sw_if_index,omitempty"`
360 Retention GbpEndpointRetention `binapi:"gbp_endpoint_retention,name=retention" json:"retention,omitempty"`
363 // GbpEndpointRetention defines type 'gbp_endpoint_retention'.
364 type GbpEndpointRetention struct {
365 RemoteEpTimeout uint32 `binapi:"u32,name=remote_ep_timeout" json:"remote_ep_timeout,omitempty"`
368 // GbpEndpointTun defines type 'gbp_endpoint_tun'.
369 type GbpEndpointTun struct {
370 Src ip_types.Address `binapi:"address,name=src" json:"src,omitempty"`
371 Dst ip_types.Address `binapi:"address,name=dst" json:"dst,omitempty"`
374 // GbpExtItf defines type 'gbp_ext_itf'.
375 type GbpExtItf struct {
376 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
377 BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
378 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
379 Flags GbpExtItfFlags `binapi:"gbp_ext_itf_flags,name=flags" json:"flags,omitempty"`
382 // GbpNextHop defines type 'gbp_next_hop'.
383 type GbpNextHop struct {
384 IP ip_types.Address `binapi:"address,name=ip" json:"ip,omitempty"`
385 Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
386 BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
387 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
390 // GbpNextHopSet defines type 'gbp_next_hop_set'.
391 type GbpNextHopSet struct {
392 HashMode GbpHashMode `binapi:"gbp_hash_mode,name=hash_mode" json:"hash_mode,omitempty"`
393 NNhs uint8 `binapi:"u8,name=n_nhs" json:"n_nhs,omitempty"`
394 Nhs [8]GbpNextHop `binapi:"gbp_next_hop[8],name=nhs" json:"nhs,omitempty"`
397 // GbpRecirc defines type 'gbp_recirc'.
398 type GbpRecirc struct {
399 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
400 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
401 IsExt bool `binapi:"bool,name=is_ext" json:"is_ext,omitempty"`
404 // GbpRouteDomain defines type 'gbp_route_domain'.
405 type GbpRouteDomain struct {
406 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
407 IP4TableID uint32 `binapi:"u32,name=ip4_table_id" json:"ip4_table_id,omitempty"`
408 IP6TableID uint32 `binapi:"u32,name=ip6_table_id" json:"ip6_table_id,omitempty"`
409 IP4UuSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=ip4_uu_sw_if_index" json:"ip4_uu_sw_if_index,omitempty"`
410 IP6UuSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=ip6_uu_sw_if_index" json:"ip6_uu_sw_if_index,omitempty"`
411 Scope GbpScope `binapi:"gbp_scope,name=scope" json:"scope,omitempty"`
414 // GbpRule defines type 'gbp_rule'.
415 type GbpRule struct {
416 Action GbpRuleAction `binapi:"gbp_rule_action,name=action" json:"action,omitempty"`
417 NhSet GbpNextHopSet `binapi:"gbp_next_hop_set,name=nh_set" json:"nh_set,omitempty"`
420 // GbpSubnet defines type 'gbp_subnet'.
421 type GbpSubnet struct {
422 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
423 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
424 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
425 Type GbpSubnetType `binapi:"gbp_subnet_type,name=type" json:"type,omitempty"`
426 Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
429 // GbpVxlanTunnel defines type 'gbp_vxlan_tunnel'.
430 type GbpVxlanTunnel struct {
431 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
432 Mode GbpVxlanTunnelMode `binapi:"gbp_vxlan_tunnel_mode,name=mode" json:"mode,omitempty"`
433 BdRdID uint32 `binapi:"u32,name=bd_rd_id" json:"bd_rd_id,omitempty"`
434 Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"`
437 // GbpBridgeDomainAdd defines message 'gbp_bridge_domain_add'.
438 type GbpBridgeDomainAdd struct {
439 Bd GbpBridgeDomain `binapi:"gbp_bridge_domain,name=bd" json:"bd,omitempty"`
442 func (m *GbpBridgeDomainAdd) Reset() { *m = GbpBridgeDomainAdd{} }
443 func (*GbpBridgeDomainAdd) GetMessageName() string { return "gbp_bridge_domain_add" }
444 func (*GbpBridgeDomainAdd) GetCrcString() string { return "8454bfdf" }
445 func (*GbpBridgeDomainAdd) GetMessageType() api.MessageType {
446 return api.RequestMessage
449 func (m *GbpBridgeDomainAdd) Size() (size int) {
453 size += 4 // m.Bd.BdID
454 size += 4 // m.Bd.RdID
455 size += 4 // m.Bd.Flags
456 size += 4 // m.Bd.BviSwIfIndex
457 size += 4 // m.Bd.UuFwdSwIfIndex
458 size += 4 // m.Bd.BmFloodSwIfIndex
461 func (m *GbpBridgeDomainAdd) Marshal(b []byte) ([]byte, error) {
463 b = make([]byte, m.Size())
465 buf := codec.NewBuffer(b)
466 buf.EncodeUint32(m.Bd.BdID)
467 buf.EncodeUint32(m.Bd.RdID)
468 buf.EncodeUint32(uint32(m.Bd.Flags))
469 buf.EncodeUint32(uint32(m.Bd.BviSwIfIndex))
470 buf.EncodeUint32(uint32(m.Bd.UuFwdSwIfIndex))
471 buf.EncodeUint32(uint32(m.Bd.BmFloodSwIfIndex))
472 return buf.Bytes(), nil
474 func (m *GbpBridgeDomainAdd) Unmarshal(b []byte) error {
475 buf := codec.NewBuffer(b)
476 m.Bd.BdID = buf.DecodeUint32()
477 m.Bd.RdID = buf.DecodeUint32()
478 m.Bd.Flags = GbpBridgeDomainFlags(buf.DecodeUint32())
479 m.Bd.BviSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
480 m.Bd.UuFwdSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
481 m.Bd.BmFloodSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
485 // GbpBridgeDomainAddReply defines message 'gbp_bridge_domain_add_reply'.
486 type GbpBridgeDomainAddReply struct {
487 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
490 func (m *GbpBridgeDomainAddReply) Reset() { *m = GbpBridgeDomainAddReply{} }
491 func (*GbpBridgeDomainAddReply) GetMessageName() string { return "gbp_bridge_domain_add_reply" }
492 func (*GbpBridgeDomainAddReply) GetCrcString() string { return "e8d4e804" }
493 func (*GbpBridgeDomainAddReply) GetMessageType() api.MessageType {
494 return api.ReplyMessage
497 func (m *GbpBridgeDomainAddReply) Size() (size int) {
501 size += 4 // m.Retval
504 func (m *GbpBridgeDomainAddReply) Marshal(b []byte) ([]byte, error) {
506 b = make([]byte, m.Size())
508 buf := codec.NewBuffer(b)
509 buf.EncodeInt32(m.Retval)
510 return buf.Bytes(), nil
512 func (m *GbpBridgeDomainAddReply) Unmarshal(b []byte) error {
513 buf := codec.NewBuffer(b)
514 m.Retval = buf.DecodeInt32()
518 // GbpBridgeDomainDel defines message 'gbp_bridge_domain_del'.
519 type GbpBridgeDomainDel struct {
520 BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
523 func (m *GbpBridgeDomainDel) Reset() { *m = GbpBridgeDomainDel{} }
524 func (*GbpBridgeDomainDel) GetMessageName() string { return "gbp_bridge_domain_del" }
525 func (*GbpBridgeDomainDel) GetCrcString() string { return "c25fdce6" }
526 func (*GbpBridgeDomainDel) GetMessageType() api.MessageType {
527 return api.RequestMessage
530 func (m *GbpBridgeDomainDel) Size() (size int) {
537 func (m *GbpBridgeDomainDel) Marshal(b []byte) ([]byte, error) {
539 b = make([]byte, m.Size())
541 buf := codec.NewBuffer(b)
542 buf.EncodeUint32(m.BdID)
543 return buf.Bytes(), nil
545 func (m *GbpBridgeDomainDel) Unmarshal(b []byte) error {
546 buf := codec.NewBuffer(b)
547 m.BdID = buf.DecodeUint32()
551 // GbpBridgeDomainDelReply defines message 'gbp_bridge_domain_del_reply'.
552 type GbpBridgeDomainDelReply struct {
553 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
556 func (m *GbpBridgeDomainDelReply) Reset() { *m = GbpBridgeDomainDelReply{} }
557 func (*GbpBridgeDomainDelReply) GetMessageName() string { return "gbp_bridge_domain_del_reply" }
558 func (*GbpBridgeDomainDelReply) GetCrcString() string { return "e8d4e804" }
559 func (*GbpBridgeDomainDelReply) GetMessageType() api.MessageType {
560 return api.ReplyMessage
563 func (m *GbpBridgeDomainDelReply) Size() (size int) {
567 size += 4 // m.Retval
570 func (m *GbpBridgeDomainDelReply) Marshal(b []byte) ([]byte, error) {
572 b = make([]byte, m.Size())
574 buf := codec.NewBuffer(b)
575 buf.EncodeInt32(m.Retval)
576 return buf.Bytes(), nil
578 func (m *GbpBridgeDomainDelReply) Unmarshal(b []byte) error {
579 buf := codec.NewBuffer(b)
580 m.Retval = buf.DecodeInt32()
584 // GbpBridgeDomainDetails defines message 'gbp_bridge_domain_details'.
585 type GbpBridgeDomainDetails struct {
586 Bd GbpBridgeDomain `binapi:"gbp_bridge_domain,name=bd" json:"bd,omitempty"`
589 func (m *GbpBridgeDomainDetails) Reset() { *m = GbpBridgeDomainDetails{} }
590 func (*GbpBridgeDomainDetails) GetMessageName() string { return "gbp_bridge_domain_details" }
591 func (*GbpBridgeDomainDetails) GetCrcString() string { return "2acd15f9" }
592 func (*GbpBridgeDomainDetails) GetMessageType() api.MessageType {
593 return api.ReplyMessage
596 func (m *GbpBridgeDomainDetails) Size() (size int) {
600 size += 4 // m.Bd.BdID
601 size += 4 // m.Bd.RdID
602 size += 4 // m.Bd.Flags
603 size += 4 // m.Bd.BviSwIfIndex
604 size += 4 // m.Bd.UuFwdSwIfIndex
605 size += 4 // m.Bd.BmFloodSwIfIndex
608 func (m *GbpBridgeDomainDetails) Marshal(b []byte) ([]byte, error) {
610 b = make([]byte, m.Size())
612 buf := codec.NewBuffer(b)
613 buf.EncodeUint32(m.Bd.BdID)
614 buf.EncodeUint32(m.Bd.RdID)
615 buf.EncodeUint32(uint32(m.Bd.Flags))
616 buf.EncodeUint32(uint32(m.Bd.BviSwIfIndex))
617 buf.EncodeUint32(uint32(m.Bd.UuFwdSwIfIndex))
618 buf.EncodeUint32(uint32(m.Bd.BmFloodSwIfIndex))
619 return buf.Bytes(), nil
621 func (m *GbpBridgeDomainDetails) Unmarshal(b []byte) error {
622 buf := codec.NewBuffer(b)
623 m.Bd.BdID = buf.DecodeUint32()
624 m.Bd.RdID = buf.DecodeUint32()
625 m.Bd.Flags = GbpBridgeDomainFlags(buf.DecodeUint32())
626 m.Bd.BviSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
627 m.Bd.UuFwdSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
628 m.Bd.BmFloodSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
632 // GbpBridgeDomainDump defines message 'gbp_bridge_domain_dump'.
633 type GbpBridgeDomainDump struct{}
635 func (m *GbpBridgeDomainDump) Reset() { *m = GbpBridgeDomainDump{} }
636 func (*GbpBridgeDomainDump) GetMessageName() string { return "gbp_bridge_domain_dump" }
637 func (*GbpBridgeDomainDump) GetCrcString() string { return "51077d14" }
638 func (*GbpBridgeDomainDump) GetMessageType() api.MessageType {
639 return api.RequestMessage
642 func (m *GbpBridgeDomainDump) Size() (size int) {
648 func (m *GbpBridgeDomainDump) Marshal(b []byte) ([]byte, error) {
650 b = make([]byte, m.Size())
652 buf := codec.NewBuffer(b)
653 return buf.Bytes(), nil
655 func (m *GbpBridgeDomainDump) Unmarshal(b []byte) error {
659 // GbpBridgeDomainDumpReply defines message 'gbp_bridge_domain_dump_reply'.
660 type GbpBridgeDomainDumpReply struct {
661 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
664 func (m *GbpBridgeDomainDumpReply) Reset() { *m = GbpBridgeDomainDumpReply{} }
665 func (*GbpBridgeDomainDumpReply) GetMessageName() string { return "gbp_bridge_domain_dump_reply" }
666 func (*GbpBridgeDomainDumpReply) GetCrcString() string { return "e8d4e804" }
667 func (*GbpBridgeDomainDumpReply) GetMessageType() api.MessageType {
668 return api.ReplyMessage
671 func (m *GbpBridgeDomainDumpReply) Size() (size int) {
675 size += 4 // m.Retval
678 func (m *GbpBridgeDomainDumpReply) Marshal(b []byte) ([]byte, error) {
680 b = make([]byte, m.Size())
682 buf := codec.NewBuffer(b)
683 buf.EncodeInt32(m.Retval)
684 return buf.Bytes(), nil
686 func (m *GbpBridgeDomainDumpReply) Unmarshal(b []byte) error {
687 buf := codec.NewBuffer(b)
688 m.Retval = buf.DecodeInt32()
692 // GbpContractAddDel defines message 'gbp_contract_add_del'.
693 type GbpContractAddDel struct {
694 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
695 Contract GbpContract `binapi:"gbp_contract,name=contract" json:"contract,omitempty"`
698 func (m *GbpContractAddDel) Reset() { *m = GbpContractAddDel{} }
699 func (*GbpContractAddDel) GetMessageName() string { return "gbp_contract_add_del" }
700 func (*GbpContractAddDel) GetCrcString() string { return "553e275b" }
701 func (*GbpContractAddDel) GetMessageType() api.MessageType {
702 return api.RequestMessage
705 func (m *GbpContractAddDel) Size() (size int) {
710 size += 2 // m.Contract.Scope
711 size += 2 // m.Contract.Sclass
712 size += 2 // m.Contract.Dclass
713 size += 4 // m.Contract.ACLIndex
714 size += 1 // m.Contract.NEtherTypes
715 size += 2 * 16 // m.Contract.AllowedEthertypes
716 size += 1 // m.Contract.NRules
717 for j2 := 0; j2 < len(m.Contract.Rules); j2++ {
720 if j2 < len(m.Contract.Rules) {
721 s2 = m.Contract.Rules[j2]
723 size += 4 // s2.Action
724 size += 4 // s2.NhSet.HashMode
725 size += 1 // s2.NhSet.NNhs
726 for j4 := 0; j4 < 8; j4++ {
727 size += 1 // s2.NhSet.Nhs[j4].IP.Af
728 size += 1 * 16 // s2.NhSet.Nhs[j4].IP.Un
729 size += 1 * 6 // s2.NhSet.Nhs[j4].Mac
730 size += 4 // s2.NhSet.Nhs[j4].BdID
731 size += 4 // s2.NhSet.Nhs[j4].RdID
736 func (m *GbpContractAddDel) Marshal(b []byte) ([]byte, error) {
738 b = make([]byte, m.Size())
740 buf := codec.NewBuffer(b)
741 buf.EncodeBool(m.IsAdd)
742 buf.EncodeUint16(uint16(m.Contract.Scope))
743 buf.EncodeUint16(m.Contract.Sclass)
744 buf.EncodeUint16(m.Contract.Dclass)
745 buf.EncodeUint32(m.Contract.ACLIndex)
746 buf.EncodeUint8(m.Contract.NEtherTypes)
747 for i := 0; i < 16; i++ {
749 if i < len(m.Contract.AllowedEthertypes) {
750 x = uint16(m.Contract.AllowedEthertypes[i])
754 buf.EncodeUint8(uint8(len(m.Contract.Rules)))
755 for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
756 var v1 GbpRule // Rules
757 if j1 < len(m.Contract.Rules) {
758 v1 = m.Contract.Rules[j1]
760 buf.EncodeUint32(uint32(v1.Action))
761 buf.EncodeUint32(uint32(v1.NhSet.HashMode))
762 buf.EncodeUint8(v1.NhSet.NNhs)
763 for j3 := 0; j3 < 8; j3++ {
764 buf.EncodeUint8(uint8(v1.NhSet.Nhs[j3].IP.Af))
765 buf.EncodeBytes(v1.NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], 16)
766 buf.EncodeBytes(v1.NhSet.Nhs[j3].Mac[:], 6)
767 buf.EncodeUint32(v1.NhSet.Nhs[j3].BdID)
768 buf.EncodeUint32(v1.NhSet.Nhs[j3].RdID)
771 return buf.Bytes(), nil
773 func (m *GbpContractAddDel) Unmarshal(b []byte) error {
774 buf := codec.NewBuffer(b)
775 m.IsAdd = buf.DecodeBool()
776 m.Contract.Scope = GbpScope(buf.DecodeUint16())
777 m.Contract.Sclass = buf.DecodeUint16()
778 m.Contract.Dclass = buf.DecodeUint16()
779 m.Contract.ACLIndex = buf.DecodeUint32()
780 m.Contract.NEtherTypes = buf.DecodeUint8()
781 m.Contract.AllowedEthertypes = make([]uint16, 16)
782 for i := 0; i < len(m.Contract.AllowedEthertypes); i++ {
783 m.Contract.AllowedEthertypes[i] = buf.DecodeUint16()
785 m.Contract.NRules = buf.DecodeUint8()
786 m.Contract.Rules = make([]GbpRule, m.Contract.NRules)
787 for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
788 m.Contract.Rules[j1].Action = GbpRuleAction(buf.DecodeUint32())
789 m.Contract.Rules[j1].NhSet.HashMode = GbpHashMode(buf.DecodeUint32())
790 m.Contract.Rules[j1].NhSet.NNhs = buf.DecodeUint8()
791 for j3 := 0; j3 < 8; j3++ {
792 m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
793 copy(m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
794 copy(m.Contract.Rules[j1].NhSet.Nhs[j3].Mac[:], buf.DecodeBytes(6))
795 m.Contract.Rules[j1].NhSet.Nhs[j3].BdID = buf.DecodeUint32()
796 m.Contract.Rules[j1].NhSet.Nhs[j3].RdID = buf.DecodeUint32()
802 // GbpContractAddDelReply defines message 'gbp_contract_add_del_reply'.
803 type GbpContractAddDelReply struct {
804 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
805 StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"`
808 func (m *GbpContractAddDelReply) Reset() { *m = GbpContractAddDelReply{} }
809 func (*GbpContractAddDelReply) GetMessageName() string { return "gbp_contract_add_del_reply" }
810 func (*GbpContractAddDelReply) GetCrcString() string { return "1992deab" }
811 func (*GbpContractAddDelReply) GetMessageType() api.MessageType {
812 return api.ReplyMessage
815 func (m *GbpContractAddDelReply) Size() (size int) {
819 size += 4 // m.Retval
820 size += 4 // m.StatsIndex
823 func (m *GbpContractAddDelReply) Marshal(b []byte) ([]byte, error) {
825 b = make([]byte, m.Size())
827 buf := codec.NewBuffer(b)
828 buf.EncodeInt32(m.Retval)
829 buf.EncodeUint32(m.StatsIndex)
830 return buf.Bytes(), nil
832 func (m *GbpContractAddDelReply) Unmarshal(b []byte) error {
833 buf := codec.NewBuffer(b)
834 m.Retval = buf.DecodeInt32()
835 m.StatsIndex = buf.DecodeUint32()
839 // GbpContractDetails defines message 'gbp_contract_details'.
840 type GbpContractDetails struct {
841 Contract GbpContract `binapi:"gbp_contract,name=contract" json:"contract,omitempty"`
844 func (m *GbpContractDetails) Reset() { *m = GbpContractDetails{} }
845 func (*GbpContractDetails) GetMessageName() string { return "gbp_contract_details" }
846 func (*GbpContractDetails) GetCrcString() string { return "2a18db6e" }
847 func (*GbpContractDetails) GetMessageType() api.MessageType {
848 return api.ReplyMessage
851 func (m *GbpContractDetails) Size() (size int) {
855 size += 2 // m.Contract.Scope
856 size += 2 // m.Contract.Sclass
857 size += 2 // m.Contract.Dclass
858 size += 4 // m.Contract.ACLIndex
859 size += 1 // m.Contract.NEtherTypes
860 size += 2 * 16 // m.Contract.AllowedEthertypes
861 size += 1 // m.Contract.NRules
862 for j2 := 0; j2 < len(m.Contract.Rules); j2++ {
865 if j2 < len(m.Contract.Rules) {
866 s2 = m.Contract.Rules[j2]
868 size += 4 // s2.Action
869 size += 4 // s2.NhSet.HashMode
870 size += 1 // s2.NhSet.NNhs
871 for j4 := 0; j4 < 8; j4++ {
872 size += 1 // s2.NhSet.Nhs[j4].IP.Af
873 size += 1 * 16 // s2.NhSet.Nhs[j4].IP.Un
874 size += 1 * 6 // s2.NhSet.Nhs[j4].Mac
875 size += 4 // s2.NhSet.Nhs[j4].BdID
876 size += 4 // s2.NhSet.Nhs[j4].RdID
881 func (m *GbpContractDetails) Marshal(b []byte) ([]byte, error) {
883 b = make([]byte, m.Size())
885 buf := codec.NewBuffer(b)
886 buf.EncodeUint16(uint16(m.Contract.Scope))
887 buf.EncodeUint16(m.Contract.Sclass)
888 buf.EncodeUint16(m.Contract.Dclass)
889 buf.EncodeUint32(m.Contract.ACLIndex)
890 buf.EncodeUint8(m.Contract.NEtherTypes)
891 for i := 0; i < 16; i++ {
893 if i < len(m.Contract.AllowedEthertypes) {
894 x = uint16(m.Contract.AllowedEthertypes[i])
898 buf.EncodeUint8(uint8(len(m.Contract.Rules)))
899 for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
900 var v1 GbpRule // Rules
901 if j1 < len(m.Contract.Rules) {
902 v1 = m.Contract.Rules[j1]
904 buf.EncodeUint32(uint32(v1.Action))
905 buf.EncodeUint32(uint32(v1.NhSet.HashMode))
906 buf.EncodeUint8(v1.NhSet.NNhs)
907 for j3 := 0; j3 < 8; j3++ {
908 buf.EncodeUint8(uint8(v1.NhSet.Nhs[j3].IP.Af))
909 buf.EncodeBytes(v1.NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], 16)
910 buf.EncodeBytes(v1.NhSet.Nhs[j3].Mac[:], 6)
911 buf.EncodeUint32(v1.NhSet.Nhs[j3].BdID)
912 buf.EncodeUint32(v1.NhSet.Nhs[j3].RdID)
915 return buf.Bytes(), nil
917 func (m *GbpContractDetails) Unmarshal(b []byte) error {
918 buf := codec.NewBuffer(b)
919 m.Contract.Scope = GbpScope(buf.DecodeUint16())
920 m.Contract.Sclass = buf.DecodeUint16()
921 m.Contract.Dclass = buf.DecodeUint16()
922 m.Contract.ACLIndex = buf.DecodeUint32()
923 m.Contract.NEtherTypes = buf.DecodeUint8()
924 m.Contract.AllowedEthertypes = make([]uint16, 16)
925 for i := 0; i < len(m.Contract.AllowedEthertypes); i++ {
926 m.Contract.AllowedEthertypes[i] = buf.DecodeUint16()
928 m.Contract.NRules = buf.DecodeUint8()
929 m.Contract.Rules = make([]GbpRule, m.Contract.NRules)
930 for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
931 m.Contract.Rules[j1].Action = GbpRuleAction(buf.DecodeUint32())
932 m.Contract.Rules[j1].NhSet.HashMode = GbpHashMode(buf.DecodeUint32())
933 m.Contract.Rules[j1].NhSet.NNhs = buf.DecodeUint8()
934 for j3 := 0; j3 < 8; j3++ {
935 m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
936 copy(m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
937 copy(m.Contract.Rules[j1].NhSet.Nhs[j3].Mac[:], buf.DecodeBytes(6))
938 m.Contract.Rules[j1].NhSet.Nhs[j3].BdID = buf.DecodeUint32()
939 m.Contract.Rules[j1].NhSet.Nhs[j3].RdID = buf.DecodeUint32()
945 // GbpContractDump defines message 'gbp_contract_dump'.
946 type GbpContractDump struct{}
948 func (m *GbpContractDump) Reset() { *m = GbpContractDump{} }
949 func (*GbpContractDump) GetMessageName() string { return "gbp_contract_dump" }
950 func (*GbpContractDump) GetCrcString() string { return "51077d14" }
951 func (*GbpContractDump) GetMessageType() api.MessageType {
952 return api.RequestMessage
955 func (m *GbpContractDump) Size() (size int) {
961 func (m *GbpContractDump) Marshal(b []byte) ([]byte, error) {
963 b = make([]byte, m.Size())
965 buf := codec.NewBuffer(b)
966 return buf.Bytes(), nil
968 func (m *GbpContractDump) Unmarshal(b []byte) error {
972 // GbpEndpointAdd defines message 'gbp_endpoint_add'.
973 type GbpEndpointAdd struct {
974 Endpoint GbpEndpoint `binapi:"gbp_endpoint,name=endpoint" json:"endpoint,omitempty"`
977 func (m *GbpEndpointAdd) Reset() { *m = GbpEndpointAdd{} }
978 func (*GbpEndpointAdd) GetMessageName() string { return "gbp_endpoint_add" }
979 func (*GbpEndpointAdd) GetCrcString() string { return "9ce16d5a" }
980 func (*GbpEndpointAdd) GetMessageType() api.MessageType {
981 return api.RequestMessage
984 func (m *GbpEndpointAdd) Size() (size int) {
988 size += 4 // m.Endpoint.SwIfIndex
989 size += 2 // m.Endpoint.Sclass
990 size += 4 // m.Endpoint.Flags
991 size += 1 * 6 // m.Endpoint.Mac
992 size += 1 // m.Endpoint.Tun.Src.Af
993 size += 1 * 16 // m.Endpoint.Tun.Src.Un
994 size += 1 // m.Endpoint.Tun.Dst.Af
995 size += 1 * 16 // m.Endpoint.Tun.Dst.Un
996 size += 1 // m.Endpoint.NIps
997 for j2 := 0; j2 < len(m.Endpoint.Ips); j2++ {
998 var s2 ip_types.Address
1000 if j2 < len(m.Endpoint.Ips) {
1001 s2 = m.Endpoint.Ips[j2]
1004 size += 1 * 16 // s2.Un
1008 func (m *GbpEndpointAdd) Marshal(b []byte) ([]byte, error) {
1010 b = make([]byte, m.Size())
1012 buf := codec.NewBuffer(b)
1013 buf.EncodeUint32(uint32(m.Endpoint.SwIfIndex))
1014 buf.EncodeUint16(m.Endpoint.Sclass)
1015 buf.EncodeUint32(uint32(m.Endpoint.Flags))
1016 buf.EncodeBytes(m.Endpoint.Mac[:], 6)
1017 buf.EncodeUint8(uint8(m.Endpoint.Tun.Src.Af))
1018 buf.EncodeBytes(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], 16)
1019 buf.EncodeUint8(uint8(m.Endpoint.Tun.Dst.Af))
1020 buf.EncodeBytes(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], 16)
1021 buf.EncodeUint8(uint8(len(m.Endpoint.Ips)))
1022 for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
1023 var v1 ip_types.Address // Ips
1024 if j1 < len(m.Endpoint.Ips) {
1025 v1 = m.Endpoint.Ips[j1]
1027 buf.EncodeUint8(uint8(v1.Af))
1028 buf.EncodeBytes(v1.Un.XXX_UnionData[:], 16)
1030 return buf.Bytes(), nil
1032 func (m *GbpEndpointAdd) Unmarshal(b []byte) error {
1033 buf := codec.NewBuffer(b)
1034 m.Endpoint.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1035 m.Endpoint.Sclass = buf.DecodeUint16()
1036 m.Endpoint.Flags = GbpEndpointFlags(buf.DecodeUint32())
1037 copy(m.Endpoint.Mac[:], buf.DecodeBytes(6))
1038 m.Endpoint.Tun.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
1039 copy(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1040 m.Endpoint.Tun.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
1041 copy(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1042 m.Endpoint.NIps = buf.DecodeUint8()
1043 m.Endpoint.Ips = make([]ip_types.Address, m.Endpoint.NIps)
1044 for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
1045 m.Endpoint.Ips[j1].Af = ip_types.AddressFamily(buf.DecodeUint8())
1046 copy(m.Endpoint.Ips[j1].Un.XXX_UnionData[:], buf.DecodeBytes(16))
1051 // GbpEndpointAddReply defines message 'gbp_endpoint_add_reply'.
1052 type GbpEndpointAddReply struct {
1053 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1054 Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
1057 func (m *GbpEndpointAddReply) Reset() { *m = GbpEndpointAddReply{} }
1058 func (*GbpEndpointAddReply) GetMessageName() string { return "gbp_endpoint_add_reply" }
1059 func (*GbpEndpointAddReply) GetCrcString() string { return "1dd3ff3e" }
1060 func (*GbpEndpointAddReply) GetMessageType() api.MessageType {
1061 return api.ReplyMessage
1064 func (m *GbpEndpointAddReply) Size() (size int) {
1068 size += 4 // m.Retval
1069 size += 4 // m.Handle
1072 func (m *GbpEndpointAddReply) Marshal(b []byte) ([]byte, error) {
1074 b = make([]byte, m.Size())
1076 buf := codec.NewBuffer(b)
1077 buf.EncodeInt32(m.Retval)
1078 buf.EncodeUint32(m.Handle)
1079 return buf.Bytes(), nil
1081 func (m *GbpEndpointAddReply) Unmarshal(b []byte) error {
1082 buf := codec.NewBuffer(b)
1083 m.Retval = buf.DecodeInt32()
1084 m.Handle = buf.DecodeUint32()
1088 // GbpEndpointDel defines message 'gbp_endpoint_del'.
1089 type GbpEndpointDel struct {
1090 Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
1093 func (m *GbpEndpointDel) Reset() { *m = GbpEndpointDel{} }
1094 func (*GbpEndpointDel) GetMessageName() string { return "gbp_endpoint_del" }
1095 func (*GbpEndpointDel) GetCrcString() string { return "b93cd566" }
1096 func (*GbpEndpointDel) GetMessageType() api.MessageType {
1097 return api.RequestMessage
1100 func (m *GbpEndpointDel) Size() (size int) {
1104 size += 4 // m.Handle
1107 func (m *GbpEndpointDel) Marshal(b []byte) ([]byte, error) {
1109 b = make([]byte, m.Size())
1111 buf := codec.NewBuffer(b)
1112 buf.EncodeUint32(m.Handle)
1113 return buf.Bytes(), nil
1115 func (m *GbpEndpointDel) Unmarshal(b []byte) error {
1116 buf := codec.NewBuffer(b)
1117 m.Handle = buf.DecodeUint32()
1121 // GbpEndpointDelReply defines message 'gbp_endpoint_del_reply'.
1122 type GbpEndpointDelReply struct {
1123 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1126 func (m *GbpEndpointDelReply) Reset() { *m = GbpEndpointDelReply{} }
1127 func (*GbpEndpointDelReply) GetMessageName() string { return "gbp_endpoint_del_reply" }
1128 func (*GbpEndpointDelReply) GetCrcString() string { return "e8d4e804" }
1129 func (*GbpEndpointDelReply) GetMessageType() api.MessageType {
1130 return api.ReplyMessage
1133 func (m *GbpEndpointDelReply) Size() (size int) {
1137 size += 4 // m.Retval
1140 func (m *GbpEndpointDelReply) Marshal(b []byte) ([]byte, error) {
1142 b = make([]byte, m.Size())
1144 buf := codec.NewBuffer(b)
1145 buf.EncodeInt32(m.Retval)
1146 return buf.Bytes(), nil
1148 func (m *GbpEndpointDelReply) Unmarshal(b []byte) error {
1149 buf := codec.NewBuffer(b)
1150 m.Retval = buf.DecodeInt32()
1154 // GbpEndpointDetails defines message 'gbp_endpoint_details'.
1155 type GbpEndpointDetails struct {
1156 Age float64 `binapi:"f64,name=age" json:"age,omitempty"`
1157 Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
1158 Endpoint GbpEndpoint `binapi:"gbp_endpoint,name=endpoint" json:"endpoint,omitempty"`
1161 func (m *GbpEndpointDetails) Reset() { *m = GbpEndpointDetails{} }
1162 func (*GbpEndpointDetails) GetMessageName() string { return "gbp_endpoint_details" }
1163 func (*GbpEndpointDetails) GetCrcString() string { return "08aecb60" }
1164 func (*GbpEndpointDetails) GetMessageType() api.MessageType {
1165 return api.ReplyMessage
1168 func (m *GbpEndpointDetails) Size() (size int) {
1173 size += 4 // m.Handle
1174 size += 4 // m.Endpoint.SwIfIndex
1175 size += 2 // m.Endpoint.Sclass
1176 size += 4 // m.Endpoint.Flags
1177 size += 1 * 6 // m.Endpoint.Mac
1178 size += 1 // m.Endpoint.Tun.Src.Af
1179 size += 1 * 16 // m.Endpoint.Tun.Src.Un
1180 size += 1 // m.Endpoint.Tun.Dst.Af
1181 size += 1 * 16 // m.Endpoint.Tun.Dst.Un
1182 size += 1 // m.Endpoint.NIps
1183 for j2 := 0; j2 < len(m.Endpoint.Ips); j2++ {
1184 var s2 ip_types.Address
1186 if j2 < len(m.Endpoint.Ips) {
1187 s2 = m.Endpoint.Ips[j2]
1190 size += 1 * 16 // s2.Un
1194 func (m *GbpEndpointDetails) Marshal(b []byte) ([]byte, error) {
1196 b = make([]byte, m.Size())
1198 buf := codec.NewBuffer(b)
1199 buf.EncodeFloat64(m.Age)
1200 buf.EncodeUint32(m.Handle)
1201 buf.EncodeUint32(uint32(m.Endpoint.SwIfIndex))
1202 buf.EncodeUint16(m.Endpoint.Sclass)
1203 buf.EncodeUint32(uint32(m.Endpoint.Flags))
1204 buf.EncodeBytes(m.Endpoint.Mac[:], 6)
1205 buf.EncodeUint8(uint8(m.Endpoint.Tun.Src.Af))
1206 buf.EncodeBytes(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], 16)
1207 buf.EncodeUint8(uint8(m.Endpoint.Tun.Dst.Af))
1208 buf.EncodeBytes(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], 16)
1209 buf.EncodeUint8(uint8(len(m.Endpoint.Ips)))
1210 for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
1211 var v1 ip_types.Address // Ips
1212 if j1 < len(m.Endpoint.Ips) {
1213 v1 = m.Endpoint.Ips[j1]
1215 buf.EncodeUint8(uint8(v1.Af))
1216 buf.EncodeBytes(v1.Un.XXX_UnionData[:], 16)
1218 return buf.Bytes(), nil
1220 func (m *GbpEndpointDetails) Unmarshal(b []byte) error {
1221 buf := codec.NewBuffer(b)
1222 m.Age = buf.DecodeFloat64()
1223 m.Handle = buf.DecodeUint32()
1224 m.Endpoint.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1225 m.Endpoint.Sclass = buf.DecodeUint16()
1226 m.Endpoint.Flags = GbpEndpointFlags(buf.DecodeUint32())
1227 copy(m.Endpoint.Mac[:], buf.DecodeBytes(6))
1228 m.Endpoint.Tun.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
1229 copy(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1230 m.Endpoint.Tun.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
1231 copy(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1232 m.Endpoint.NIps = buf.DecodeUint8()
1233 m.Endpoint.Ips = make([]ip_types.Address, m.Endpoint.NIps)
1234 for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
1235 m.Endpoint.Ips[j1].Af = ip_types.AddressFamily(buf.DecodeUint8())
1236 copy(m.Endpoint.Ips[j1].Un.XXX_UnionData[:], buf.DecodeBytes(16))
1241 // GbpEndpointDump defines message 'gbp_endpoint_dump'.
1242 type GbpEndpointDump struct{}
1244 func (m *GbpEndpointDump) Reset() { *m = GbpEndpointDump{} }
1245 func (*GbpEndpointDump) GetMessageName() string { return "gbp_endpoint_dump" }
1246 func (*GbpEndpointDump) GetCrcString() string { return "51077d14" }
1247 func (*GbpEndpointDump) GetMessageType() api.MessageType {
1248 return api.RequestMessage
1251 func (m *GbpEndpointDump) Size() (size int) {
1257 func (m *GbpEndpointDump) Marshal(b []byte) ([]byte, error) {
1259 b = make([]byte, m.Size())
1261 buf := codec.NewBuffer(b)
1262 return buf.Bytes(), nil
1264 func (m *GbpEndpointDump) Unmarshal(b []byte) error {
1268 // GbpEndpointGroupAdd defines message 'gbp_endpoint_group_add'.
1269 type GbpEndpointGroupAdd struct {
1270 Epg GbpEndpointGroup `binapi:"gbp_endpoint_group,name=epg" json:"epg,omitempty"`
1273 func (m *GbpEndpointGroupAdd) Reset() { *m = GbpEndpointGroupAdd{} }
1274 func (*GbpEndpointGroupAdd) GetMessageName() string { return "gbp_endpoint_group_add" }
1275 func (*GbpEndpointGroupAdd) GetCrcString() string { return "8e0f4054" }
1276 func (*GbpEndpointGroupAdd) GetMessageType() api.MessageType {
1277 return api.RequestMessage
1280 func (m *GbpEndpointGroupAdd) Size() (size int) {
1284 size += 4 // m.Epg.Vnid
1285 size += 2 // m.Epg.Sclass
1286 size += 4 // m.Epg.BdID
1287 size += 4 // m.Epg.RdID
1288 size += 4 // m.Epg.UplinkSwIfIndex
1289 size += 4 // m.Epg.Retention.RemoteEpTimeout
1292 func (m *GbpEndpointGroupAdd) Marshal(b []byte) ([]byte, error) {
1294 b = make([]byte, m.Size())
1296 buf := codec.NewBuffer(b)
1297 buf.EncodeUint32(m.Epg.Vnid)
1298 buf.EncodeUint16(m.Epg.Sclass)
1299 buf.EncodeUint32(m.Epg.BdID)
1300 buf.EncodeUint32(m.Epg.RdID)
1301 buf.EncodeUint32(uint32(m.Epg.UplinkSwIfIndex))
1302 buf.EncodeUint32(m.Epg.Retention.RemoteEpTimeout)
1303 return buf.Bytes(), nil
1305 func (m *GbpEndpointGroupAdd) Unmarshal(b []byte) error {
1306 buf := codec.NewBuffer(b)
1307 m.Epg.Vnid = buf.DecodeUint32()
1308 m.Epg.Sclass = buf.DecodeUint16()
1309 m.Epg.BdID = buf.DecodeUint32()
1310 m.Epg.RdID = buf.DecodeUint32()
1311 m.Epg.UplinkSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1312 m.Epg.Retention.RemoteEpTimeout = buf.DecodeUint32()
1316 // GbpEndpointGroupAddReply defines message 'gbp_endpoint_group_add_reply'.
1317 type GbpEndpointGroupAddReply struct {
1318 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1321 func (m *GbpEndpointGroupAddReply) Reset() { *m = GbpEndpointGroupAddReply{} }
1322 func (*GbpEndpointGroupAddReply) GetMessageName() string { return "gbp_endpoint_group_add_reply" }
1323 func (*GbpEndpointGroupAddReply) GetCrcString() string { return "e8d4e804" }
1324 func (*GbpEndpointGroupAddReply) GetMessageType() api.MessageType {
1325 return api.ReplyMessage
1328 func (m *GbpEndpointGroupAddReply) Size() (size int) {
1332 size += 4 // m.Retval
1335 func (m *GbpEndpointGroupAddReply) Marshal(b []byte) ([]byte, error) {
1337 b = make([]byte, m.Size())
1339 buf := codec.NewBuffer(b)
1340 buf.EncodeInt32(m.Retval)
1341 return buf.Bytes(), nil
1343 func (m *GbpEndpointGroupAddReply) Unmarshal(b []byte) error {
1344 buf := codec.NewBuffer(b)
1345 m.Retval = buf.DecodeInt32()
1349 // GbpEndpointGroupDel defines message 'gbp_endpoint_group_del'.
1350 type GbpEndpointGroupDel struct {
1351 Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
1354 func (m *GbpEndpointGroupDel) Reset() { *m = GbpEndpointGroupDel{} }
1355 func (*GbpEndpointGroupDel) GetMessageName() string { return "gbp_endpoint_group_del" }
1356 func (*GbpEndpointGroupDel) GetCrcString() string { return "3436b8b7" }
1357 func (*GbpEndpointGroupDel) GetMessageType() api.MessageType {
1358 return api.RequestMessage
1361 func (m *GbpEndpointGroupDel) Size() (size int) {
1365 size += 2 // m.Sclass
1368 func (m *GbpEndpointGroupDel) Marshal(b []byte) ([]byte, error) {
1370 b = make([]byte, m.Size())
1372 buf := codec.NewBuffer(b)
1373 buf.EncodeUint16(m.Sclass)
1374 return buf.Bytes(), nil
1376 func (m *GbpEndpointGroupDel) Unmarshal(b []byte) error {
1377 buf := codec.NewBuffer(b)
1378 m.Sclass = buf.DecodeUint16()
1382 // GbpEndpointGroupDelReply defines message 'gbp_endpoint_group_del_reply'.
1383 type GbpEndpointGroupDelReply struct {
1384 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1387 func (m *GbpEndpointGroupDelReply) Reset() { *m = GbpEndpointGroupDelReply{} }
1388 func (*GbpEndpointGroupDelReply) GetMessageName() string { return "gbp_endpoint_group_del_reply" }
1389 func (*GbpEndpointGroupDelReply) GetCrcString() string { return "e8d4e804" }
1390 func (*GbpEndpointGroupDelReply) GetMessageType() api.MessageType {
1391 return api.ReplyMessage
1394 func (m *GbpEndpointGroupDelReply) Size() (size int) {
1398 size += 4 // m.Retval
1401 func (m *GbpEndpointGroupDelReply) Marshal(b []byte) ([]byte, error) {
1403 b = make([]byte, m.Size())
1405 buf := codec.NewBuffer(b)
1406 buf.EncodeInt32(m.Retval)
1407 return buf.Bytes(), nil
1409 func (m *GbpEndpointGroupDelReply) Unmarshal(b []byte) error {
1410 buf := codec.NewBuffer(b)
1411 m.Retval = buf.DecodeInt32()
1415 // GbpEndpointGroupDetails defines message 'gbp_endpoint_group_details'.
1416 type GbpEndpointGroupDetails struct {
1417 Epg GbpEndpointGroup `binapi:"gbp_endpoint_group,name=epg" json:"epg,omitempty"`
1420 func (m *GbpEndpointGroupDetails) Reset() { *m = GbpEndpointGroupDetails{} }
1421 func (*GbpEndpointGroupDetails) GetMessageName() string { return "gbp_endpoint_group_details" }
1422 func (*GbpEndpointGroupDetails) GetCrcString() string { return "8f38292c" }
1423 func (*GbpEndpointGroupDetails) GetMessageType() api.MessageType {
1424 return api.ReplyMessage
1427 func (m *GbpEndpointGroupDetails) Size() (size int) {
1431 size += 4 // m.Epg.Vnid
1432 size += 2 // m.Epg.Sclass
1433 size += 4 // m.Epg.BdID
1434 size += 4 // m.Epg.RdID
1435 size += 4 // m.Epg.UplinkSwIfIndex
1436 size += 4 // m.Epg.Retention.RemoteEpTimeout
1439 func (m *GbpEndpointGroupDetails) Marshal(b []byte) ([]byte, error) {
1441 b = make([]byte, m.Size())
1443 buf := codec.NewBuffer(b)
1444 buf.EncodeUint32(m.Epg.Vnid)
1445 buf.EncodeUint16(m.Epg.Sclass)
1446 buf.EncodeUint32(m.Epg.BdID)
1447 buf.EncodeUint32(m.Epg.RdID)
1448 buf.EncodeUint32(uint32(m.Epg.UplinkSwIfIndex))
1449 buf.EncodeUint32(m.Epg.Retention.RemoteEpTimeout)
1450 return buf.Bytes(), nil
1452 func (m *GbpEndpointGroupDetails) Unmarshal(b []byte) error {
1453 buf := codec.NewBuffer(b)
1454 m.Epg.Vnid = buf.DecodeUint32()
1455 m.Epg.Sclass = buf.DecodeUint16()
1456 m.Epg.BdID = buf.DecodeUint32()
1457 m.Epg.RdID = buf.DecodeUint32()
1458 m.Epg.UplinkSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1459 m.Epg.Retention.RemoteEpTimeout = buf.DecodeUint32()
1463 // GbpEndpointGroupDump defines message 'gbp_endpoint_group_dump'.
1464 type GbpEndpointGroupDump struct{}
1466 func (m *GbpEndpointGroupDump) Reset() { *m = GbpEndpointGroupDump{} }
1467 func (*GbpEndpointGroupDump) GetMessageName() string { return "gbp_endpoint_group_dump" }
1468 func (*GbpEndpointGroupDump) GetCrcString() string { return "51077d14" }
1469 func (*GbpEndpointGroupDump) GetMessageType() api.MessageType {
1470 return api.RequestMessage
1473 func (m *GbpEndpointGroupDump) Size() (size int) {
1479 func (m *GbpEndpointGroupDump) Marshal(b []byte) ([]byte, error) {
1481 b = make([]byte, m.Size())
1483 buf := codec.NewBuffer(b)
1484 return buf.Bytes(), nil
1486 func (m *GbpEndpointGroupDump) Unmarshal(b []byte) error {
1490 // GbpExtItfAddDel defines message 'gbp_ext_itf_add_del'.
1491 type GbpExtItfAddDel struct {
1492 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
1493 ExtItf GbpExtItf `binapi:"gbp_ext_itf,name=ext_itf" json:"ext_itf,omitempty"`
1496 func (m *GbpExtItfAddDel) Reset() { *m = GbpExtItfAddDel{} }
1497 func (*GbpExtItfAddDel) GetMessageName() string { return "gbp_ext_itf_add_del" }
1498 func (*GbpExtItfAddDel) GetCrcString() string { return "12ed5700" }
1499 func (*GbpExtItfAddDel) GetMessageType() api.MessageType {
1500 return api.RequestMessage
1503 func (m *GbpExtItfAddDel) Size() (size int) {
1507 size += 1 // m.IsAdd
1508 size += 4 // m.ExtItf.SwIfIndex
1509 size += 4 // m.ExtItf.BdID
1510 size += 4 // m.ExtItf.RdID
1511 size += 4 // m.ExtItf.Flags
1514 func (m *GbpExtItfAddDel) Marshal(b []byte) ([]byte, error) {
1516 b = make([]byte, m.Size())
1518 buf := codec.NewBuffer(b)
1519 buf.EncodeBool(m.IsAdd)
1520 buf.EncodeUint32(uint32(m.ExtItf.SwIfIndex))
1521 buf.EncodeUint32(m.ExtItf.BdID)
1522 buf.EncodeUint32(m.ExtItf.RdID)
1523 buf.EncodeUint32(uint32(m.ExtItf.Flags))
1524 return buf.Bytes(), nil
1526 func (m *GbpExtItfAddDel) Unmarshal(b []byte) error {
1527 buf := codec.NewBuffer(b)
1528 m.IsAdd = buf.DecodeBool()
1529 m.ExtItf.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1530 m.ExtItf.BdID = buf.DecodeUint32()
1531 m.ExtItf.RdID = buf.DecodeUint32()
1532 m.ExtItf.Flags = GbpExtItfFlags(buf.DecodeUint32())
1536 // GbpExtItfAddDelReply defines message 'gbp_ext_itf_add_del_reply'.
1537 type GbpExtItfAddDelReply struct {
1538 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1541 func (m *GbpExtItfAddDelReply) Reset() { *m = GbpExtItfAddDelReply{} }
1542 func (*GbpExtItfAddDelReply) GetMessageName() string { return "gbp_ext_itf_add_del_reply" }
1543 func (*GbpExtItfAddDelReply) GetCrcString() string { return "e8d4e804" }
1544 func (*GbpExtItfAddDelReply) GetMessageType() api.MessageType {
1545 return api.ReplyMessage
1548 func (m *GbpExtItfAddDelReply) Size() (size int) {
1552 size += 4 // m.Retval
1555 func (m *GbpExtItfAddDelReply) 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 *GbpExtItfAddDelReply) Unmarshal(b []byte) error {
1564 buf := codec.NewBuffer(b)
1565 m.Retval = buf.DecodeInt32()
1569 // GbpExtItfDetails defines message 'gbp_ext_itf_details'.
1570 type GbpExtItfDetails struct {
1571 ExtItf GbpExtItf `binapi:"gbp_ext_itf,name=ext_itf" json:"ext_itf,omitempty"`
1574 func (m *GbpExtItfDetails) Reset() { *m = GbpExtItfDetails{} }
1575 func (*GbpExtItfDetails) GetMessageName() string { return "gbp_ext_itf_details" }
1576 func (*GbpExtItfDetails) GetCrcString() string { return "408a45c0" }
1577 func (*GbpExtItfDetails) GetMessageType() api.MessageType {
1578 return api.ReplyMessage
1581 func (m *GbpExtItfDetails) Size() (size int) {
1585 size += 4 // m.ExtItf.SwIfIndex
1586 size += 4 // m.ExtItf.BdID
1587 size += 4 // m.ExtItf.RdID
1588 size += 4 // m.ExtItf.Flags
1591 func (m *GbpExtItfDetails) Marshal(b []byte) ([]byte, error) {
1593 b = make([]byte, m.Size())
1595 buf := codec.NewBuffer(b)
1596 buf.EncodeUint32(uint32(m.ExtItf.SwIfIndex))
1597 buf.EncodeUint32(m.ExtItf.BdID)
1598 buf.EncodeUint32(m.ExtItf.RdID)
1599 buf.EncodeUint32(uint32(m.ExtItf.Flags))
1600 return buf.Bytes(), nil
1602 func (m *GbpExtItfDetails) Unmarshal(b []byte) error {
1603 buf := codec.NewBuffer(b)
1604 m.ExtItf.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1605 m.ExtItf.BdID = buf.DecodeUint32()
1606 m.ExtItf.RdID = buf.DecodeUint32()
1607 m.ExtItf.Flags = GbpExtItfFlags(buf.DecodeUint32())
1611 // GbpExtItfDump defines message 'gbp_ext_itf_dump'.
1612 type GbpExtItfDump struct{}
1614 func (m *GbpExtItfDump) Reset() { *m = GbpExtItfDump{} }
1615 func (*GbpExtItfDump) GetMessageName() string { return "gbp_ext_itf_dump" }
1616 func (*GbpExtItfDump) GetCrcString() string { return "51077d14" }
1617 func (*GbpExtItfDump) GetMessageType() api.MessageType {
1618 return api.RequestMessage
1621 func (m *GbpExtItfDump) Size() (size int) {
1627 func (m *GbpExtItfDump) Marshal(b []byte) ([]byte, error) {
1629 b = make([]byte, m.Size())
1631 buf := codec.NewBuffer(b)
1632 return buf.Bytes(), nil
1634 func (m *GbpExtItfDump) Unmarshal(b []byte) error {
1638 // GbpRecircAddDel defines message 'gbp_recirc_add_del'.
1639 type GbpRecircAddDel struct {
1640 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
1641 Recirc GbpRecirc `binapi:"gbp_recirc,name=recirc" json:"recirc,omitempty"`
1644 func (m *GbpRecircAddDel) Reset() { *m = GbpRecircAddDel{} }
1645 func (*GbpRecircAddDel) GetMessageName() string { return "gbp_recirc_add_del" }
1646 func (*GbpRecircAddDel) GetCrcString() string { return "718c69c3" }
1647 func (*GbpRecircAddDel) GetMessageType() api.MessageType {
1648 return api.RequestMessage
1651 func (m *GbpRecircAddDel) Size() (size int) {
1655 size += 1 // m.IsAdd
1656 size += 4 // m.Recirc.SwIfIndex
1657 size += 2 // m.Recirc.Sclass
1658 size += 1 // m.Recirc.IsExt
1661 func (m *GbpRecircAddDel) Marshal(b []byte) ([]byte, error) {
1663 b = make([]byte, m.Size())
1665 buf := codec.NewBuffer(b)
1666 buf.EncodeBool(m.IsAdd)
1667 buf.EncodeUint32(uint32(m.Recirc.SwIfIndex))
1668 buf.EncodeUint16(m.Recirc.Sclass)
1669 buf.EncodeBool(m.Recirc.IsExt)
1670 return buf.Bytes(), nil
1672 func (m *GbpRecircAddDel) Unmarshal(b []byte) error {
1673 buf := codec.NewBuffer(b)
1674 m.IsAdd = buf.DecodeBool()
1675 m.Recirc.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1676 m.Recirc.Sclass = buf.DecodeUint16()
1677 m.Recirc.IsExt = buf.DecodeBool()
1681 // GbpRecircAddDelReply defines message 'gbp_recirc_add_del_reply'.
1682 type GbpRecircAddDelReply struct {
1683 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1686 func (m *GbpRecircAddDelReply) Reset() { *m = GbpRecircAddDelReply{} }
1687 func (*GbpRecircAddDelReply) GetMessageName() string { return "gbp_recirc_add_del_reply" }
1688 func (*GbpRecircAddDelReply) GetCrcString() string { return "e8d4e804" }
1689 func (*GbpRecircAddDelReply) GetMessageType() api.MessageType {
1690 return api.ReplyMessage
1693 func (m *GbpRecircAddDelReply) Size() (size int) {
1697 size += 4 // m.Retval
1700 func (m *GbpRecircAddDelReply) Marshal(b []byte) ([]byte, error) {
1702 b = make([]byte, m.Size())
1704 buf := codec.NewBuffer(b)
1705 buf.EncodeInt32(m.Retval)
1706 return buf.Bytes(), nil
1708 func (m *GbpRecircAddDelReply) Unmarshal(b []byte) error {
1709 buf := codec.NewBuffer(b)
1710 m.Retval = buf.DecodeInt32()
1714 // GbpRecircDetails defines message 'gbp_recirc_details'.
1715 type GbpRecircDetails struct {
1716 Recirc GbpRecirc `binapi:"gbp_recirc,name=recirc" json:"recirc,omitempty"`
1719 func (m *GbpRecircDetails) Reset() { *m = GbpRecircDetails{} }
1720 func (*GbpRecircDetails) GetMessageName() string { return "gbp_recirc_details" }
1721 func (*GbpRecircDetails) GetCrcString() string { return "66ecc42e" }
1722 func (*GbpRecircDetails) GetMessageType() api.MessageType {
1723 return api.ReplyMessage
1726 func (m *GbpRecircDetails) Size() (size int) {
1730 size += 4 // m.Recirc.SwIfIndex
1731 size += 2 // m.Recirc.Sclass
1732 size += 1 // m.Recirc.IsExt
1735 func (m *GbpRecircDetails) Marshal(b []byte) ([]byte, error) {
1737 b = make([]byte, m.Size())
1739 buf := codec.NewBuffer(b)
1740 buf.EncodeUint32(uint32(m.Recirc.SwIfIndex))
1741 buf.EncodeUint16(m.Recirc.Sclass)
1742 buf.EncodeBool(m.Recirc.IsExt)
1743 return buf.Bytes(), nil
1745 func (m *GbpRecircDetails) Unmarshal(b []byte) error {
1746 buf := codec.NewBuffer(b)
1747 m.Recirc.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1748 m.Recirc.Sclass = buf.DecodeUint16()
1749 m.Recirc.IsExt = buf.DecodeBool()
1753 // GbpRecircDump defines message 'gbp_recirc_dump'.
1754 type GbpRecircDump struct{}
1756 func (m *GbpRecircDump) Reset() { *m = GbpRecircDump{} }
1757 func (*GbpRecircDump) GetMessageName() string { return "gbp_recirc_dump" }
1758 func (*GbpRecircDump) GetCrcString() string { return "51077d14" }
1759 func (*GbpRecircDump) GetMessageType() api.MessageType {
1760 return api.RequestMessage
1763 func (m *GbpRecircDump) Size() (size int) {
1769 func (m *GbpRecircDump) Marshal(b []byte) ([]byte, error) {
1771 b = make([]byte, m.Size())
1773 buf := codec.NewBuffer(b)
1774 return buf.Bytes(), nil
1776 func (m *GbpRecircDump) Unmarshal(b []byte) error {
1780 // GbpRouteDomainAdd defines message 'gbp_route_domain_add'.
1781 type GbpRouteDomainAdd struct {
1782 Rd GbpRouteDomain `binapi:"gbp_route_domain,name=rd" json:"rd,omitempty"`
1785 func (m *GbpRouteDomainAdd) Reset() { *m = GbpRouteDomainAdd{} }
1786 func (*GbpRouteDomainAdd) GetMessageName() string { return "gbp_route_domain_add" }
1787 func (*GbpRouteDomainAdd) GetCrcString() string { return "2d0afe38" }
1788 func (*GbpRouteDomainAdd) GetMessageType() api.MessageType {
1789 return api.RequestMessage
1792 func (m *GbpRouteDomainAdd) Size() (size int) {
1796 size += 4 // m.Rd.RdID
1797 size += 4 // m.Rd.IP4TableID
1798 size += 4 // m.Rd.IP6TableID
1799 size += 4 // m.Rd.IP4UuSwIfIndex
1800 size += 4 // m.Rd.IP6UuSwIfIndex
1801 size += 2 // m.Rd.Scope
1804 func (m *GbpRouteDomainAdd) Marshal(b []byte) ([]byte, error) {
1806 b = make([]byte, m.Size())
1808 buf := codec.NewBuffer(b)
1809 buf.EncodeUint32(m.Rd.RdID)
1810 buf.EncodeUint32(m.Rd.IP4TableID)
1811 buf.EncodeUint32(m.Rd.IP6TableID)
1812 buf.EncodeUint32(uint32(m.Rd.IP4UuSwIfIndex))
1813 buf.EncodeUint32(uint32(m.Rd.IP6UuSwIfIndex))
1814 buf.EncodeUint16(uint16(m.Rd.Scope))
1815 return buf.Bytes(), nil
1817 func (m *GbpRouteDomainAdd) Unmarshal(b []byte) error {
1818 buf := codec.NewBuffer(b)
1819 m.Rd.RdID = buf.DecodeUint32()
1820 m.Rd.IP4TableID = buf.DecodeUint32()
1821 m.Rd.IP6TableID = buf.DecodeUint32()
1822 m.Rd.IP4UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1823 m.Rd.IP6UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1824 m.Rd.Scope = GbpScope(buf.DecodeUint16())
1828 // GbpRouteDomainAddReply defines message 'gbp_route_domain_add_reply'.
1829 type GbpRouteDomainAddReply struct {
1830 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1833 func (m *GbpRouteDomainAddReply) Reset() { *m = GbpRouteDomainAddReply{} }
1834 func (*GbpRouteDomainAddReply) GetMessageName() string { return "gbp_route_domain_add_reply" }
1835 func (*GbpRouteDomainAddReply) GetCrcString() string { return "e8d4e804" }
1836 func (*GbpRouteDomainAddReply) GetMessageType() api.MessageType {
1837 return api.ReplyMessage
1840 func (m *GbpRouteDomainAddReply) Size() (size int) {
1844 size += 4 // m.Retval
1847 func (m *GbpRouteDomainAddReply) Marshal(b []byte) ([]byte, error) {
1849 b = make([]byte, m.Size())
1851 buf := codec.NewBuffer(b)
1852 buf.EncodeInt32(m.Retval)
1853 return buf.Bytes(), nil
1855 func (m *GbpRouteDomainAddReply) Unmarshal(b []byte) error {
1856 buf := codec.NewBuffer(b)
1857 m.Retval = buf.DecodeInt32()
1861 // GbpRouteDomainDel defines message 'gbp_route_domain_del'.
1862 type GbpRouteDomainDel struct {
1863 RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
1866 func (m *GbpRouteDomainDel) Reset() { *m = GbpRouteDomainDel{} }
1867 func (*GbpRouteDomainDel) GetMessageName() string { return "gbp_route_domain_del" }
1868 func (*GbpRouteDomainDel) GetCrcString() string { return "bee4edcd" }
1869 func (*GbpRouteDomainDel) GetMessageType() api.MessageType {
1870 return api.RequestMessage
1873 func (m *GbpRouteDomainDel) Size() (size int) {
1880 func (m *GbpRouteDomainDel) Marshal(b []byte) ([]byte, error) {
1882 b = make([]byte, m.Size())
1884 buf := codec.NewBuffer(b)
1885 buf.EncodeUint32(m.RdID)
1886 return buf.Bytes(), nil
1888 func (m *GbpRouteDomainDel) Unmarshal(b []byte) error {
1889 buf := codec.NewBuffer(b)
1890 m.RdID = buf.DecodeUint32()
1894 // GbpRouteDomainDelReply defines message 'gbp_route_domain_del_reply'.
1895 type GbpRouteDomainDelReply struct {
1896 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1899 func (m *GbpRouteDomainDelReply) Reset() { *m = GbpRouteDomainDelReply{} }
1900 func (*GbpRouteDomainDelReply) GetMessageName() string { return "gbp_route_domain_del_reply" }
1901 func (*GbpRouteDomainDelReply) GetCrcString() string { return "e8d4e804" }
1902 func (*GbpRouteDomainDelReply) GetMessageType() api.MessageType {
1903 return api.ReplyMessage
1906 func (m *GbpRouteDomainDelReply) Size() (size int) {
1910 size += 4 // m.Retval
1913 func (m *GbpRouteDomainDelReply) Marshal(b []byte) ([]byte, error) {
1915 b = make([]byte, m.Size())
1917 buf := codec.NewBuffer(b)
1918 buf.EncodeInt32(m.Retval)
1919 return buf.Bytes(), nil
1921 func (m *GbpRouteDomainDelReply) Unmarshal(b []byte) error {
1922 buf := codec.NewBuffer(b)
1923 m.Retval = buf.DecodeInt32()
1927 // GbpRouteDomainDetails defines message 'gbp_route_domain_details'.
1928 type GbpRouteDomainDetails struct {
1929 Rd GbpRouteDomain `binapi:"gbp_route_domain,name=rd" json:"rd,omitempty"`
1932 func (m *GbpRouteDomainDetails) Reset() { *m = GbpRouteDomainDetails{} }
1933 func (*GbpRouteDomainDetails) GetMessageName() string { return "gbp_route_domain_details" }
1934 func (*GbpRouteDomainDetails) GetCrcString() string { return "8ab11375" }
1935 func (*GbpRouteDomainDetails) GetMessageType() api.MessageType {
1936 return api.ReplyMessage
1939 func (m *GbpRouteDomainDetails) Size() (size int) {
1943 size += 4 // m.Rd.RdID
1944 size += 4 // m.Rd.IP4TableID
1945 size += 4 // m.Rd.IP6TableID
1946 size += 4 // m.Rd.IP4UuSwIfIndex
1947 size += 4 // m.Rd.IP6UuSwIfIndex
1948 size += 2 // m.Rd.Scope
1951 func (m *GbpRouteDomainDetails) Marshal(b []byte) ([]byte, error) {
1953 b = make([]byte, m.Size())
1955 buf := codec.NewBuffer(b)
1956 buf.EncodeUint32(m.Rd.RdID)
1957 buf.EncodeUint32(m.Rd.IP4TableID)
1958 buf.EncodeUint32(m.Rd.IP6TableID)
1959 buf.EncodeUint32(uint32(m.Rd.IP4UuSwIfIndex))
1960 buf.EncodeUint32(uint32(m.Rd.IP6UuSwIfIndex))
1961 buf.EncodeUint16(uint16(m.Rd.Scope))
1962 return buf.Bytes(), nil
1964 func (m *GbpRouteDomainDetails) Unmarshal(b []byte) error {
1965 buf := codec.NewBuffer(b)
1966 m.Rd.RdID = buf.DecodeUint32()
1967 m.Rd.IP4TableID = buf.DecodeUint32()
1968 m.Rd.IP6TableID = buf.DecodeUint32()
1969 m.Rd.IP4UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1970 m.Rd.IP6UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1971 m.Rd.Scope = GbpScope(buf.DecodeUint16())
1975 // GbpRouteDomainDump defines message 'gbp_route_domain_dump'.
1976 type GbpRouteDomainDump struct{}
1978 func (m *GbpRouteDomainDump) Reset() { *m = GbpRouteDomainDump{} }
1979 func (*GbpRouteDomainDump) GetMessageName() string { return "gbp_route_domain_dump" }
1980 func (*GbpRouteDomainDump) GetCrcString() string { return "51077d14" }
1981 func (*GbpRouteDomainDump) GetMessageType() api.MessageType {
1982 return api.RequestMessage
1985 func (m *GbpRouteDomainDump) Size() (size int) {
1991 func (m *GbpRouteDomainDump) Marshal(b []byte) ([]byte, error) {
1993 b = make([]byte, m.Size())
1995 buf := codec.NewBuffer(b)
1996 return buf.Bytes(), nil
1998 func (m *GbpRouteDomainDump) Unmarshal(b []byte) error {
2002 // GbpRouteDomainDumpReply defines message 'gbp_route_domain_dump_reply'.
2003 type GbpRouteDomainDumpReply struct {
2004 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2007 func (m *GbpRouteDomainDumpReply) Reset() { *m = GbpRouteDomainDumpReply{} }
2008 func (*GbpRouteDomainDumpReply) GetMessageName() string { return "gbp_route_domain_dump_reply" }
2009 func (*GbpRouteDomainDumpReply) GetCrcString() string { return "e8d4e804" }
2010 func (*GbpRouteDomainDumpReply) GetMessageType() api.MessageType {
2011 return api.ReplyMessage
2014 func (m *GbpRouteDomainDumpReply) Size() (size int) {
2018 size += 4 // m.Retval
2021 func (m *GbpRouteDomainDumpReply) Marshal(b []byte) ([]byte, error) {
2023 b = make([]byte, m.Size())
2025 buf := codec.NewBuffer(b)
2026 buf.EncodeInt32(m.Retval)
2027 return buf.Bytes(), nil
2029 func (m *GbpRouteDomainDumpReply) Unmarshal(b []byte) error {
2030 buf := codec.NewBuffer(b)
2031 m.Retval = buf.DecodeInt32()
2035 // GbpSubnetAddDel defines message 'gbp_subnet_add_del'.
2036 type GbpSubnetAddDel struct {
2037 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
2038 Subnet GbpSubnet `binapi:"gbp_subnet,name=subnet" json:"subnet,omitempty"`
2041 func (m *GbpSubnetAddDel) Reset() { *m = GbpSubnetAddDel{} }
2042 func (*GbpSubnetAddDel) GetMessageName() string { return "gbp_subnet_add_del" }
2043 func (*GbpSubnetAddDel) GetCrcString() string { return "888aca35" }
2044 func (*GbpSubnetAddDel) GetMessageType() api.MessageType {
2045 return api.RequestMessage
2048 func (m *GbpSubnetAddDel) Size() (size int) {
2052 size += 1 // m.IsAdd
2053 size += 4 // m.Subnet.RdID
2054 size += 4 // m.Subnet.SwIfIndex
2055 size += 2 // m.Subnet.Sclass
2056 size += 4 // m.Subnet.Type
2057 size += 1 // m.Subnet.Prefix.Address.Af
2058 size += 1 * 16 // m.Subnet.Prefix.Address.Un
2059 size += 1 // m.Subnet.Prefix.Len
2062 func (m *GbpSubnetAddDel) Marshal(b []byte) ([]byte, error) {
2064 b = make([]byte, m.Size())
2066 buf := codec.NewBuffer(b)
2067 buf.EncodeBool(m.IsAdd)
2068 buf.EncodeUint32(m.Subnet.RdID)
2069 buf.EncodeUint32(uint32(m.Subnet.SwIfIndex))
2070 buf.EncodeUint16(m.Subnet.Sclass)
2071 buf.EncodeUint32(uint32(m.Subnet.Type))
2072 buf.EncodeUint8(uint8(m.Subnet.Prefix.Address.Af))
2073 buf.EncodeBytes(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], 16)
2074 buf.EncodeUint8(m.Subnet.Prefix.Len)
2075 return buf.Bytes(), nil
2077 func (m *GbpSubnetAddDel) Unmarshal(b []byte) error {
2078 buf := codec.NewBuffer(b)
2079 m.IsAdd = buf.DecodeBool()
2080 m.Subnet.RdID = buf.DecodeUint32()
2081 m.Subnet.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2082 m.Subnet.Sclass = buf.DecodeUint16()
2083 m.Subnet.Type = GbpSubnetType(buf.DecodeUint32())
2084 m.Subnet.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
2085 copy(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2086 m.Subnet.Prefix.Len = buf.DecodeUint8()
2090 // GbpSubnetAddDelReply defines message 'gbp_subnet_add_del_reply'.
2091 type GbpSubnetAddDelReply struct {
2092 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2095 func (m *GbpSubnetAddDelReply) Reset() { *m = GbpSubnetAddDelReply{} }
2096 func (*GbpSubnetAddDelReply) GetMessageName() string { return "gbp_subnet_add_del_reply" }
2097 func (*GbpSubnetAddDelReply) GetCrcString() string { return "e8d4e804" }
2098 func (*GbpSubnetAddDelReply) GetMessageType() api.MessageType {
2099 return api.ReplyMessage
2102 func (m *GbpSubnetAddDelReply) Size() (size int) {
2106 size += 4 // m.Retval
2109 func (m *GbpSubnetAddDelReply) Marshal(b []byte) ([]byte, error) {
2111 b = make([]byte, m.Size())
2113 buf := codec.NewBuffer(b)
2114 buf.EncodeInt32(m.Retval)
2115 return buf.Bytes(), nil
2117 func (m *GbpSubnetAddDelReply) Unmarshal(b []byte) error {
2118 buf := codec.NewBuffer(b)
2119 m.Retval = buf.DecodeInt32()
2123 // GbpSubnetDetails defines message 'gbp_subnet_details'.
2124 type GbpSubnetDetails struct {
2125 Subnet GbpSubnet `binapi:"gbp_subnet,name=subnet" json:"subnet,omitempty"`
2128 func (m *GbpSubnetDetails) Reset() { *m = GbpSubnetDetails{} }
2129 func (*GbpSubnetDetails) GetMessageName() string { return "gbp_subnet_details" }
2130 func (*GbpSubnetDetails) GetCrcString() string { return "4ed84156" }
2131 func (*GbpSubnetDetails) GetMessageType() api.MessageType {
2132 return api.ReplyMessage
2135 func (m *GbpSubnetDetails) Size() (size int) {
2139 size += 4 // m.Subnet.RdID
2140 size += 4 // m.Subnet.SwIfIndex
2141 size += 2 // m.Subnet.Sclass
2142 size += 4 // m.Subnet.Type
2143 size += 1 // m.Subnet.Prefix.Address.Af
2144 size += 1 * 16 // m.Subnet.Prefix.Address.Un
2145 size += 1 // m.Subnet.Prefix.Len
2148 func (m *GbpSubnetDetails) Marshal(b []byte) ([]byte, error) {
2150 b = make([]byte, m.Size())
2152 buf := codec.NewBuffer(b)
2153 buf.EncodeUint32(m.Subnet.RdID)
2154 buf.EncodeUint32(uint32(m.Subnet.SwIfIndex))
2155 buf.EncodeUint16(m.Subnet.Sclass)
2156 buf.EncodeUint32(uint32(m.Subnet.Type))
2157 buf.EncodeUint8(uint8(m.Subnet.Prefix.Address.Af))
2158 buf.EncodeBytes(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], 16)
2159 buf.EncodeUint8(m.Subnet.Prefix.Len)
2160 return buf.Bytes(), nil
2162 func (m *GbpSubnetDetails) Unmarshal(b []byte) error {
2163 buf := codec.NewBuffer(b)
2164 m.Subnet.RdID = buf.DecodeUint32()
2165 m.Subnet.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2166 m.Subnet.Sclass = buf.DecodeUint16()
2167 m.Subnet.Type = GbpSubnetType(buf.DecodeUint32())
2168 m.Subnet.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
2169 copy(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2170 m.Subnet.Prefix.Len = buf.DecodeUint8()
2174 // GbpSubnetDump defines message 'gbp_subnet_dump'.
2175 type GbpSubnetDump struct{}
2177 func (m *GbpSubnetDump) Reset() { *m = GbpSubnetDump{} }
2178 func (*GbpSubnetDump) GetMessageName() string { return "gbp_subnet_dump" }
2179 func (*GbpSubnetDump) GetCrcString() string { return "51077d14" }
2180 func (*GbpSubnetDump) GetMessageType() api.MessageType {
2181 return api.RequestMessage
2184 func (m *GbpSubnetDump) Size() (size int) {
2190 func (m *GbpSubnetDump) Marshal(b []byte) ([]byte, error) {
2192 b = make([]byte, m.Size())
2194 buf := codec.NewBuffer(b)
2195 return buf.Bytes(), nil
2197 func (m *GbpSubnetDump) Unmarshal(b []byte) error {
2201 // GbpVxlanTunnelAdd defines message 'gbp_vxlan_tunnel_add'.
2202 type GbpVxlanTunnelAdd struct {
2203 Tunnel GbpVxlanTunnel `binapi:"gbp_vxlan_tunnel,name=tunnel" json:"tunnel,omitempty"`
2206 func (m *GbpVxlanTunnelAdd) Reset() { *m = GbpVxlanTunnelAdd{} }
2207 func (*GbpVxlanTunnelAdd) GetMessageName() string { return "gbp_vxlan_tunnel_add" }
2208 func (*GbpVxlanTunnelAdd) GetCrcString() string { return "3e070b35" }
2209 func (*GbpVxlanTunnelAdd) GetMessageType() api.MessageType {
2210 return api.RequestMessage
2213 func (m *GbpVxlanTunnelAdd) Size() (size int) {
2217 size += 4 // m.Tunnel.Vni
2218 size += 4 // m.Tunnel.Mode
2219 size += 4 // m.Tunnel.BdRdID
2220 size += 1 * 4 // m.Tunnel.Src
2223 func (m *GbpVxlanTunnelAdd) Marshal(b []byte) ([]byte, error) {
2225 b = make([]byte, m.Size())
2227 buf := codec.NewBuffer(b)
2228 buf.EncodeUint32(m.Tunnel.Vni)
2229 buf.EncodeUint32(uint32(m.Tunnel.Mode))
2230 buf.EncodeUint32(m.Tunnel.BdRdID)
2231 buf.EncodeBytes(m.Tunnel.Src[:], 4)
2232 return buf.Bytes(), nil
2234 func (m *GbpVxlanTunnelAdd) Unmarshal(b []byte) error {
2235 buf := codec.NewBuffer(b)
2236 m.Tunnel.Vni = buf.DecodeUint32()
2237 m.Tunnel.Mode = GbpVxlanTunnelMode(buf.DecodeUint32())
2238 m.Tunnel.BdRdID = buf.DecodeUint32()
2239 copy(m.Tunnel.Src[:], buf.DecodeBytes(4))
2243 // GbpVxlanTunnelAddReply defines message 'gbp_vxlan_tunnel_add_reply'.
2244 type GbpVxlanTunnelAddReply struct {
2245 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2246 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2249 func (m *GbpVxlanTunnelAddReply) Reset() { *m = GbpVxlanTunnelAddReply{} }
2250 func (*GbpVxlanTunnelAddReply) GetMessageName() string { return "gbp_vxlan_tunnel_add_reply" }
2251 func (*GbpVxlanTunnelAddReply) GetCrcString() string { return "5383d31f" }
2252 func (*GbpVxlanTunnelAddReply) GetMessageType() api.MessageType {
2253 return api.ReplyMessage
2256 func (m *GbpVxlanTunnelAddReply) Size() (size int) {
2260 size += 4 // m.Retval
2261 size += 4 // m.SwIfIndex
2264 func (m *GbpVxlanTunnelAddReply) Marshal(b []byte) ([]byte, error) {
2266 b = make([]byte, m.Size())
2268 buf := codec.NewBuffer(b)
2269 buf.EncodeInt32(m.Retval)
2270 buf.EncodeUint32(uint32(m.SwIfIndex))
2271 return buf.Bytes(), nil
2273 func (m *GbpVxlanTunnelAddReply) Unmarshal(b []byte) error {
2274 buf := codec.NewBuffer(b)
2275 m.Retval = buf.DecodeInt32()
2276 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2280 // GbpVxlanTunnelDel defines message 'gbp_vxlan_tunnel_del'.
2281 type GbpVxlanTunnelDel struct {
2282 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
2285 func (m *GbpVxlanTunnelDel) Reset() { *m = GbpVxlanTunnelDel{} }
2286 func (*GbpVxlanTunnelDel) GetMessageName() string { return "gbp_vxlan_tunnel_del" }
2287 func (*GbpVxlanTunnelDel) GetCrcString() string { return "8d1f2fe9" }
2288 func (*GbpVxlanTunnelDel) GetMessageType() api.MessageType {
2289 return api.RequestMessage
2292 func (m *GbpVxlanTunnelDel) Size() (size int) {
2299 func (m *GbpVxlanTunnelDel) Marshal(b []byte) ([]byte, error) {
2301 b = make([]byte, m.Size())
2303 buf := codec.NewBuffer(b)
2304 buf.EncodeUint32(m.Vni)
2305 return buf.Bytes(), nil
2307 func (m *GbpVxlanTunnelDel) Unmarshal(b []byte) error {
2308 buf := codec.NewBuffer(b)
2309 m.Vni = buf.DecodeUint32()
2313 // GbpVxlanTunnelDelReply defines message 'gbp_vxlan_tunnel_del_reply'.
2314 type GbpVxlanTunnelDelReply struct {
2315 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2318 func (m *GbpVxlanTunnelDelReply) Reset() { *m = GbpVxlanTunnelDelReply{} }
2319 func (*GbpVxlanTunnelDelReply) GetMessageName() string { return "gbp_vxlan_tunnel_del_reply" }
2320 func (*GbpVxlanTunnelDelReply) GetCrcString() string { return "e8d4e804" }
2321 func (*GbpVxlanTunnelDelReply) GetMessageType() api.MessageType {
2322 return api.ReplyMessage
2325 func (m *GbpVxlanTunnelDelReply) Size() (size int) {
2329 size += 4 // m.Retval
2332 func (m *GbpVxlanTunnelDelReply) Marshal(b []byte) ([]byte, error) {
2334 b = make([]byte, m.Size())
2336 buf := codec.NewBuffer(b)
2337 buf.EncodeInt32(m.Retval)
2338 return buf.Bytes(), nil
2340 func (m *GbpVxlanTunnelDelReply) Unmarshal(b []byte) error {
2341 buf := codec.NewBuffer(b)
2342 m.Retval = buf.DecodeInt32()
2346 // GbpVxlanTunnelDetails defines message 'gbp_vxlan_tunnel_details'.
2347 type GbpVxlanTunnelDetails struct {
2348 Tunnel GbpVxlanTunnel `binapi:"gbp_vxlan_tunnel,name=tunnel" json:"tunnel,omitempty"`
2351 func (m *GbpVxlanTunnelDetails) Reset() { *m = GbpVxlanTunnelDetails{} }
2352 func (*GbpVxlanTunnelDetails) GetMessageName() string { return "gbp_vxlan_tunnel_details" }
2353 func (*GbpVxlanTunnelDetails) GetCrcString() string { return "65c6c818" }
2354 func (*GbpVxlanTunnelDetails) GetMessageType() api.MessageType {
2355 return api.ReplyMessage
2358 func (m *GbpVxlanTunnelDetails) Size() (size int) {
2362 size += 4 // m.Tunnel.Vni
2363 size += 4 // m.Tunnel.Mode
2364 size += 4 // m.Tunnel.BdRdID
2365 size += 1 * 4 // m.Tunnel.Src
2368 func (m *GbpVxlanTunnelDetails) Marshal(b []byte) ([]byte, error) {
2370 b = make([]byte, m.Size())
2372 buf := codec.NewBuffer(b)
2373 buf.EncodeUint32(m.Tunnel.Vni)
2374 buf.EncodeUint32(uint32(m.Tunnel.Mode))
2375 buf.EncodeUint32(m.Tunnel.BdRdID)
2376 buf.EncodeBytes(m.Tunnel.Src[:], 4)
2377 return buf.Bytes(), nil
2379 func (m *GbpVxlanTunnelDetails) Unmarshal(b []byte) error {
2380 buf := codec.NewBuffer(b)
2381 m.Tunnel.Vni = buf.DecodeUint32()
2382 m.Tunnel.Mode = GbpVxlanTunnelMode(buf.DecodeUint32())
2383 m.Tunnel.BdRdID = buf.DecodeUint32()
2384 copy(m.Tunnel.Src[:], buf.DecodeBytes(4))
2388 // GbpVxlanTunnelDump defines message 'gbp_vxlan_tunnel_dump'.
2389 type GbpVxlanTunnelDump struct{}
2391 func (m *GbpVxlanTunnelDump) Reset() { *m = GbpVxlanTunnelDump{} }
2392 func (*GbpVxlanTunnelDump) GetMessageName() string { return "gbp_vxlan_tunnel_dump" }
2393 func (*GbpVxlanTunnelDump) GetCrcString() string { return "51077d14" }
2394 func (*GbpVxlanTunnelDump) GetMessageType() api.MessageType {
2395 return api.RequestMessage
2398 func (m *GbpVxlanTunnelDump) Size() (size int) {
2404 func (m *GbpVxlanTunnelDump) Marshal(b []byte) ([]byte, error) {
2406 b = make([]byte, m.Size())
2408 buf := codec.NewBuffer(b)
2409 return buf.Bytes(), nil
2411 func (m *GbpVxlanTunnelDump) Unmarshal(b []byte) error {
2415 func init() { file_gbp_binapi_init() }
2416 func file_gbp_binapi_init() {
2417 api.RegisterMessage((*GbpBridgeDomainAdd)(nil), "gbp_bridge_domain_add_8454bfdf")
2418 api.RegisterMessage((*GbpBridgeDomainAddReply)(nil), "gbp_bridge_domain_add_reply_e8d4e804")
2419 api.RegisterMessage((*GbpBridgeDomainDel)(nil), "gbp_bridge_domain_del_c25fdce6")
2420 api.RegisterMessage((*GbpBridgeDomainDelReply)(nil), "gbp_bridge_domain_del_reply_e8d4e804")
2421 api.RegisterMessage((*GbpBridgeDomainDetails)(nil), "gbp_bridge_domain_details_2acd15f9")
2422 api.RegisterMessage((*GbpBridgeDomainDump)(nil), "gbp_bridge_domain_dump_51077d14")
2423 api.RegisterMessage((*GbpBridgeDomainDumpReply)(nil), "gbp_bridge_domain_dump_reply_e8d4e804")
2424 api.RegisterMessage((*GbpContractAddDel)(nil), "gbp_contract_add_del_553e275b")
2425 api.RegisterMessage((*GbpContractAddDelReply)(nil), "gbp_contract_add_del_reply_1992deab")
2426 api.RegisterMessage((*GbpContractDetails)(nil), "gbp_contract_details_2a18db6e")
2427 api.RegisterMessage((*GbpContractDump)(nil), "gbp_contract_dump_51077d14")
2428 api.RegisterMessage((*GbpEndpointAdd)(nil), "gbp_endpoint_add_9ce16d5a")
2429 api.RegisterMessage((*GbpEndpointAddReply)(nil), "gbp_endpoint_add_reply_1dd3ff3e")
2430 api.RegisterMessage((*GbpEndpointDel)(nil), "gbp_endpoint_del_b93cd566")
2431 api.RegisterMessage((*GbpEndpointDelReply)(nil), "gbp_endpoint_del_reply_e8d4e804")
2432 api.RegisterMessage((*GbpEndpointDetails)(nil), "gbp_endpoint_details_08aecb60")
2433 api.RegisterMessage((*GbpEndpointDump)(nil), "gbp_endpoint_dump_51077d14")
2434 api.RegisterMessage((*GbpEndpointGroupAdd)(nil), "gbp_endpoint_group_add_8e0f4054")
2435 api.RegisterMessage((*GbpEndpointGroupAddReply)(nil), "gbp_endpoint_group_add_reply_e8d4e804")
2436 api.RegisterMessage((*GbpEndpointGroupDel)(nil), "gbp_endpoint_group_del_3436b8b7")
2437 api.RegisterMessage((*GbpEndpointGroupDelReply)(nil), "gbp_endpoint_group_del_reply_e8d4e804")
2438 api.RegisterMessage((*GbpEndpointGroupDetails)(nil), "gbp_endpoint_group_details_8f38292c")
2439 api.RegisterMessage((*GbpEndpointGroupDump)(nil), "gbp_endpoint_group_dump_51077d14")
2440 api.RegisterMessage((*GbpExtItfAddDel)(nil), "gbp_ext_itf_add_del_12ed5700")
2441 api.RegisterMessage((*GbpExtItfAddDelReply)(nil), "gbp_ext_itf_add_del_reply_e8d4e804")
2442 api.RegisterMessage((*GbpExtItfDetails)(nil), "gbp_ext_itf_details_408a45c0")
2443 api.RegisterMessage((*GbpExtItfDump)(nil), "gbp_ext_itf_dump_51077d14")
2444 api.RegisterMessage((*GbpRecircAddDel)(nil), "gbp_recirc_add_del_718c69c3")
2445 api.RegisterMessage((*GbpRecircAddDelReply)(nil), "gbp_recirc_add_del_reply_e8d4e804")
2446 api.RegisterMessage((*GbpRecircDetails)(nil), "gbp_recirc_details_66ecc42e")
2447 api.RegisterMessage((*GbpRecircDump)(nil), "gbp_recirc_dump_51077d14")
2448 api.RegisterMessage((*GbpRouteDomainAdd)(nil), "gbp_route_domain_add_2d0afe38")
2449 api.RegisterMessage((*GbpRouteDomainAddReply)(nil), "gbp_route_domain_add_reply_e8d4e804")
2450 api.RegisterMessage((*GbpRouteDomainDel)(nil), "gbp_route_domain_del_bee4edcd")
2451 api.RegisterMessage((*GbpRouteDomainDelReply)(nil), "gbp_route_domain_del_reply_e8d4e804")
2452 api.RegisterMessage((*GbpRouteDomainDetails)(nil), "gbp_route_domain_details_8ab11375")
2453 api.RegisterMessage((*GbpRouteDomainDump)(nil), "gbp_route_domain_dump_51077d14")
2454 api.RegisterMessage((*GbpRouteDomainDumpReply)(nil), "gbp_route_domain_dump_reply_e8d4e804")
2455 api.RegisterMessage((*GbpSubnetAddDel)(nil), "gbp_subnet_add_del_888aca35")
2456 api.RegisterMessage((*GbpSubnetAddDelReply)(nil), "gbp_subnet_add_del_reply_e8d4e804")
2457 api.RegisterMessage((*GbpSubnetDetails)(nil), "gbp_subnet_details_4ed84156")
2458 api.RegisterMessage((*GbpSubnetDump)(nil), "gbp_subnet_dump_51077d14")
2459 api.RegisterMessage((*GbpVxlanTunnelAdd)(nil), "gbp_vxlan_tunnel_add_3e070b35")
2460 api.RegisterMessage((*GbpVxlanTunnelAddReply)(nil), "gbp_vxlan_tunnel_add_reply_5383d31f")
2461 api.RegisterMessage((*GbpVxlanTunnelDel)(nil), "gbp_vxlan_tunnel_del_8d1f2fe9")
2462 api.RegisterMessage((*GbpVxlanTunnelDelReply)(nil), "gbp_vxlan_tunnel_del_reply_e8d4e804")
2463 api.RegisterMessage((*GbpVxlanTunnelDetails)(nil), "gbp_vxlan_tunnel_details_65c6c818")
2464 api.RegisterMessage((*GbpVxlanTunnelDump)(nil), "gbp_vxlan_tunnel_dump_51077d14")
2467 // Messages returns list of all messages in this module.
2468 func AllMessages() []api.Message {
2469 return []api.Message{
2470 (*GbpBridgeDomainAdd)(nil),
2471 (*GbpBridgeDomainAddReply)(nil),
2472 (*GbpBridgeDomainDel)(nil),
2473 (*GbpBridgeDomainDelReply)(nil),
2474 (*GbpBridgeDomainDetails)(nil),
2475 (*GbpBridgeDomainDump)(nil),
2476 (*GbpBridgeDomainDumpReply)(nil),
2477 (*GbpContractAddDel)(nil),
2478 (*GbpContractAddDelReply)(nil),
2479 (*GbpContractDetails)(nil),
2480 (*GbpContractDump)(nil),
2481 (*GbpEndpointAdd)(nil),
2482 (*GbpEndpointAddReply)(nil),
2483 (*GbpEndpointDel)(nil),
2484 (*GbpEndpointDelReply)(nil),
2485 (*GbpEndpointDetails)(nil),
2486 (*GbpEndpointDump)(nil),
2487 (*GbpEndpointGroupAdd)(nil),
2488 (*GbpEndpointGroupAddReply)(nil),
2489 (*GbpEndpointGroupDel)(nil),
2490 (*GbpEndpointGroupDelReply)(nil),
2491 (*GbpEndpointGroupDetails)(nil),
2492 (*GbpEndpointGroupDump)(nil),
2493 (*GbpExtItfAddDel)(nil),
2494 (*GbpExtItfAddDelReply)(nil),
2495 (*GbpExtItfDetails)(nil),
2496 (*GbpExtItfDump)(nil),
2497 (*GbpRecircAddDel)(nil),
2498 (*GbpRecircAddDelReply)(nil),
2499 (*GbpRecircDetails)(nil),
2500 (*GbpRecircDump)(nil),
2501 (*GbpRouteDomainAdd)(nil),
2502 (*GbpRouteDomainAddReply)(nil),
2503 (*GbpRouteDomainDel)(nil),
2504 (*GbpRouteDomainDelReply)(nil),
2505 (*GbpRouteDomainDetails)(nil),
2506 (*GbpRouteDomainDump)(nil),
2507 (*GbpRouteDomainDumpReply)(nil),
2508 (*GbpSubnetAddDel)(nil),
2509 (*GbpSubnetAddDelReply)(nil),
2510 (*GbpSubnetDetails)(nil),
2511 (*GbpSubnetDump)(nil),
2512 (*GbpVxlanTunnelAdd)(nil),
2513 (*GbpVxlanTunnelAddReply)(nil),
2514 (*GbpVxlanTunnelDel)(nil),
2515 (*GbpVxlanTunnelDelReply)(nil),
2516 (*GbpVxlanTunnelDetails)(nil),
2517 (*GbpVxlanTunnelDump)(nil),