aboutsummaryrefslogtreecommitdiffstats
path: root/binapi/gbp
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/gbp')
-rw-r--r--binapi/gbp/gbp.ba.go2681
-rw-r--r--binapi/gbp/gbp_rest.ba.go336
-rw-r--r--binapi/gbp/gbp_rpc.ba.go523
3 files changed, 3540 insertions, 0 deletions
diff --git a/binapi/gbp/gbp.ba.go b/binapi/gbp/gbp.ba.go
new file mode 100644
index 0000000..5baa4f5
--- /dev/null
+++ b/binapi/gbp/gbp.ba.go
@@ -0,0 +1,2681 @@
+// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
+// versions:
+// binapi-generator: v0.4.0-dev
+// VPP: 20.05-release
+// source: /usr/share/vpp/api/plugins/gbp.api.json
+
+// Package gbp contains generated bindings for API file gbp.api.
+//
+// Contents:
+// 1 alias
+// 7 enums
+// 14 structs
+// 48 messages
+//
+package gbp
+
+import (
+ api "git.fd.io/govpp.git/api"
+ ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types"
+ interface_types "git.fd.io/govpp.git/binapi/interface_types"
+ ip_types "git.fd.io/govpp.git/binapi/ip_types"
+ codec "git.fd.io/govpp.git/codec"
+ "strconv"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the GoVPP api package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// GoVPP api package needs to be updated.
+const _ = api.GoVppAPIPackageIsVersion2
+
+const (
+ APIFile = "gbp"
+ APIVersion = "2.0.0"
+ VersionCrc = 0xa084c6b0
+)
+
+// GbpBridgeDomainFlags defines enum 'gbp_bridge_domain_flags'.
+type GbpBridgeDomainFlags uint32
+
+const (
+ GBP_BD_API_FLAG_NONE GbpBridgeDomainFlags = 0
+ GBP_BD_API_FLAG_DO_NOT_LEARN GbpBridgeDomainFlags = 1
+ GBP_BD_API_FLAG_UU_FWD_DROP GbpBridgeDomainFlags = 2
+ GBP_BD_API_FLAG_MCAST_DROP GbpBridgeDomainFlags = 4
+ GBP_BD_API_FLAG_UCAST_ARP GbpBridgeDomainFlags = 8
+)
+
+var (
+ GbpBridgeDomainFlags_name = map[uint32]string{
+ 0: "GBP_BD_API_FLAG_NONE",
+ 1: "GBP_BD_API_FLAG_DO_NOT_LEARN",
+ 2: "GBP_BD_API_FLAG_UU_FWD_DROP",
+ 4: "GBP_BD_API_FLAG_MCAST_DROP",
+ 8: "GBP_BD_API_FLAG_UCAST_ARP",
+ }
+ GbpBridgeDomainFlags_value = map[string]uint32{
+ "GBP_BD_API_FLAG_NONE": 0,
+ "GBP_BD_API_FLAG_DO_NOT_LEARN": 1,
+ "GBP_BD_API_FLAG_UU_FWD_DROP": 2,
+ "GBP_BD_API_FLAG_MCAST_DROP": 4,
+ "GBP_BD_API_FLAG_UCAST_ARP": 8,
+ }
+)
+
+func (x GbpBridgeDomainFlags) String() string {
+ s, ok := GbpBridgeDomainFlags_name[uint32(x)]
+ if ok {
+ return s
+ }
+ str := func(n uint32) string {
+ s, ok := GbpBridgeDomainFlags_name[uint32(n)]
+ if ok {
+ return s
+ }
+ return "GbpBridgeDomainFlags(" + strconv.Itoa(int(n)) + ")"
+ }
+ for i := uint32(0); i <= 32; i++ {
+ val := uint32(x)
+ if val&(1<<i) != 0 {
+ if s != "" {
+ s += "|"
+ }
+ s += str(1 << i)
+ }
+ }
+ if s == "" {
+ return str(uint32(x))
+ }
+ return s
+}
+
+// GbpEndpointFlags defines enum 'gbp_endpoint_flags'.
+type GbpEndpointFlags uint32
+
+const (
+ GBP_API_ENDPOINT_FLAG_NONE GbpEndpointFlags = 0
+ GBP_API_ENDPOINT_FLAG_BOUNCE GbpEndpointFlags = 1
+ GBP_API_ENDPOINT_FLAG_REMOTE GbpEndpointFlags = 2
+ GBP_API_ENDPOINT_FLAG_LEARNT GbpEndpointFlags = 4
+ GBP_API_ENDPOINT_FLAG_EXTERNAL GbpEndpointFlags = 8
+)
+
+var (
+ GbpEndpointFlags_name = map[uint32]string{
+ 0: "GBP_API_ENDPOINT_FLAG_NONE",
+ 1: "GBP_API_ENDPOINT_FLAG_BOUNCE",
+ 2: "GBP_API_ENDPOINT_FLAG_REMOTE",
+ 4: "GBP_API_ENDPOINT_FLAG_LEARNT",
+ 8: "GBP_API_ENDPOINT_FLAG_EXTERNAL",
+ }
+ GbpEndpointFlags_value = map[string]uint32{
+ "GBP_API_ENDPOINT_FLAG_NONE": 0,
+ "GBP_API_ENDPOINT_FLAG_BOUNCE": 1,
+ "GBP_API_ENDPOINT_FLAG_REMOTE": 2,
+ "GBP_API_ENDPOINT_FLAG_LEARNT": 4,
+ "GBP_API_ENDPOINT_FLAG_EXTERNAL": 8,
+ }
+)
+
+func (x GbpEndpointFlags) String() string {
+ s, ok := GbpEndpointFlags_name[uint32(x)]
+ if ok {
+ return s
+ }
+ str := func(n uint32) string {
+ s, ok := GbpEndpointFlags_name[uint32(n)]
+ if ok {
+ return s
+ }
+ return "GbpEndpointFlags(" + strconv.Itoa(int(n)) + ")"
+ }
+ for i := uint32(0); i <= 32; i++ {
+ val := uint32(x)
+ if val&(1<<i) != 0 {
+ if s != "" {
+ s += "|"
+ }
+ s += str(1 << i)
+ }
+ }
+ if s == "" {
+ return str(uint32(x))
+ }
+ return s
+}
+
+// GbpExtItfFlags defines enum 'gbp_ext_itf_flags'.
+type GbpExtItfFlags uint32
+
+const (
+ GBP_API_EXT_ITF_F_NONE GbpExtItfFlags = 0
+ GBP_API_EXT_ITF_F_ANON GbpExtItfFlags = 1
+)
+
+var (
+ GbpExtItfFlags_name = map[uint32]string{
+ 0: "GBP_API_EXT_ITF_F_NONE",
+ 1: "GBP_API_EXT_ITF_F_ANON",
+ }
+ GbpExtItfFlags_value = map[string]uint32{
+ "GBP_API_EXT_ITF_F_NONE": 0,
+ "GBP_API_EXT_ITF_F_ANON": 1,
+ }
+)
+
+func (x GbpExtItfFlags) String() string {
+ s, ok := GbpExtItfFlags_name[uint32(x)]
+ if ok {
+ return s
+ }
+ str := func(n uint32) string {
+ s, ok := GbpExtItfFlags_name[uint32(n)]
+ if ok {
+ return s
+ }
+ return "GbpExtItfFlags(" + strconv.Itoa(int(n)) + ")"
+ }
+ for i := uint32(0); i <= 32; i++ {
+ val := uint32(x)
+ if val&(1<<i) != 0 {
+ if s != "" {
+ s += "|"
+ }
+ s += str(1 << i)
+ }
+ }
+ if s == "" {
+ return str(uint32(x))
+ }
+ return s
+}
+
+// GbpHashMode defines enum 'gbp_hash_mode'.
+type GbpHashMode uint32
+
+const (
+ GBP_API_HASH_MODE_SRC_IP GbpHashMode = 1
+ GBP_API_HASH_MODE_DST_IP GbpHashMode = 2
+ GBP_API_HASH_MODE_SYMMETRIC GbpHashMode = 3
+)
+
+var (
+ GbpHashMode_name = map[uint32]string{
+ 1: "GBP_API_HASH_MODE_SRC_IP",
+ 2: "GBP_API_HASH_MODE_DST_IP",
+ 3: "GBP_API_HASH_MODE_SYMMETRIC",
+ }
+ GbpHashMode_value = map[string]uint32{
+ "GBP_API_HASH_MODE_SRC_IP": 1,
+ "GBP_API_HASH_MODE_DST_IP": 2,
+ "GBP_API_HASH_MODE_SYMMETRIC": 3,
+ }
+)
+
+func (x GbpHashMode) String() string {
+ s, ok := GbpHashMode_name[uint32(x)]
+ if ok {
+ return s
+ }
+ return "GbpHashMode(" + strconv.Itoa(int(x)) + ")"
+}
+
+// GbpRuleAction defines enum 'gbp_rule_action'.
+type GbpRuleAction uint32
+
+const (
+ GBP_API_RULE_PERMIT GbpRuleAction = 1
+ GBP_API_RULE_DENY GbpRuleAction = 2
+ GBP_API_RULE_REDIRECT GbpRuleAction = 3
+)
+
+var (
+ GbpRuleAction_name = map[uint32]string{
+ 1: "GBP_API_RULE_PERMIT",
+ 2: "GBP_API_RULE_DENY",
+ 3: "GBP_API_RULE_REDIRECT",
+ }
+ GbpRuleAction_value = map[string]uint32{
+ "GBP_API_RULE_PERMIT": 1,
+ "GBP_API_RULE_DENY": 2,
+ "GBP_API_RULE_REDIRECT": 3,
+ }
+)
+
+func (x GbpRuleAction) String() string {
+ s, ok := GbpRuleAction_name[uint32(x)]
+ if ok {
+ return s
+ }
+ return "GbpRuleAction(" + strconv.Itoa(int(x)) + ")"
+}
+
+// GbpSubnetType defines enum 'gbp_subnet_type'.
+type GbpSubnetType uint32
+
+const (
+ GBP_API_SUBNET_TRANSPORT GbpSubnetType = 1
+ GBP_API_SUBNET_STITCHED_INTERNAL GbpSubnetType = 2
+ GBP_API_SUBNET_STITCHED_EXTERNAL GbpSubnetType = 3
+ GBP_API_SUBNET_L3_OUT GbpSubnetType = 4
+ GBP_API_SUBNET_ANON_L3_OUT GbpSubnetType = 5
+)
+
+var (
+ GbpSubnetType_name = map[uint32]string{
+ 1: "GBP_API_SUBNET_TRANSPORT",
+ 2: "GBP_API_SUBNET_STITCHED_INTERNAL",
+ 3: "GBP_API_SUBNET_STITCHED_EXTERNAL",
+ 4: "GBP_API_SUBNET_L3_OUT",
+ 5: "GBP_API_SUBNET_ANON_L3_OUT",
+ }
+ GbpSubnetType_value = map[string]uint32{
+ "GBP_API_SUBNET_TRANSPORT": 1,
+ "GBP_API_SUBNET_STITCHED_INTERNAL": 2,
+ "GBP_API_SUBNET_STITCHED_EXTERNAL": 3,
+ "GBP_API_SUBNET_L3_OUT": 4,
+ "GBP_API_SUBNET_ANON_L3_OUT": 5,
+ }
+)
+
+func (x GbpSubnetType) String() string {
+ s, ok := GbpSubnetType_name[uint32(x)]
+ if ok {
+ return s
+ }
+ return "GbpSubnetType(" + strconv.Itoa(int(x)) + ")"
+}
+
+// GbpVxlanTunnelMode defines enum 'gbp_vxlan_tunnel_mode'.
+type GbpVxlanTunnelMode uint32
+
+const (
+ GBP_VXLAN_TUNNEL_MODE_L2 GbpVxlanTunnelMode = 1
+ GBP_VXLAN_TUNNEL_MODE_L3 GbpVxlanTunnelMode = 2
+)
+
+var (
+ GbpVxlanTunnelMode_name = map[uint32]string{
+ 1: "GBP_VXLAN_TUNNEL_MODE_L2",
+ 2: "GBP_VXLAN_TUNNEL_MODE_L3",
+ }
+ GbpVxlanTunnelMode_value = map[string]uint32{
+ "GBP_VXLAN_TUNNEL_MODE_L2": 1,
+ "GBP_VXLAN_TUNNEL_MODE_L3": 2,
+ }
+)
+
+func (x GbpVxlanTunnelMode) String() string {
+ s, ok := GbpVxlanTunnelMode_name[uint32(x)]
+ if ok {
+ return s
+ }
+ return "GbpVxlanTunnelMode(" + strconv.Itoa(int(x)) + ")"
+}
+
+// GbpScope defines alias 'gbp_scope'.
+type GbpScope uint16
+
+// GbpBridgeDomain defines type 'gbp_bridge_domain'.
+type GbpBridgeDomain struct {
+ BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+ Flags GbpBridgeDomainFlags `binapi:"gbp_bridge_domain_flags,name=flags" json:"flags,omitempty"`
+ BviSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=bvi_sw_if_index" json:"bvi_sw_if_index,omitempty"`
+ UuFwdSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=uu_fwd_sw_if_index" json:"uu_fwd_sw_if_index,omitempty"`
+ BmFloodSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=bm_flood_sw_if_index" json:"bm_flood_sw_if_index,omitempty"`
+}
+
+// GbpContract defines type 'gbp_contract'.
+type GbpContract struct {
+ Scope GbpScope `binapi:"gbp_scope,name=scope" json:"scope,omitempty"`
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+ Dclass uint16 `binapi:"u16,name=dclass" json:"dclass,omitempty"`
+ ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
+ NEtherTypes uint8 `binapi:"u8,name=n_ether_types" json:"n_ether_types,omitempty"`
+ AllowedEthertypes []uint16 `binapi:"u16[16],name=allowed_ethertypes" json:"allowed_ethertypes,omitempty"`
+ NRules uint8 `binapi:"u8,name=n_rules" json:"-"`
+ Rules []GbpRule `binapi:"gbp_rule[n_rules],name=rules" json:"rules,omitempty"`
+}
+
+// GbpEndpoint defines type 'gbp_endpoint'.
+type GbpEndpoint struct {
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+ Flags GbpEndpointFlags `binapi:"gbp_endpoint_flags,name=flags" json:"flags,omitempty"`
+ Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
+ Tun GbpEndpointTun `binapi:"gbp_endpoint_tun,name=tun" json:"tun,omitempty"`
+ NIps uint8 `binapi:"u8,name=n_ips" json:"-"`
+ Ips []ip_types.Address `binapi:"address[n_ips],name=ips" json:"ips,omitempty"`
+}
+
+// GbpEndpointGroup defines type 'gbp_endpoint_group'.
+type GbpEndpointGroup struct {
+ Vnid uint32 `binapi:"u32,name=vnid" json:"vnid,omitempty"`
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+ BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+ UplinkSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=uplink_sw_if_index" json:"uplink_sw_if_index,omitempty"`
+ Retention GbpEndpointRetention `binapi:"gbp_endpoint_retention,name=retention" json:"retention,omitempty"`
+}
+
+// GbpEndpointRetention defines type 'gbp_endpoint_retention'.
+type GbpEndpointRetention struct {
+ RemoteEpTimeout uint32 `binapi:"u32,name=remote_ep_timeout" json:"remote_ep_timeout,omitempty"`
+}
+
+// GbpEndpointTun defines type 'gbp_endpoint_tun'.
+type GbpEndpointTun struct {
+ Src ip_types.Address `binapi:"address,name=src" json:"src,omitempty"`
+ Dst ip_types.Address `binapi:"address,name=dst" json:"dst,omitempty"`
+}
+
+// GbpExtItf defines type 'gbp_ext_itf'.
+type GbpExtItf struct {
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
+ BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+ Flags GbpExtItfFlags `binapi:"gbp_ext_itf_flags,name=flags" json:"flags,omitempty"`
+}
+
+// GbpNextHop defines type 'gbp_next_hop'.
+type GbpNextHop struct {
+ IP ip_types.Address `binapi:"address,name=ip" json:"ip,omitempty"`
+ Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
+ BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+}
+
+// GbpNextHopSet defines type 'gbp_next_hop_set'.
+type GbpNextHopSet struct {
+ HashMode GbpHashMode `binapi:"gbp_hash_mode,name=hash_mode" json:"hash_mode,omitempty"`
+ NNhs uint8 `binapi:"u8,name=n_nhs" json:"n_nhs,omitempty"`
+ Nhs [8]GbpNextHop `binapi:"gbp_next_hop[8],name=nhs" json:"nhs,omitempty"`
+}
+
+// GbpRecirc defines type 'gbp_recirc'.
+type GbpRecirc struct {
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+ IsExt bool `binapi:"bool,name=is_ext" json:"is_ext,omitempty"`
+}
+
+// GbpRouteDomain defines type 'gbp_route_domain'.
+type GbpRouteDomain struct {
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+ IP4TableID uint32 `binapi:"u32,name=ip4_table_id" json:"ip4_table_id,omitempty"`
+ IP6TableID uint32 `binapi:"u32,name=ip6_table_id" json:"ip6_table_id,omitempty"`
+ IP4UuSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=ip4_uu_sw_if_index" json:"ip4_uu_sw_if_index,omitempty"`
+ IP6UuSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=ip6_uu_sw_if_index" json:"ip6_uu_sw_if_index,omitempty"`
+ Scope GbpScope `binapi:"gbp_scope,name=scope" json:"scope,omitempty"`
+}
+
+// GbpRule defines type 'gbp_rule'.
+type GbpRule struct {
+ Action GbpRuleAction `binapi:"gbp_rule_action,name=action" json:"action,omitempty"`
+ NhSet GbpNextHopSet `binapi:"gbp_next_hop_set,name=nh_set" json:"nh_set,omitempty"`
+}
+
+// GbpSubnet defines type 'gbp_subnet'.
+type GbpSubnet struct {
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+ Type GbpSubnetType `binapi:"gbp_subnet_type,name=type" json:"type,omitempty"`
+ Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
+}
+
+// GbpVxlanTunnel defines type 'gbp_vxlan_tunnel'.
+type GbpVxlanTunnel struct {
+ Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
+ Mode GbpVxlanTunnelMode `binapi:"gbp_vxlan_tunnel_mode,name=mode" json:"mode,omitempty"`
+ BdRdID uint32 `binapi:"u32,name=bd_rd_id" json:"bd_rd_id,omitempty"`
+ Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"`
+}
+
+// GbpBridgeDomainAdd defines message 'gbp_bridge_domain_add'.
+type GbpBridgeDomainAdd struct {
+ Bd GbpBridgeDomain `binapi:"gbp_bridge_domain,name=bd" json:"bd,omitempty"`
+}
+
+func (m *GbpBridgeDomainAdd) Reset() { *m = GbpBridgeDomainAdd{} }
+func (*GbpBridgeDomainAdd) GetMessageName() string { return "gbp_bridge_domain_add" }
+func (*GbpBridgeDomainAdd) GetCrcString() string { return "8454bfdf" }
+func (*GbpBridgeDomainAdd) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpBridgeDomainAdd) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Bd.BdID
+ size += 4 // m.Bd.RdID
+ size += 4 // m.Bd.Flags
+ size += 4 // m.Bd.BviSwIfIndex
+ size += 4 // m.Bd.UuFwdSwIfIndex
+ size += 4 // m.Bd.BmFloodSwIfIndex
+ return size
+}
+func (m *GbpBridgeDomainAdd) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Bd.BdID))
+ buf.EncodeUint32(uint32(m.Bd.RdID))
+ buf.EncodeUint32(uint32(m.Bd.Flags))
+ buf.EncodeUint32(uint32(m.Bd.BviSwIfIndex))
+ buf.EncodeUint32(uint32(m.Bd.UuFwdSwIfIndex))
+ buf.EncodeUint32(uint32(m.Bd.BmFloodSwIfIndex))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainAdd) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Bd.BdID = buf.DecodeUint32()
+ m.Bd.RdID = buf.DecodeUint32()
+ m.Bd.Flags = GbpBridgeDomainFlags(buf.DecodeUint32())
+ m.Bd.BviSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Bd.UuFwdSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Bd.BmFloodSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ return nil
+}
+
+// GbpBridgeDomainAddReply defines message 'gbp_bridge_domain_add_reply'.
+type GbpBridgeDomainAddReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpBridgeDomainAddReply) Reset() { *m = GbpBridgeDomainAddReply{} }
+func (*GbpBridgeDomainAddReply) GetMessageName() string { return "gbp_bridge_domain_add_reply" }
+func (*GbpBridgeDomainAddReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpBridgeDomainAddReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpBridgeDomainAddReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpBridgeDomainAddReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainAddReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpBridgeDomainDel defines message 'gbp_bridge_domain_del'.
+type GbpBridgeDomainDel struct {
+ BdID uint32 `binapi:"u32,name=bd_id" json:"bd_id,omitempty"`
+}
+
+func (m *GbpBridgeDomainDel) Reset() { *m = GbpBridgeDomainDel{} }
+func (*GbpBridgeDomainDel) GetMessageName() string { return "gbp_bridge_domain_del" }
+func (*GbpBridgeDomainDel) GetCrcString() string { return "c25fdce6" }
+func (*GbpBridgeDomainDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpBridgeDomainDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.BdID
+ return size
+}
+func (m *GbpBridgeDomainDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.BdID))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.BdID = buf.DecodeUint32()
+ return nil
+}
+
+// GbpBridgeDomainDelReply defines message 'gbp_bridge_domain_del_reply'.
+type GbpBridgeDomainDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpBridgeDomainDelReply) Reset() { *m = GbpBridgeDomainDelReply{} }
+func (*GbpBridgeDomainDelReply) GetMessageName() string { return "gbp_bridge_domain_del_reply" }
+func (*GbpBridgeDomainDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpBridgeDomainDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpBridgeDomainDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpBridgeDomainDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpBridgeDomainDetails defines message 'gbp_bridge_domain_details'.
+type GbpBridgeDomainDetails struct {
+ Bd GbpBridgeDomain `binapi:"gbp_bridge_domain,name=bd" json:"bd,omitempty"`
+}
+
+func (m *GbpBridgeDomainDetails) Reset() { *m = GbpBridgeDomainDetails{} }
+func (*GbpBridgeDomainDetails) GetMessageName() string { return "gbp_bridge_domain_details" }
+func (*GbpBridgeDomainDetails) GetCrcString() string { return "2acd15f9" }
+func (*GbpBridgeDomainDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpBridgeDomainDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Bd.BdID
+ size += 4 // m.Bd.RdID
+ size += 4 // m.Bd.Flags
+ size += 4 // m.Bd.BviSwIfIndex
+ size += 4 // m.Bd.UuFwdSwIfIndex
+ size += 4 // m.Bd.BmFloodSwIfIndex
+ return size
+}
+func (m *GbpBridgeDomainDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Bd.BdID))
+ buf.EncodeUint32(uint32(m.Bd.RdID))
+ buf.EncodeUint32(uint32(m.Bd.Flags))
+ buf.EncodeUint32(uint32(m.Bd.BviSwIfIndex))
+ buf.EncodeUint32(uint32(m.Bd.UuFwdSwIfIndex))
+ buf.EncodeUint32(uint32(m.Bd.BmFloodSwIfIndex))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Bd.BdID = buf.DecodeUint32()
+ m.Bd.RdID = buf.DecodeUint32()
+ m.Bd.Flags = GbpBridgeDomainFlags(buf.DecodeUint32())
+ m.Bd.BviSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Bd.UuFwdSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Bd.BmFloodSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ return nil
+}
+
+// GbpBridgeDomainDump defines message 'gbp_bridge_domain_dump'.
+type GbpBridgeDomainDump struct{}
+
+func (m *GbpBridgeDomainDump) Reset() { *m = GbpBridgeDomainDump{} }
+func (*GbpBridgeDomainDump) GetMessageName() string { return "gbp_bridge_domain_dump" }
+func (*GbpBridgeDomainDump) GetCrcString() string { return "51077d14" }
+func (*GbpBridgeDomainDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpBridgeDomainDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpBridgeDomainDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpBridgeDomainDumpReply defines message 'gbp_bridge_domain_dump_reply'.
+type GbpBridgeDomainDumpReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpBridgeDomainDumpReply) Reset() { *m = GbpBridgeDomainDumpReply{} }
+func (*GbpBridgeDomainDumpReply) GetMessageName() string { return "gbp_bridge_domain_dump_reply" }
+func (*GbpBridgeDomainDumpReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpBridgeDomainDumpReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpBridgeDomainDumpReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpBridgeDomainDumpReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpBridgeDomainDumpReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpContractAddDel defines message 'gbp_contract_add_del'.
+type GbpContractAddDel struct {
+ IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
+ Contract GbpContract `binapi:"gbp_contract,name=contract" json:"contract,omitempty"`
+}
+
+func (m *GbpContractAddDel) Reset() { *m = GbpContractAddDel{} }
+func (*GbpContractAddDel) GetMessageName() string { return "gbp_contract_add_del" }
+func (*GbpContractAddDel) GetCrcString() string { return "553e275b" }
+func (*GbpContractAddDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpContractAddDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 1 // m.IsAdd
+ size += 2 // m.Contract.Scope
+ size += 2 // m.Contract.Sclass
+ size += 2 // m.Contract.Dclass
+ size += 4 // m.Contract.ACLIndex
+ size += 1 // m.Contract.NEtherTypes
+ size += 2 * 16 // m.Contract.AllowedEthertypes
+ size += 1 // m.Contract.NRules
+ for j2 := 0; j2 < len(m.Contract.Rules); j2++ {
+ var s2 GbpRule
+ _ = s2
+ if j2 < len(m.Contract.Rules) {
+ s2 = m.Contract.Rules[j2]
+ }
+ size += 4 // s2.Action
+ size += 4 // s2.NhSet.HashMode
+ size += 1 // s2.NhSet.NNhs
+ for j4 := 0; j4 < 8; j4++ {
+ var s4 GbpNextHop
+ _ = s4
+ if j4 < len(s2.NhSet.Nhs) {
+ s4 = s2.NhSet.Nhs[j4]
+ }
+ size += 1 // s4.IP.Af
+ size += 1 * 16 // s4.IP.Un
+ size += 1 * 6 // s4.Mac
+ size += 4 // s4.BdID
+ size += 4 // s4.RdID
+ }
+ }
+ return size
+}
+func (m *GbpContractAddDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeBool(m.IsAdd)
+ buf.EncodeUint16(uint16(m.Contract.Scope))
+ buf.EncodeUint16(uint16(m.Contract.Sclass))
+ buf.EncodeUint16(uint16(m.Contract.Dclass))
+ buf.EncodeUint32(uint32(m.Contract.ACLIndex))
+ buf.EncodeUint8(uint8(m.Contract.NEtherTypes))
+ for i := 0; i < 16; i++ {
+ var x uint16
+ if i < len(m.Contract.AllowedEthertypes) {
+ x = uint16(m.Contract.AllowedEthertypes[i])
+ }
+ buf.EncodeUint16(uint16(x))
+ }
+ buf.EncodeUint8(uint8(len(m.Contract.Rules)))
+ for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
+ var v1 GbpRule
+ if j1 < len(m.Contract.Rules) {
+ v1 = m.Contract.Rules[j1]
+ }
+ buf.EncodeUint32(uint32(v1.Action))
+ buf.EncodeUint32(uint32(v1.NhSet.HashMode))
+ buf.EncodeUint8(uint8(v1.NhSet.NNhs))
+ for j3 := 0; j3 < 8; j3++ {
+ var v3 GbpNextHop
+ if j3 < len(v1.NhSet.Nhs) {
+ v3 = v1.NhSet.Nhs[j3]
+ }
+ buf.EncodeUint8(uint8(v3.IP.Af))
+ buf.EncodeBytes(v3.IP.Un.XXX_UnionData[:], 0)
+ buf.EncodeBytes(v3.Mac[:], 6)
+ buf.EncodeUint32(uint32(v3.BdID))
+ buf.EncodeUint32(uint32(v3.RdID))
+ }
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpContractAddDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.IsAdd = buf.DecodeBool()
+ m.Contract.Scope = GbpScope(buf.DecodeUint16())
+ m.Contract.Sclass = buf.DecodeUint16()
+ m.Contract.Dclass = buf.DecodeUint16()
+ m.Contract.ACLIndex = buf.DecodeUint32()
+ m.Contract.NEtherTypes = buf.DecodeUint8()
+ m.Contract.AllowedEthertypes = make([]uint16, 16)
+ for i := 0; i < len(m.Contract.AllowedEthertypes); i++ {
+ m.Contract.AllowedEthertypes[i] = buf.DecodeUint16()
+ }
+ m.Contract.NRules = buf.DecodeUint8()
+ m.Contract.Rules = make([]GbpRule, int(m.Contract.NRules))
+ for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
+ m.Contract.Rules[j1].Action = GbpRuleAction(buf.DecodeUint32())
+ m.Contract.Rules[j1].NhSet.HashMode = GbpHashMode(buf.DecodeUint32())
+ m.Contract.Rules[j1].NhSet.NNhs = buf.DecodeUint8()
+ for j3 := 0; j3 < 8; j3++ {
+ m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ copy(m.Contract.Rules[j1].NhSet.Nhs[j3].Mac[:], buf.DecodeBytes(6))
+ m.Contract.Rules[j1].NhSet.Nhs[j3].BdID = buf.DecodeUint32()
+ m.Contract.Rules[j1].NhSet.Nhs[j3].RdID = buf.DecodeUint32()
+ }
+ }
+ return nil
+}
+
+// GbpContractAddDelReply defines message 'gbp_contract_add_del_reply'.
+type GbpContractAddDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+ StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"`
+}
+
+func (m *GbpContractAddDelReply) Reset() { *m = GbpContractAddDelReply{} }
+func (*GbpContractAddDelReply) GetMessageName() string { return "gbp_contract_add_del_reply" }
+func (*GbpContractAddDelReply) GetCrcString() string { return "1992deab" }
+func (*GbpContractAddDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpContractAddDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ size += 4 // m.StatsIndex
+ return size
+}
+func (m *GbpContractAddDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ buf.EncodeUint32(uint32(m.StatsIndex))
+ return buf.Bytes(), nil
+}
+func (m *GbpContractAddDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ m.StatsIndex = buf.DecodeUint32()
+ return nil
+}
+
+// GbpContractDetails defines message 'gbp_contract_details'.
+type GbpContractDetails struct {
+ Contract GbpContract `binapi:"gbp_contract,name=contract" json:"contract,omitempty"`
+}
+
+func (m *GbpContractDetails) Reset() { *m = GbpContractDetails{} }
+func (*GbpContractDetails) GetMessageName() string { return "gbp_contract_details" }
+func (*GbpContractDetails) GetCrcString() string { return "2a18db6e" }
+func (*GbpContractDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpContractDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 2 // m.Contract.Scope
+ size += 2 // m.Contract.Sclass
+ size += 2 // m.Contract.Dclass
+ size += 4 // m.Contract.ACLIndex
+ size += 1 // m.Contract.NEtherTypes
+ size += 2 * 16 // m.Contract.AllowedEthertypes
+ size += 1 // m.Contract.NRules
+ for j2 := 0; j2 < len(m.Contract.Rules); j2++ {
+ var s2 GbpRule
+ _ = s2
+ if j2 < len(m.Contract.Rules) {
+ s2 = m.Contract.Rules[j2]
+ }
+ size += 4 // s2.Action
+ size += 4 // s2.NhSet.HashMode
+ size += 1 // s2.NhSet.NNhs
+ for j4 := 0; j4 < 8; j4++ {
+ var s4 GbpNextHop
+ _ = s4
+ if j4 < len(s2.NhSet.Nhs) {
+ s4 = s2.NhSet.Nhs[j4]
+ }
+ size += 1 // s4.IP.Af
+ size += 1 * 16 // s4.IP.Un
+ size += 1 * 6 // s4.Mac
+ size += 4 // s4.BdID
+ size += 4 // s4.RdID
+ }
+ }
+ return size
+}
+func (m *GbpContractDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint16(uint16(m.Contract.Scope))
+ buf.EncodeUint16(uint16(m.Contract.Sclass))
+ buf.EncodeUint16(uint16(m.Contract.Dclass))
+ buf.EncodeUint32(uint32(m.Contract.ACLIndex))
+ buf.EncodeUint8(uint8(m.Contract.NEtherTypes))
+ for i := 0; i < 16; i++ {
+ var x uint16
+ if i < len(m.Contract.AllowedEthertypes) {
+ x = uint16(m.Contract.AllowedEthertypes[i])
+ }
+ buf.EncodeUint16(uint16(x))
+ }
+ buf.EncodeUint8(uint8(len(m.Contract.Rules)))
+ for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
+ var v1 GbpRule
+ if j1 < len(m.Contract.Rules) {
+ v1 = m.Contract.Rules[j1]
+ }
+ buf.EncodeUint32(uint32(v1.Action))
+ buf.EncodeUint32(uint32(v1.NhSet.HashMode))
+ buf.EncodeUint8(uint8(v1.NhSet.NNhs))
+ for j3 := 0; j3 < 8; j3++ {
+ var v3 GbpNextHop
+ if j3 < len(v1.NhSet.Nhs) {
+ v3 = v1.NhSet.Nhs[j3]
+ }
+ buf.EncodeUint8(uint8(v3.IP.Af))
+ buf.EncodeBytes(v3.IP.Un.XXX_UnionData[:], 0)
+ buf.EncodeBytes(v3.Mac[:], 6)
+ buf.EncodeUint32(uint32(v3.BdID))
+ buf.EncodeUint32(uint32(v3.RdID))
+ }
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpContractDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Contract.Scope = GbpScope(buf.DecodeUint16())
+ m.Contract.Sclass = buf.DecodeUint16()
+ m.Contract.Dclass = buf.DecodeUint16()
+ m.Contract.ACLIndex = buf.DecodeUint32()
+ m.Contract.NEtherTypes = buf.DecodeUint8()
+ m.Contract.AllowedEthertypes = make([]uint16, 16)
+ for i := 0; i < len(m.Contract.AllowedEthertypes); i++ {
+ m.Contract.AllowedEthertypes[i] = buf.DecodeUint16()
+ }
+ m.Contract.NRules = buf.DecodeUint8()
+ m.Contract.Rules = make([]GbpRule, int(m.Contract.NRules))
+ for j1 := 0; j1 < len(m.Contract.Rules); j1++ {
+ m.Contract.Rules[j1].Action = GbpRuleAction(buf.DecodeUint32())
+ m.Contract.Rules[j1].NhSet.HashMode = GbpHashMode(buf.DecodeUint32())
+ m.Contract.Rules[j1].NhSet.NNhs = buf.DecodeUint8()
+ for j3 := 0; j3 < 8; j3++ {
+ m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Contract.Rules[j1].NhSet.Nhs[j3].IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ copy(m.Contract.Rules[j1].NhSet.Nhs[j3].Mac[:], buf.DecodeBytes(6))
+ m.Contract.Rules[j1].NhSet.Nhs[j3].BdID = buf.DecodeUint32()
+ m.Contract.Rules[j1].NhSet.Nhs[j3].RdID = buf.DecodeUint32()
+ }
+ }
+ return nil
+}
+
+// GbpContractDump defines message 'gbp_contract_dump'.
+type GbpContractDump struct{}
+
+func (m *GbpContractDump) Reset() { *m = GbpContractDump{} }
+func (*GbpContractDump) GetMessageName() string { return "gbp_contract_dump" }
+func (*GbpContractDump) GetCrcString() string { return "51077d14" }
+func (*GbpContractDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpContractDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpContractDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpContractDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpEndpointAdd defines message 'gbp_endpoint_add'.
+type GbpEndpointAdd struct {
+ Endpoint GbpEndpoint `binapi:"gbp_endpoint,name=endpoint" json:"endpoint,omitempty"`
+}
+
+func (m *GbpEndpointAdd) Reset() { *m = GbpEndpointAdd{} }
+func (*GbpEndpointAdd) GetMessageName() string { return "gbp_endpoint_add" }
+func (*GbpEndpointAdd) GetCrcString() string { return "9ce16d5a" }
+func (*GbpEndpointAdd) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointAdd) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Endpoint.SwIfIndex
+ size += 2 // m.Endpoint.Sclass
+ size += 4 // m.Endpoint.Flags
+ size += 1 * 6 // m.Endpoint.Mac
+ size += 1 // m.Endpoint.Tun.Src.Af
+ size += 1 * 16 // m.Endpoint.Tun.Src.Un
+ size += 1 // m.Endpoint.Tun.Dst.Af
+ size += 1 * 16 // m.Endpoint.Tun.Dst.Un
+ size += 1 // m.Endpoint.NIps
+ for j2 := 0; j2 < len(m.Endpoint.Ips); j2++ {
+ var s2 ip_types.Address
+ _ = s2
+ if j2 < len(m.Endpoint.Ips) {
+ s2 = m.Endpoint.Ips[j2]
+ }
+ size += 1 // s2.Af
+ size += 1 * 16 // s2.Un
+ }
+ return size
+}
+func (m *GbpEndpointAdd) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Endpoint.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Endpoint.Sclass))
+ buf.EncodeUint32(uint32(m.Endpoint.Flags))
+ buf.EncodeBytes(m.Endpoint.Mac[:], 6)
+ buf.EncodeUint8(uint8(m.Endpoint.Tun.Src.Af))
+ buf.EncodeBytes(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(m.Endpoint.Tun.Dst.Af))
+ buf.EncodeBytes(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(len(m.Endpoint.Ips)))
+ for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
+ var v1 ip_types.Address
+ if j1 < len(m.Endpoint.Ips) {
+ v1 = m.Endpoint.Ips[j1]
+ }
+ buf.EncodeUint8(uint8(v1.Af))
+ buf.EncodeBytes(v1.Un.XXX_UnionData[:], 0)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointAdd) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Endpoint.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Endpoint.Sclass = buf.DecodeUint16()
+ m.Endpoint.Flags = GbpEndpointFlags(buf.DecodeUint32())
+ copy(m.Endpoint.Mac[:], buf.DecodeBytes(6))
+ m.Endpoint.Tun.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Endpoint.Tun.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Endpoint.NIps = buf.DecodeUint8()
+ m.Endpoint.Ips = make([]ip_types.Address, int(m.Endpoint.NIps))
+ for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
+ m.Endpoint.Ips[j1].Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Ips[j1].Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ }
+ return nil
+}
+
+// GbpEndpointAddReply defines message 'gbp_endpoint_add_reply'.
+type GbpEndpointAddReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+ Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
+}
+
+func (m *GbpEndpointAddReply) Reset() { *m = GbpEndpointAddReply{} }
+func (*GbpEndpointAddReply) GetMessageName() string { return "gbp_endpoint_add_reply" }
+func (*GbpEndpointAddReply) GetCrcString() string { return "1dd3ff3e" }
+func (*GbpEndpointAddReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointAddReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ size += 4 // m.Handle
+ return size
+}
+func (m *GbpEndpointAddReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ buf.EncodeUint32(uint32(m.Handle))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointAddReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ m.Handle = buf.DecodeUint32()
+ return nil
+}
+
+// GbpEndpointDel defines message 'gbp_endpoint_del'.
+type GbpEndpointDel struct {
+ Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
+}
+
+func (m *GbpEndpointDel) Reset() { *m = GbpEndpointDel{} }
+func (*GbpEndpointDel) GetMessageName() string { return "gbp_endpoint_del" }
+func (*GbpEndpointDel) GetCrcString() string { return "b93cd566" }
+func (*GbpEndpointDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Handle
+ return size
+}
+func (m *GbpEndpointDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Handle))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Handle = buf.DecodeUint32()
+ return nil
+}
+
+// GbpEndpointDelReply defines message 'gbp_endpoint_del_reply'.
+type GbpEndpointDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpEndpointDelReply) Reset() { *m = GbpEndpointDelReply{} }
+func (*GbpEndpointDelReply) GetMessageName() string { return "gbp_endpoint_del_reply" }
+func (*GbpEndpointDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpEndpointDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpEndpointDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpEndpointDetails defines message 'gbp_endpoint_details'.
+type GbpEndpointDetails struct {
+ Age float64 `binapi:"f64,name=age" json:"age,omitempty"`
+ Handle uint32 `binapi:"u32,name=handle" json:"handle,omitempty"`
+ Endpoint GbpEndpoint `binapi:"gbp_endpoint,name=endpoint" json:"endpoint,omitempty"`
+}
+
+func (m *GbpEndpointDetails) Reset() { *m = GbpEndpointDetails{} }
+func (*GbpEndpointDetails) GetMessageName() string { return "gbp_endpoint_details" }
+func (*GbpEndpointDetails) GetCrcString() string { return "08aecb60" }
+func (*GbpEndpointDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 8 // m.Age
+ size += 4 // m.Handle
+ size += 4 // m.Endpoint.SwIfIndex
+ size += 2 // m.Endpoint.Sclass
+ size += 4 // m.Endpoint.Flags
+ size += 1 * 6 // m.Endpoint.Mac
+ size += 1 // m.Endpoint.Tun.Src.Af
+ size += 1 * 16 // m.Endpoint.Tun.Src.Un
+ size += 1 // m.Endpoint.Tun.Dst.Af
+ size += 1 * 16 // m.Endpoint.Tun.Dst.Un
+ size += 1 // m.Endpoint.NIps
+ for j2 := 0; j2 < len(m.Endpoint.Ips); j2++ {
+ var s2 ip_types.Address
+ _ = s2
+ if j2 < len(m.Endpoint.Ips) {
+ s2 = m.Endpoint.Ips[j2]
+ }
+ size += 1 // s2.Af
+ size += 1 * 16 // s2.Un
+ }
+ return size
+}
+func (m *GbpEndpointDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeFloat64(float64(m.Age))
+ buf.EncodeUint32(uint32(m.Handle))
+ buf.EncodeUint32(uint32(m.Endpoint.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Endpoint.Sclass))
+ buf.EncodeUint32(uint32(m.Endpoint.Flags))
+ buf.EncodeBytes(m.Endpoint.Mac[:], 6)
+ buf.EncodeUint8(uint8(m.Endpoint.Tun.Src.Af))
+ buf.EncodeBytes(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(m.Endpoint.Tun.Dst.Af))
+ buf.EncodeBytes(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(len(m.Endpoint.Ips)))
+ for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
+ var v1 ip_types.Address
+ if j1 < len(m.Endpoint.Ips) {
+ v1 = m.Endpoint.Ips[j1]
+ }
+ buf.EncodeUint8(uint8(v1.Af))
+ buf.EncodeBytes(v1.Un.XXX_UnionData[:], 0)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Age = float64(buf.DecodeFloat64())
+ m.Handle = buf.DecodeUint32()
+ m.Endpoint.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Endpoint.Sclass = buf.DecodeUint16()
+ m.Endpoint.Flags = GbpEndpointFlags(buf.DecodeUint32())
+ copy(m.Endpoint.Mac[:], buf.DecodeBytes(6))
+ m.Endpoint.Tun.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Tun.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Endpoint.Tun.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Tun.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Endpoint.NIps = buf.DecodeUint8()
+ m.Endpoint.Ips = make([]ip_types.Address, int(m.Endpoint.NIps))
+ for j1 := 0; j1 < len(m.Endpoint.Ips); j1++ {
+ m.Endpoint.Ips[j1].Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Endpoint.Ips[j1].Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ }
+ return nil
+}
+
+// GbpEndpointDump defines message 'gbp_endpoint_dump'.
+type GbpEndpointDump struct{}
+
+func (m *GbpEndpointDump) Reset() { *m = GbpEndpointDump{} }
+func (*GbpEndpointDump) GetMessageName() string { return "gbp_endpoint_dump" }
+func (*GbpEndpointDump) GetCrcString() string { return "51077d14" }
+func (*GbpEndpointDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpEndpointDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpEndpointGroupAdd defines message 'gbp_endpoint_group_add'.
+type GbpEndpointGroupAdd struct {
+ Epg GbpEndpointGroup `binapi:"gbp_endpoint_group,name=epg" json:"epg,omitempty"`
+}
+
+func (m *GbpEndpointGroupAdd) Reset() { *m = GbpEndpointGroupAdd{} }
+func (*GbpEndpointGroupAdd) GetMessageName() string { return "gbp_endpoint_group_add" }
+func (*GbpEndpointGroupAdd) GetCrcString() string { return "8e0f4054" }
+func (*GbpEndpointGroupAdd) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointGroupAdd) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Epg.Vnid
+ size += 2 // m.Epg.Sclass
+ size += 4 // m.Epg.BdID
+ size += 4 // m.Epg.RdID
+ size += 4 // m.Epg.UplinkSwIfIndex
+ size += 4 // m.Epg.Retention.RemoteEpTimeout
+ return size
+}
+func (m *GbpEndpointGroupAdd) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Epg.Vnid))
+ buf.EncodeUint16(uint16(m.Epg.Sclass))
+ buf.EncodeUint32(uint32(m.Epg.BdID))
+ buf.EncodeUint32(uint32(m.Epg.RdID))
+ buf.EncodeUint32(uint32(m.Epg.UplinkSwIfIndex))
+ buf.EncodeUint32(uint32(m.Epg.Retention.RemoteEpTimeout))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupAdd) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Epg.Vnid = buf.DecodeUint32()
+ m.Epg.Sclass = buf.DecodeUint16()
+ m.Epg.BdID = buf.DecodeUint32()
+ m.Epg.RdID = buf.DecodeUint32()
+ m.Epg.UplinkSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Epg.Retention.RemoteEpTimeout = buf.DecodeUint32()
+ return nil
+}
+
+// GbpEndpointGroupAddReply defines message 'gbp_endpoint_group_add_reply'.
+type GbpEndpointGroupAddReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpEndpointGroupAddReply) Reset() { *m = GbpEndpointGroupAddReply{} }
+func (*GbpEndpointGroupAddReply) GetMessageName() string { return "gbp_endpoint_group_add_reply" }
+func (*GbpEndpointGroupAddReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpEndpointGroupAddReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointGroupAddReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpEndpointGroupAddReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupAddReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpEndpointGroupDel defines message 'gbp_endpoint_group_del'.
+type GbpEndpointGroupDel struct {
+ Sclass uint16 `binapi:"u16,name=sclass" json:"sclass,omitempty"`
+}
+
+func (m *GbpEndpointGroupDel) Reset() { *m = GbpEndpointGroupDel{} }
+func (*GbpEndpointGroupDel) GetMessageName() string { return "gbp_endpoint_group_del" }
+func (*GbpEndpointGroupDel) GetCrcString() string { return "3436b8b7" }
+func (*GbpEndpointGroupDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointGroupDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 2 // m.Sclass
+ return size
+}
+func (m *GbpEndpointGroupDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint16(uint16(m.Sclass))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Sclass = buf.DecodeUint16()
+ return nil
+}
+
+// GbpEndpointGroupDelReply defines message 'gbp_endpoint_group_del_reply'.
+type GbpEndpointGroupDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpEndpointGroupDelReply) Reset() { *m = GbpEndpointGroupDelReply{} }
+func (*GbpEndpointGroupDelReply) GetMessageName() string { return "gbp_endpoint_group_del_reply" }
+func (*GbpEndpointGroupDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpEndpointGroupDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointGroupDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpEndpointGroupDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpEndpointGroupDetails defines message 'gbp_endpoint_group_details'.
+type GbpEndpointGroupDetails struct {
+ Epg GbpEndpointGroup `binapi:"gbp_endpoint_group,name=epg" json:"epg,omitempty"`
+}
+
+func (m *GbpEndpointGroupDetails) Reset() { *m = GbpEndpointGroupDetails{} }
+func (*GbpEndpointGroupDetails) GetMessageName() string { return "gbp_endpoint_group_details" }
+func (*GbpEndpointGroupDetails) GetCrcString() string { return "8f38292c" }
+func (*GbpEndpointGroupDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpEndpointGroupDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Epg.Vnid
+ size += 2 // m.Epg.Sclass
+ size += 4 // m.Epg.BdID
+ size += 4 // m.Epg.RdID
+ size += 4 // m.Epg.UplinkSwIfIndex
+ size += 4 // m.Epg.Retention.RemoteEpTimeout
+ return size
+}
+func (m *GbpEndpointGroupDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Epg.Vnid))
+ buf.EncodeUint16(uint16(m.Epg.Sclass))
+ buf.EncodeUint32(uint32(m.Epg.BdID))
+ buf.EncodeUint32(uint32(m.Epg.RdID))
+ buf.EncodeUint32(uint32(m.Epg.UplinkSwIfIndex))
+ buf.EncodeUint32(uint32(m.Epg.Retention.RemoteEpTimeout))
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Epg.Vnid = buf.DecodeUint32()
+ m.Epg.Sclass = buf.DecodeUint16()
+ m.Epg.BdID = buf.DecodeUint32()
+ m.Epg.RdID = buf.DecodeUint32()
+ m.Epg.UplinkSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Epg.Retention.RemoteEpTimeout = buf.DecodeUint32()
+ return nil
+}
+
+// GbpEndpointGroupDump defines message 'gbp_endpoint_group_dump'.
+type GbpEndpointGroupDump struct{}
+
+func (m *GbpEndpointGroupDump) Reset() { *m = GbpEndpointGroupDump{} }
+func (*GbpEndpointGroupDump) GetMessageName() string { return "gbp_endpoint_group_dump" }
+func (*GbpEndpointGroupDump) GetCrcString() string { return "51077d14" }
+func (*GbpEndpointGroupDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpEndpointGroupDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpEndpointGroupDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpEndpointGroupDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpExtItfAddDel defines message 'gbp_ext_itf_add_del'.
+type GbpExtItfAddDel struct {
+ IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
+ ExtItf GbpExtItf `binapi:"gbp_ext_itf,name=ext_itf" json:"ext_itf,omitempty"`
+}
+
+func (m *GbpExtItfAddDel) Reset() { *m = GbpExtItfAddDel{} }
+func (*GbpExtItfAddDel) GetMessageName() string { return "gbp_ext_itf_add_del" }
+func (*GbpExtItfAddDel) GetCrcString() string { return "12ed5700" }
+func (*GbpExtItfAddDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpExtItfAddDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 1 // m.IsAdd
+ size += 4 // m.ExtItf.SwIfIndex
+ size += 4 // m.ExtItf.BdID
+ size += 4 // m.ExtItf.RdID
+ size += 4 // m.ExtItf.Flags
+ return size
+}
+func (m *GbpExtItfAddDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeBool(m.IsAdd)
+ buf.EncodeUint32(uint32(m.ExtItf.SwIfIndex))
+ buf.EncodeUint32(uint32(m.ExtItf.BdID))
+ buf.EncodeUint32(uint32(m.ExtItf.RdID))
+ buf.EncodeUint32(uint32(m.ExtItf.Flags))
+ return buf.Bytes(), nil
+}
+func (m *GbpExtItfAddDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.IsAdd = buf.DecodeBool()
+ m.ExtItf.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.ExtItf.BdID = buf.DecodeUint32()
+ m.ExtItf.RdID = buf.DecodeUint32()
+ m.ExtItf.Flags = GbpExtItfFlags(buf.DecodeUint32())
+ return nil
+}
+
+// GbpExtItfAddDelReply defines message 'gbp_ext_itf_add_del_reply'.
+type GbpExtItfAddDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpExtItfAddDelReply) Reset() { *m = GbpExtItfAddDelReply{} }
+func (*GbpExtItfAddDelReply) GetMessageName() string { return "gbp_ext_itf_add_del_reply" }
+func (*GbpExtItfAddDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpExtItfAddDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpExtItfAddDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpExtItfAddDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpExtItfAddDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpExtItfDetails defines message 'gbp_ext_itf_details'.
+type GbpExtItfDetails struct {
+ ExtItf GbpExtItf `binapi:"gbp_ext_itf,name=ext_itf" json:"ext_itf,omitempty"`
+}
+
+func (m *GbpExtItfDetails) Reset() { *m = GbpExtItfDetails{} }
+func (*GbpExtItfDetails) GetMessageName() string { return "gbp_ext_itf_details" }
+func (*GbpExtItfDetails) GetCrcString() string { return "408a45c0" }
+func (*GbpExtItfDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpExtItfDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.ExtItf.SwIfIndex
+ size += 4 // m.ExtItf.BdID
+ size += 4 // m.ExtItf.RdID
+ size += 4 // m.ExtItf.Flags
+ return size
+}
+func (m *GbpExtItfDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.ExtItf.SwIfIndex))
+ buf.EncodeUint32(uint32(m.ExtItf.BdID))
+ buf.EncodeUint32(uint32(m.ExtItf.RdID))
+ buf.EncodeUint32(uint32(m.ExtItf.Flags))
+ return buf.Bytes(), nil
+}
+func (m *GbpExtItfDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.ExtItf.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.ExtItf.BdID = buf.DecodeUint32()
+ m.ExtItf.RdID = buf.DecodeUint32()
+ m.ExtItf.Flags = GbpExtItfFlags(buf.DecodeUint32())
+ return nil
+}
+
+// GbpExtItfDump defines message 'gbp_ext_itf_dump'.
+type GbpExtItfDump struct{}
+
+func (m *GbpExtItfDump) Reset() { *m = GbpExtItfDump{} }
+func (*GbpExtItfDump) GetMessageName() string { return "gbp_ext_itf_dump" }
+func (*GbpExtItfDump) GetCrcString() string { return "51077d14" }
+func (*GbpExtItfDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpExtItfDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpExtItfDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpExtItfDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpRecircAddDel defines message 'gbp_recirc_add_del'.
+type GbpRecircAddDel struct {
+ IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
+ Recirc GbpRecirc `binapi:"gbp_recirc,name=recirc" json:"recirc,omitempty"`
+}
+
+func (m *GbpRecircAddDel) Reset() { *m = GbpRecircAddDel{} }
+func (*GbpRecircAddDel) GetMessageName() string { return "gbp_recirc_add_del" }
+func (*GbpRecircAddDel) GetCrcString() string { return "718c69c3" }
+func (*GbpRecircAddDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpRecircAddDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 1 // m.IsAdd
+ size += 4 // m.Recirc.SwIfIndex
+ size += 2 // m.Recirc.Sclass
+ size += 1 // m.Recirc.IsExt
+ return size
+}
+func (m *GbpRecircAddDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeBool(m.IsAdd)
+ buf.EncodeUint32(uint32(m.Recirc.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Recirc.Sclass))
+ buf.EncodeBool(m.Recirc.IsExt)
+ return buf.Bytes(), nil
+}
+func (m *GbpRecircAddDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.IsAdd = buf.DecodeBool()
+ m.Recirc.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Recirc.Sclass = buf.DecodeUint16()
+ m.Recirc.IsExt = buf.DecodeBool()
+ return nil
+}
+
+// GbpRecircAddDelReply defines message 'gbp_recirc_add_del_reply'.
+type GbpRecircAddDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpRecircAddDelReply) Reset() { *m = GbpRecircAddDelReply{} }
+func (*GbpRecircAddDelReply) GetMessageName() string { return "gbp_recirc_add_del_reply" }
+func (*GbpRecircAddDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpRecircAddDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRecircAddDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpRecircAddDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpRecircAddDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpRecircDetails defines message 'gbp_recirc_details'.
+type GbpRecircDetails struct {
+ Recirc GbpRecirc `binapi:"gbp_recirc,name=recirc" json:"recirc,omitempty"`
+}
+
+func (m *GbpRecircDetails) Reset() { *m = GbpRecircDetails{} }
+func (*GbpRecircDetails) GetMessageName() string { return "gbp_recirc_details" }
+func (*GbpRecircDetails) GetCrcString() string { return "66ecc42e" }
+func (*GbpRecircDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRecircDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Recirc.SwIfIndex
+ size += 2 // m.Recirc.Sclass
+ size += 1 // m.Recirc.IsExt
+ return size
+}
+func (m *GbpRecircDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Recirc.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Recirc.Sclass))
+ buf.EncodeBool(m.Recirc.IsExt)
+ return buf.Bytes(), nil
+}
+func (m *GbpRecircDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Recirc.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Recirc.Sclass = buf.DecodeUint16()
+ m.Recirc.IsExt = buf.DecodeBool()
+ return nil
+}
+
+// GbpRecircDump defines message 'gbp_recirc_dump'.
+type GbpRecircDump struct{}
+
+func (m *GbpRecircDump) Reset() { *m = GbpRecircDump{} }
+func (*GbpRecircDump) GetMessageName() string { return "gbp_recirc_dump" }
+func (*GbpRecircDump) GetCrcString() string { return "51077d14" }
+func (*GbpRecircDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpRecircDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpRecircDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpRecircDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpRouteDomainAdd defines message 'gbp_route_domain_add'.
+type GbpRouteDomainAdd struct {
+ Rd GbpRouteDomain `binapi:"gbp_route_domain,name=rd" json:"rd,omitempty"`
+}
+
+func (m *GbpRouteDomainAdd) Reset() { *m = GbpRouteDomainAdd{} }
+func (*GbpRouteDomainAdd) GetMessageName() string { return "gbp_route_domain_add" }
+func (*GbpRouteDomainAdd) GetCrcString() string { return "2d0afe38" }
+func (*GbpRouteDomainAdd) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpRouteDomainAdd) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Rd.RdID
+ size += 4 // m.Rd.IP4TableID
+ size += 4 // m.Rd.IP6TableID
+ size += 4 // m.Rd.IP4UuSwIfIndex
+ size += 4 // m.Rd.IP6UuSwIfIndex
+ size += 2 // m.Rd.Scope
+ return size
+}
+func (m *GbpRouteDomainAdd) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Rd.RdID))
+ buf.EncodeUint32(uint32(m.Rd.IP4TableID))
+ buf.EncodeUint32(uint32(m.Rd.IP6TableID))
+ buf.EncodeUint32(uint32(m.Rd.IP4UuSwIfIndex))
+ buf.EncodeUint32(uint32(m.Rd.IP6UuSwIfIndex))
+ buf.EncodeUint16(uint16(m.Rd.Scope))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainAdd) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Rd.RdID = buf.DecodeUint32()
+ m.Rd.IP4TableID = buf.DecodeUint32()
+ m.Rd.IP6TableID = buf.DecodeUint32()
+ m.Rd.IP4UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Rd.IP6UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Rd.Scope = GbpScope(buf.DecodeUint16())
+ return nil
+}
+
+// GbpRouteDomainAddReply defines message 'gbp_route_domain_add_reply'.
+type GbpRouteDomainAddReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpRouteDomainAddReply) Reset() { *m = GbpRouteDomainAddReply{} }
+func (*GbpRouteDomainAddReply) GetMessageName() string { return "gbp_route_domain_add_reply" }
+func (*GbpRouteDomainAddReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpRouteDomainAddReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRouteDomainAddReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpRouteDomainAddReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainAddReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpRouteDomainDel defines message 'gbp_route_domain_del'.
+type GbpRouteDomainDel struct {
+ RdID uint32 `binapi:"u32,name=rd_id" json:"rd_id,omitempty"`
+}
+
+func (m *GbpRouteDomainDel) Reset() { *m = GbpRouteDomainDel{} }
+func (*GbpRouteDomainDel) GetMessageName() string { return "gbp_route_domain_del" }
+func (*GbpRouteDomainDel) GetCrcString() string { return "bee4edcd" }
+func (*GbpRouteDomainDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpRouteDomainDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.RdID
+ return size
+}
+func (m *GbpRouteDomainDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.RdID))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.RdID = buf.DecodeUint32()
+ return nil
+}
+
+// GbpRouteDomainDelReply defines message 'gbp_route_domain_del_reply'.
+type GbpRouteDomainDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpRouteDomainDelReply) Reset() { *m = GbpRouteDomainDelReply{} }
+func (*GbpRouteDomainDelReply) GetMessageName() string { return "gbp_route_domain_del_reply" }
+func (*GbpRouteDomainDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpRouteDomainDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRouteDomainDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpRouteDomainDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpRouteDomainDetails defines message 'gbp_route_domain_details'.
+type GbpRouteDomainDetails struct {
+ Rd GbpRouteDomain `binapi:"gbp_route_domain,name=rd" json:"rd,omitempty"`
+}
+
+func (m *GbpRouteDomainDetails) Reset() { *m = GbpRouteDomainDetails{} }
+func (*GbpRouteDomainDetails) GetMessageName() string { return "gbp_route_domain_details" }
+func (*GbpRouteDomainDetails) GetCrcString() string { return "8ab11375" }
+func (*GbpRouteDomainDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRouteDomainDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Rd.RdID
+ size += 4 // m.Rd.IP4TableID
+ size += 4 // m.Rd.IP6TableID
+ size += 4 // m.Rd.IP4UuSwIfIndex
+ size += 4 // m.Rd.IP6UuSwIfIndex
+ size += 2 // m.Rd.Scope
+ return size
+}
+func (m *GbpRouteDomainDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Rd.RdID))
+ buf.EncodeUint32(uint32(m.Rd.IP4TableID))
+ buf.EncodeUint32(uint32(m.Rd.IP6TableID))
+ buf.EncodeUint32(uint32(m.Rd.IP4UuSwIfIndex))
+ buf.EncodeUint32(uint32(m.Rd.IP6UuSwIfIndex))
+ buf.EncodeUint16(uint16(m.Rd.Scope))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Rd.RdID = buf.DecodeUint32()
+ m.Rd.IP4TableID = buf.DecodeUint32()
+ m.Rd.IP6TableID = buf.DecodeUint32()
+ m.Rd.IP4UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Rd.IP6UuSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Rd.Scope = GbpScope(buf.DecodeUint16())
+ return nil
+}
+
+// GbpRouteDomainDump defines message 'gbp_route_domain_dump'.
+type GbpRouteDomainDump struct{}
+
+func (m *GbpRouteDomainDump) Reset() { *m = GbpRouteDomainDump{} }
+func (*GbpRouteDomainDump) GetMessageName() string { return "gbp_route_domain_dump" }
+func (*GbpRouteDomainDump) GetCrcString() string { return "51077d14" }
+func (*GbpRouteDomainDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpRouteDomainDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpRouteDomainDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpRouteDomainDumpReply defines message 'gbp_route_domain_dump_reply'.
+type GbpRouteDomainDumpReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpRouteDomainDumpReply) Reset() { *m = GbpRouteDomainDumpReply{} }
+func (*GbpRouteDomainDumpReply) GetMessageName() string { return "gbp_route_domain_dump_reply" }
+func (*GbpRouteDomainDumpReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpRouteDomainDumpReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpRouteDomainDumpReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpRouteDomainDumpReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpRouteDomainDumpReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpSubnetAddDel defines message 'gbp_subnet_add_del'.
+type GbpSubnetAddDel struct {
+ IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
+ Subnet GbpSubnet `binapi:"gbp_subnet,name=subnet" json:"subnet,omitempty"`
+}
+
+func (m *GbpSubnetAddDel) Reset() { *m = GbpSubnetAddDel{} }
+func (*GbpSubnetAddDel) GetMessageName() string { return "gbp_subnet_add_del" }
+func (*GbpSubnetAddDel) GetCrcString() string { return "888aca35" }
+func (*GbpSubnetAddDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpSubnetAddDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 1 // m.IsAdd
+ size += 4 // m.Subnet.RdID
+ size += 4 // m.Subnet.SwIfIndex
+ size += 2 // m.Subnet.Sclass
+ size += 4 // m.Subnet.Type
+ size += 1 // m.Subnet.Prefix.Address.Af
+ size += 1 * 16 // m.Subnet.Prefix.Address.Un
+ size += 1 // m.Subnet.Prefix.Len
+ return size
+}
+func (m *GbpSubnetAddDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeBool(m.IsAdd)
+ buf.EncodeUint32(uint32(m.Subnet.RdID))
+ buf.EncodeUint32(uint32(m.Subnet.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Subnet.Sclass))
+ buf.EncodeUint32(uint32(m.Subnet.Type))
+ buf.EncodeUint8(uint8(m.Subnet.Prefix.Address.Af))
+ buf.EncodeBytes(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(m.Subnet.Prefix.Len))
+ return buf.Bytes(), nil
+}
+func (m *GbpSubnetAddDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.IsAdd = buf.DecodeBool()
+ m.Subnet.RdID = buf.DecodeUint32()
+ m.Subnet.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Subnet.Sclass = buf.DecodeUint16()
+ m.Subnet.Type = GbpSubnetType(buf.DecodeUint32())
+ m.Subnet.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Subnet.Prefix.Len = buf.DecodeUint8()
+ return nil
+}
+
+// GbpSubnetAddDelReply defines message 'gbp_subnet_add_del_reply'.
+type GbpSubnetAddDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpSubnetAddDelReply) Reset() { *m = GbpSubnetAddDelReply{} }
+func (*GbpSubnetAddDelReply) GetMessageName() string { return "gbp_subnet_add_del_reply" }
+func (*GbpSubnetAddDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpSubnetAddDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpSubnetAddDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpSubnetAddDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpSubnetAddDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpSubnetDetails defines message 'gbp_subnet_details'.
+type GbpSubnetDetails struct {
+ Subnet GbpSubnet `binapi:"gbp_subnet,name=subnet" json:"subnet,omitempty"`
+}
+
+func (m *GbpSubnetDetails) Reset() { *m = GbpSubnetDetails{} }
+func (*GbpSubnetDetails) GetMessageName() string { return "gbp_subnet_details" }
+func (*GbpSubnetDetails) GetCrcString() string { return "4ed84156" }
+func (*GbpSubnetDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpSubnetDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Subnet.RdID
+ size += 4 // m.Subnet.SwIfIndex
+ size += 2 // m.Subnet.Sclass
+ size += 4 // m.Subnet.Type
+ size += 1 // m.Subnet.Prefix.Address.Af
+ size += 1 * 16 // m.Subnet.Prefix.Address.Un
+ size += 1 // m.Subnet.Prefix.Len
+ return size
+}
+func (m *GbpSubnetDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Subnet.RdID))
+ buf.EncodeUint32(uint32(m.Subnet.SwIfIndex))
+ buf.EncodeUint16(uint16(m.Subnet.Sclass))
+ buf.EncodeUint32(uint32(m.Subnet.Type))
+ buf.EncodeUint8(uint8(m.Subnet.Prefix.Address.Af))
+ buf.EncodeBytes(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], 0)
+ buf.EncodeUint8(uint8(m.Subnet.Prefix.Len))
+ return buf.Bytes(), nil
+}
+func (m *GbpSubnetDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Subnet.RdID = buf.DecodeUint32()
+ m.Subnet.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.Subnet.Sclass = buf.DecodeUint16()
+ m.Subnet.Type = GbpSubnetType(buf.DecodeUint32())
+ m.Subnet.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.Subnet.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.Subnet.Prefix.Len = buf.DecodeUint8()
+ return nil
+}
+
+// GbpSubnetDump defines message 'gbp_subnet_dump'.
+type GbpSubnetDump struct{}
+
+func (m *GbpSubnetDump) Reset() { *m = GbpSubnetDump{} }
+func (*GbpSubnetDump) GetMessageName() string { return "gbp_subnet_dump" }
+func (*GbpSubnetDump) GetCrcString() string { return "51077d14" }
+func (*GbpSubnetDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpSubnetDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpSubnetDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpSubnetDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+// GbpVxlanTunnelAdd defines message 'gbp_vxlan_tunnel_add'.
+type GbpVxlanTunnelAdd struct {
+ Tunnel GbpVxlanTunnel `binapi:"gbp_vxlan_tunnel,name=tunnel" json:"tunnel,omitempty"`
+}
+
+func (m *GbpVxlanTunnelAdd) Reset() { *m = GbpVxlanTunnelAdd{} }
+func (*GbpVxlanTunnelAdd) GetMessageName() string { return "gbp_vxlan_tunnel_add" }
+func (*GbpVxlanTunnelAdd) GetCrcString() string { return "3e070b35" }
+func (*GbpVxlanTunnelAdd) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpVxlanTunnelAdd) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Tunnel.Vni
+ size += 4 // m.Tunnel.Mode
+ size += 4 // m.Tunnel.BdRdID
+ size += 1 * 4 // m.Tunnel.Src
+ return size
+}
+func (m *GbpVxlanTunnelAdd) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Tunnel.Vni))
+ buf.EncodeUint32(uint32(m.Tunnel.Mode))
+ buf.EncodeUint32(uint32(m.Tunnel.BdRdID))
+ buf.EncodeBytes(m.Tunnel.Src[:], 4)
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelAdd) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Tunnel.Vni = buf.DecodeUint32()
+ m.Tunnel.Mode = GbpVxlanTunnelMode(buf.DecodeUint32())
+ m.Tunnel.BdRdID = buf.DecodeUint32()
+ copy(m.Tunnel.Src[:], buf.DecodeBytes(4))
+ return nil
+}
+
+// GbpVxlanTunnelAddReply defines message 'gbp_vxlan_tunnel_add_reply'.
+type GbpVxlanTunnelAddReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+ SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
+}
+
+func (m *GbpVxlanTunnelAddReply) Reset() { *m = GbpVxlanTunnelAddReply{} }
+func (*GbpVxlanTunnelAddReply) GetMessageName() string { return "gbp_vxlan_tunnel_add_reply" }
+func (*GbpVxlanTunnelAddReply) GetCrcString() string { return "5383d31f" }
+func (*GbpVxlanTunnelAddReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpVxlanTunnelAddReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ size += 4 // m.SwIfIndex
+ return size
+}
+func (m *GbpVxlanTunnelAddReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ buf.EncodeUint32(uint32(m.SwIfIndex))
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelAddReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ return nil
+}
+
+// GbpVxlanTunnelDel defines message 'gbp_vxlan_tunnel_del'.
+type GbpVxlanTunnelDel struct {
+ Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
+}
+
+func (m *GbpVxlanTunnelDel) Reset() { *m = GbpVxlanTunnelDel{} }
+func (*GbpVxlanTunnelDel) GetMessageName() string { return "gbp_vxlan_tunnel_del" }
+func (*GbpVxlanTunnelDel) GetCrcString() string { return "8d1f2fe9" }
+func (*GbpVxlanTunnelDel) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpVxlanTunnelDel) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Vni
+ return size
+}
+func (m *GbpVxlanTunnelDel) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Vni))
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelDel) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Vni = buf.DecodeUint32()
+ return nil
+}
+
+// GbpVxlanTunnelDelReply defines message 'gbp_vxlan_tunnel_del_reply'.
+type GbpVxlanTunnelDelReply struct {
+ Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GbpVxlanTunnelDelReply) Reset() { *m = GbpVxlanTunnelDelReply{} }
+func (*GbpVxlanTunnelDelReply) GetMessageName() string { return "gbp_vxlan_tunnel_del_reply" }
+func (*GbpVxlanTunnelDelReply) GetCrcString() string { return "e8d4e804" }
+func (*GbpVxlanTunnelDelReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpVxlanTunnelDelReply) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Retval
+ return size
+}
+func (m *GbpVxlanTunnelDelReply) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Retval))
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelDelReply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = int32(buf.DecodeUint32())
+ return nil
+}
+
+// GbpVxlanTunnelDetails defines message 'gbp_vxlan_tunnel_details'.
+type GbpVxlanTunnelDetails struct {
+ Tunnel GbpVxlanTunnel `binapi:"gbp_vxlan_tunnel,name=tunnel" json:"tunnel,omitempty"`
+}
+
+func (m *GbpVxlanTunnelDetails) Reset() { *m = GbpVxlanTunnelDetails{} }
+func (*GbpVxlanTunnelDetails) GetMessageName() string { return "gbp_vxlan_tunnel_details" }
+func (*GbpVxlanTunnelDetails) GetCrcString() string { return "65c6c818" }
+func (*GbpVxlanTunnelDetails) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GbpVxlanTunnelDetails) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ size += 4 // m.Tunnel.Vni
+ size += 4 // m.Tunnel.Mode
+ size += 4 // m.Tunnel.BdRdID
+ size += 1 * 4 // m.Tunnel.Src
+ return size
+}
+func (m *GbpVxlanTunnelDetails) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ buf.EncodeUint32(uint32(m.Tunnel.Vni))
+ buf.EncodeUint32(uint32(m.Tunnel.Mode))
+ buf.EncodeUint32(uint32(m.Tunnel.BdRdID))
+ buf.EncodeBytes(m.Tunnel.Src[:], 4)
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelDetails) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Tunnel.Vni = buf.DecodeUint32()
+ m.Tunnel.Mode = GbpVxlanTunnelMode(buf.DecodeUint32())
+ m.Tunnel.BdRdID = buf.DecodeUint32()
+ copy(m.Tunnel.Src[:], buf.DecodeBytes(4))
+ return nil
+}
+
+// GbpVxlanTunnelDump defines message 'gbp_vxlan_tunnel_dump'.
+type GbpVxlanTunnelDump struct{}
+
+func (m *GbpVxlanTunnelDump) Reset() { *m = GbpVxlanTunnelDump{} }
+func (*GbpVxlanTunnelDump) GetMessageName() string { return "gbp_vxlan_tunnel_dump" }
+func (*GbpVxlanTunnelDump) GetCrcString() string { return "51077d14" }
+func (*GbpVxlanTunnelDump) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GbpVxlanTunnelDump) Size() int {
+ if m == nil {
+ return 0
+ }
+ var size int
+ return size
+}
+func (m *GbpVxlanTunnelDump) Marshal(b []byte) ([]byte, error) {
+ var buf *codec.Buffer
+ if b == nil {
+ buf = codec.NewBuffer(make([]byte, m.Size()))
+ } else {
+ buf = codec.NewBuffer(b)
+ }
+ return buf.Bytes(), nil
+}
+func (m *GbpVxlanTunnelDump) Unmarshal(b []byte) error {
+ return nil
+}
+
+func init() { file_gbp_binapi_init() }
+func file_gbp_binapi_init() {
+ api.RegisterMessage((*GbpBridgeDomainAdd)(nil), "gbp_bridge_domain_add_8454bfdf")
+ api.RegisterMessage((*GbpBridgeDomainAddReply)(nil), "gbp_bridge_domain_add_reply_e8d4e804")
+ api.RegisterMessage((*GbpBridgeDomainDel)(nil), "gbp_bridge_domain_del_c25fdce6")
+ api.RegisterMessage((*GbpBridgeDomainDelReply)(nil), "gbp_bridge_domain_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpBridgeDomainDetails)(nil), "gbp_bridge_domain_details_2acd15f9")
+ api.RegisterMessage((*GbpBridgeDomainDump)(nil), "gbp_bridge_domain_dump_51077d14")
+ api.RegisterMessage((*GbpBridgeDomainDumpReply)(nil), "gbp_bridge_domain_dump_reply_e8d4e804")
+ api.RegisterMessage((*GbpContractAddDel)(nil), "gbp_contract_add_del_553e275b")
+ api.RegisterMessage((*GbpContractAddDelReply)(nil), "gbp_contract_add_del_reply_1992deab")
+ api.RegisterMessage((*GbpContractDetails)(nil), "gbp_contract_details_2a18db6e")
+ api.RegisterMessage((*GbpContractDump)(nil), "gbp_contract_dump_51077d14")
+ api.RegisterMessage((*GbpEndpointAdd)(nil), "gbp_endpoint_add_9ce16d5a")
+ api.RegisterMessage((*GbpEndpointAddReply)(nil), "gbp_endpoint_add_reply_1dd3ff3e")
+ api.RegisterMessage((*GbpEndpointDel)(nil), "gbp_endpoint_del_b93cd566")
+ api.RegisterMessage((*GbpEndpointDelReply)(nil), "gbp_endpoint_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpEndpointDetails)(nil), "gbp_endpoint_details_08aecb60")
+ api.RegisterMessage((*GbpEndpointDump)(nil), "gbp_endpoint_dump_51077d14")
+ api.RegisterMessage((*GbpEndpointGroupAdd)(nil), "gbp_endpoint_group_add_8e0f4054")
+ api.RegisterMessage((*GbpEndpointGroupAddReply)(nil), "gbp_endpoint_group_add_reply_e8d4e804")
+ api.RegisterMessage((*GbpEndpointGroupDel)(nil), "gbp_endpoint_group_del_3436b8b7")
+ api.RegisterMessage((*GbpEndpointGroupDelReply)(nil), "gbp_endpoint_group_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpEndpointGroupDetails)(nil), "gbp_endpoint_group_details_8f38292c")
+ api.RegisterMessage((*GbpEndpointGroupDump)(nil), "gbp_endpoint_group_dump_51077d14")
+ api.RegisterMessage((*GbpExtItfAddDel)(nil), "gbp_ext_itf_add_del_12ed5700")
+ api.RegisterMessage((*GbpExtItfAddDelReply)(nil), "gbp_ext_itf_add_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpExtItfDetails)(nil), "gbp_ext_itf_details_408a45c0")
+ api.RegisterMessage((*GbpExtItfDump)(nil), "gbp_ext_itf_dump_51077d14")
+ api.RegisterMessage((*GbpRecircAddDel)(nil), "gbp_recirc_add_del_718c69c3")
+ api.RegisterMessage((*GbpRecircAddDelReply)(nil), "gbp_recirc_add_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpRecircDetails)(nil), "gbp_recirc_details_66ecc42e")
+ api.RegisterMessage((*GbpRecircDump)(nil), "gbp_recirc_dump_51077d14")
+ api.RegisterMessage((*GbpRouteDomainAdd)(nil), "gbp_route_domain_add_2d0afe38")
+ api.RegisterMessage((*GbpRouteDomainAddReply)(nil), "gbp_route_domain_add_reply_e8d4e804")
+ api.RegisterMessage((*GbpRouteDomainDel)(nil), "gbp_route_domain_del_bee4edcd")
+ api.RegisterMessage((*GbpRouteDomainDelReply)(nil), "gbp_route_domain_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpRouteDomainDetails)(nil), "gbp_route_domain_details_8ab11375")
+ api.RegisterMessage((*GbpRouteDomainDump)(nil), "gbp_route_domain_dump_51077d14")
+ api.RegisterMessage((*GbpRouteDomainDumpReply)(nil), "gbp_route_domain_dump_reply_e8d4e804")
+ api.RegisterMessage((*GbpSubnetAddDel)(nil), "gbp_subnet_add_del_888aca35")
+ api.RegisterMessage((*GbpSubnetAddDelReply)(nil), "gbp_subnet_add_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpSubnetDetails)(nil), "gbp_subnet_details_4ed84156")
+ api.RegisterMessage((*GbpSubnetDump)(nil), "gbp_subnet_dump_51077d14")
+ api.RegisterMessage((*GbpVxlanTunnelAdd)(nil), "gbp_vxlan_tunnel_add_3e070b35")
+ api.RegisterMessage((*GbpVxlanTunnelAddReply)(nil), "gbp_vxlan_tunnel_add_reply_5383d31f")
+ api.RegisterMessage((*GbpVxlanTunnelDel)(nil), "gbp_vxlan_tunnel_del_8d1f2fe9")
+ api.RegisterMessage((*GbpVxlanTunnelDelReply)(nil), "gbp_vxlan_tunnel_del_reply_e8d4e804")
+ api.RegisterMessage((*GbpVxlanTunnelDetails)(nil), "gbp_vxlan_tunnel_details_65c6c818")
+ api.RegisterMessage((*GbpVxlanTunnelDump)(nil), "gbp_vxlan_tunnel_dump_51077d14")
+}
+
+// Messages returns list of all messages in this module.
+func AllMessages() []api.Message {
+ return []api.Message{
+ (*GbpBridgeDomainAdd)(nil),
+ (*GbpBridgeDomainAddReply)(nil),
+ (*GbpBridgeDomainDel)(nil),
+ (*GbpBridgeDomainDelReply)(nil),
+ (*GbpBridgeDomainDetails)(nil),
+ (*GbpBridgeDomainDump)(nil),
+ (*GbpBridgeDomainDumpReply)(nil),
+ (*GbpContractAddDel)(nil),
+ (*GbpContractAddDelReply)(nil),
+ (*GbpContractDetails)(nil),
+ (*GbpContractDump)(nil),
+ (*GbpEndpointAdd)(nil),
+ (*GbpEndpointAddReply)(nil),
+ (*GbpEndpointDel)(nil),
+ (*GbpEndpointDelReply)(nil),
+ (*GbpEndpointDetails)(nil),
+ (*GbpEndpointDump)(nil),
+ (*GbpEndpointGroupAdd)(nil),
+ (*GbpEndpointGroupAddReply)(nil),
+ (*GbpEndpointGroupDel)(nil),
+ (*GbpEndpointGroupDelReply)(nil),
+ (*GbpEndpointGroupDetails)(nil),
+ (*GbpEndpointGroupDump)(nil),
+ (*GbpExtItfAddDel)(nil),
+ (*GbpExtItfAddDelReply)(nil),
+ (*GbpExtItfDetails)(nil),
+ (*GbpExtItfDump)(nil),
+ (*GbpRecircAddDel)(nil),
+ (*GbpRecircAddDelReply)(nil),
+ (*GbpRecircDetails)(nil),
+ (*GbpRecircDump)(nil),
+ (*GbpRouteDomainAdd)(nil),
+ (*GbpRouteDomainAddReply)(nil),
+ (*GbpRouteDomainDel)(nil),
+ (*GbpRouteDomainDelReply)(nil),
+ (*GbpRouteDomainDetails)(nil),
+ (*GbpRouteDomainDump)(nil),
+ (*GbpRouteDomainDumpReply)(nil),
+ (*GbpSubnetAddDel)(nil),
+ (*GbpSubnetAddDelReply)(nil),
+ (*GbpSubnetDetails)(nil),
+ (*GbpSubnetDump)(nil),
+ (*GbpVxlanTunnelAdd)(nil),
+ (*GbpVxlanTunnelAddReply)(nil),
+ (*GbpVxlanTunnelDel)(nil),
+ (*GbpVxlanTunnelDelReply)(nil),
+ (*GbpVxlanTunnelDetails)(nil),
+ (*GbpVxlanTunnelDump)(nil),
+ }
+}
diff --git a/binapi/gbp/gbp_rest.ba.go b/binapi/gbp/gbp_rest.ba.go
new file mode 100644
index 0000000..9999a07
--- /dev/null
+++ b/binapi/gbp/gbp_rest.ba.go
@@ -0,0 +1,336 @@
+// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
+
+package gbp
+
+import (
+ "encoding/json"
+ "io/ioutil"
+ "net/http"
+)
+
+func RESTHandler(rpc RPCService) http.Handler {
+ mux := http.NewServeMux()
+ mux.HandleFunc("/gbp_bridge_domain_add", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpBridgeDomainAdd)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpBridgeDomainAdd(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_bridge_domain_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpBridgeDomainDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpBridgeDomainDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_contract_add_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpContractAddDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpContractAddDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_endpoint_add", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpEndpointAdd)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpEndpointAdd(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_endpoint_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpEndpointDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpEndpointDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_endpoint_group_add", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpEndpointGroupAdd)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpEndpointGroupAdd(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_endpoint_group_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpEndpointGroupDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpEndpointGroupDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_ext_itf_add_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpExtItfAddDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpExtItfAddDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_recirc_add_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpRecircAddDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpRecircAddDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_route_domain_add", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpRouteDomainAdd)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpRouteDomainAdd(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_route_domain_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpRouteDomainDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpRouteDomainDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_subnet_add_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpSubnetAddDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpSubnetAddDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_vxlan_tunnel_add", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpVxlanTunnelAdd)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpVxlanTunnelAdd(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ mux.HandleFunc("/gbp_vxlan_tunnel_del", func(w http.ResponseWriter, req *http.Request) {
+ var request = new(GbpVxlanTunnelDel)
+ b, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ http.Error(w, "read body failed", http.StatusBadRequest)
+ return
+ }
+ if err := json.Unmarshal(b, request); err != nil {
+ http.Error(w, "unmarshal data failed", http.StatusBadRequest)
+ return
+ }
+ reply, err := rpc.GbpVxlanTunnelDel(req.Context(), request)
+ if err != nil {
+ http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ rep, err := json.MarshalIndent(reply, "", " ")
+ if err != nil {
+ http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
+ w.Write(rep)
+ })
+ return http.HandlerFunc(mux.ServeHTTP)
+}
diff --git a/binapi/gbp/gbp_rpc.ba.go b/binapi/gbp/gbp_rpc.ba.go
new file mode 100644
index 0000000..d10e224
--- /dev/null
+++ b/binapi/gbp/gbp_rpc.ba.go
@@ -0,0 +1,523 @@
+// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
+
+package gbp
+
+import (
+ "context"
+ "fmt"
+ api "git.fd.io/govpp.git/api"
+ vpe "git.fd.io/govpp.git/binapi/vpe"
+ "io"
+)
+
+// RPCService defines RPC service gbp.
+type RPCService interface {
+ GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error)
+ GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error)
+ GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error)
+ GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error)
+ GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error)
+ GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error)
+ GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error)
+ GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error)
+ GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error)
+ GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error)
+ GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error)
+ GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error)
+ GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error)
+ GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error)
+ GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error)
+ GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error)
+ GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error)
+ GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error)
+ GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error)
+ GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error)
+ GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error)
+ GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error)
+ GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error)
+}
+
+type serviceClient struct {
+ conn api.Connection
+}
+
+func NewServiceClient(conn api.Connection) RPCService {
+ return &serviceClient{conn}
+}
+
+func (c *serviceClient) GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error) {
+ out := new(GbpBridgeDomainAddReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error) {
+ out := new(GbpBridgeDomainDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpBridgeDomainDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpBridgeDomainDumpClient interface {
+ Recv() (*GbpBridgeDomainDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpBridgeDomainDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpBridgeDomainDumpClient) Recv() (*GbpBridgeDomainDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpBridgeDomainDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error) {
+ out := new(GbpContractAddDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpContractDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpContractDumpClient interface {
+ Recv() (*GbpContractDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpContractDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpContractDumpClient) Recv() (*GbpContractDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpContractDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error) {
+ out := new(GbpEndpointAddReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error) {
+ out := new(GbpEndpointDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpEndpointDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpEndpointDumpClient interface {
+ Recv() (*GbpEndpointDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpEndpointDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpEndpointDumpClient) Recv() (*GbpEndpointDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpEndpointDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error) {
+ out := new(GbpEndpointGroupAddReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error) {
+ out := new(GbpEndpointGroupDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpEndpointGroupDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpEndpointGroupDumpClient interface {
+ Recv() (*GbpEndpointGroupDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpEndpointGroupDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpEndpointGroupDumpClient) Recv() (*GbpEndpointGroupDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpEndpointGroupDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error) {
+ out := new(GbpExtItfAddDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpExtItfDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpExtItfDumpClient interface {
+ Recv() (*GbpExtItfDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpExtItfDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpExtItfDumpClient) Recv() (*GbpExtItfDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpExtItfDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error) {
+ out := new(GbpRecircAddDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpRecircDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpRecircDumpClient interface {
+ Recv() (*GbpRecircDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpRecircDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpRecircDumpClient) Recv() (*GbpRecircDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpRecircDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error) {
+ out := new(GbpRouteDomainAddReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error) {
+ out := new(GbpRouteDomainDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpRouteDomainDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpRouteDomainDumpClient interface {
+ Recv() (*GbpRouteDomainDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpRouteDomainDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpRouteDomainDumpClient) Recv() (*GbpRouteDomainDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpRouteDomainDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error) {
+ out := new(GbpSubnetAddDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpSubnetDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpSubnetDumpClient interface {
+ Recv() (*GbpSubnetDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpSubnetDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpSubnetDumpClient) Recv() (*GbpSubnetDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpSubnetDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}
+
+func (c *serviceClient) GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error) {
+ out := new(GbpVxlanTunnelAddReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error) {
+ out := new(GbpVxlanTunnelDelReply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *serviceClient) GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error) {
+ stream, err := c.conn.NewStream(ctx)
+ if err != nil {
+ return nil, err
+ }
+ x := &serviceClient_GbpVxlanTunnelDumpClient{stream}
+ if err := x.Stream.SendMsg(in); err != nil {
+ return nil, err
+ }
+ if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
+ return nil, err
+ }
+ return x, nil
+}
+
+type RPCService_GbpVxlanTunnelDumpClient interface {
+ Recv() (*GbpVxlanTunnelDetails, error)
+ api.Stream
+}
+
+type serviceClient_GbpVxlanTunnelDumpClient struct {
+ api.Stream
+}
+
+func (c *serviceClient_GbpVxlanTunnelDumpClient) Recv() (*GbpVxlanTunnelDetails, error) {
+ msg, err := c.Stream.RecvMsg()
+ if err != nil {
+ return nil, err
+ }
+ switch m := msg.(type) {
+ case *GbpVxlanTunnelDetails:
+ return m, nil
+ case *vpe.ControlPingReply:
+ return nil, io.EOF
+ default:
+ return nil, fmt.Errorf("unexpected message: %T %v", m, m)
+ }
+}