bond

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bond contains generated bindings for API file bond.api.

Contents:

 2 aliases
 8 enums
14 messages

Index

Constants

View Source
const (
	APIFile    = "bond"
	APIVersion = "2.0.0"
	VersionCrc = 0x69f583ad
)

Variables

View Source
var (
	BondLbAlgo_name = map[uint32]string{
		0: "BOND_API_LB_ALGO_L2",
		1: "BOND_API_LB_ALGO_L34",
		2: "BOND_API_LB_ALGO_L23",
		3: "BOND_API_LB_ALGO_RR",
		4: "BOND_API_LB_ALGO_BC",
		5: "BOND_API_LB_ALGO_AB",
	}
	BondLbAlgo_value = map[string]uint32{
		"BOND_API_LB_ALGO_L2":  0,
		"BOND_API_LB_ALGO_L34": 1,
		"BOND_API_LB_ALGO_L23": 2,
		"BOND_API_LB_ALGO_RR":  3,
		"BOND_API_LB_ALGO_BC":  4,
		"BOND_API_LB_ALGO_AB":  5,
	}
)
View Source
var (
	BondMode_name = map[uint32]string{
		1: "BOND_API_MODE_ROUND_ROBIN",
		2: "BOND_API_MODE_ACTIVE_BACKUP",
		3: "BOND_API_MODE_XOR",
		4: "BOND_API_MODE_BROADCAST",
		5: "BOND_API_MODE_LACP",
	}
	BondMode_value = map[string]uint32{
		"BOND_API_MODE_ROUND_ROBIN":   1,
		"BOND_API_MODE_ACTIVE_BACKUP": 2,
		"BOND_API_MODE_XOR":           3,
		"BOND_API_MODE_BROADCAST":     4,
		"BOND_API_MODE_LACP":          5,
	}
)
View Source
var (
	IfStatusFlags_name = map[uint32]string{
		1: "IF_STATUS_API_FLAG_ADMIN_UP",
		2: "IF_STATUS_API_FLAG_LINK_UP",
	}
	IfStatusFlags_value = map[string]uint32{
		"IF_STATUS_API_FLAG_ADMIN_UP": 1,
		"IF_STATUS_API_FLAG_LINK_UP":  2,
	}
)
View Source
var (
	IfType_name = map[uint32]string{
		1: "IF_API_TYPE_HARDWARE",
		2: "IF_API_TYPE_SUB",
		3: "IF_API_TYPE_P2P",
		4: "IF_API_TYPE_PIPE",
	}
	IfType_value = map[string]uint32{
		"IF_API_TYPE_HARDWARE": 1,
		"IF_API_TYPE_SUB":      2,
		"IF_API_TYPE_P2P":      3,
		"IF_API_TYPE_PIPE":     4,
	}
)
View Source
var (
	LinkDuplex_name = map[uint32]string{
		0: "LINK_DUPLEX_API_UNKNOWN",
		1: "LINK_DUPLEX_API_HALF",
		2: "LINK_DUPLEX_API_FULL",
	}
	LinkDuplex_value = map[string]uint32{
		"LINK_DUPLEX_API_UNKNOWN": 0,
		"LINK_DUPLEX_API_HALF":    1,
		"LINK_DUPLEX_API_FULL":    2,
	}
)
View Source
var (
	MtuProto_name = map[uint32]string{
		1: "MTU_PROTO_API_L3",
		2: "MTU_PROTO_API_IP4",
		3: "MTU_PROTO_API_IP6",
		4: "MTU_PROTO_API_MPLS",
		5: "MTU_PROTO_API_N",
	}
	MtuProto_value = map[string]uint32{
		"MTU_PROTO_API_L3":   1,
		"MTU_PROTO_API_IP4":  2,
		"MTU_PROTO_API_IP6":  3,
		"MTU_PROTO_API_MPLS": 4,
		"MTU_PROTO_API_N":    5,
	}
)
View Source
var (
	RxMode_name = map[uint32]string{
		0: "RX_MODE_API_UNKNOWN",
		1: "RX_MODE_API_POLLING",
		2: "RX_MODE_API_INTERRUPT",
		3: "RX_MODE_API_ADAPTIVE",
		4: "RX_MODE_API_DEFAULT",
	}
	RxMode_value = map[string]uint32{
		"RX_MODE_API_UNKNOWN":   0,
		"RX_MODE_API_POLLING":   1,
		"RX_MODE_API_INTERRUPT": 2,
		"RX_MODE_API_ADAPTIVE":  3,
		"RX_MODE_API_DEFAULT":   4,
	}
)
View Source
var (
	SubIfFlags_name = map[uint32]string{
		1:   "SUB_IF_API_FLAG_NO_TAGS",
		2:   "SUB_IF_API_FLAG_ONE_TAG",
		4:   "SUB_IF_API_FLAG_TWO_TAGS",
		8:   "SUB_IF_API_FLAG_DOT1AD",
		16:  "SUB_IF_API_FLAG_EXACT_MATCH",
		32:  "SUB_IF_API_FLAG_DEFAULT",
		64:  "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
		128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
		254: "SUB_IF_API_FLAG_MASK_VNET",
		256: "SUB_IF_API_FLAG_DOT1AH",
	}
	SubIfFlags_value = map[string]uint32{
		"SUB_IF_API_FLAG_NO_TAGS":           1,
		"SUB_IF_API_FLAG_ONE_TAG":           2,
		"SUB_IF_API_FLAG_TWO_TAGS":          4,
		"SUB_IF_API_FLAG_DOT1AD":            8,
		"SUB_IF_API_FLAG_EXACT_MATCH":       16,
		"SUB_IF_API_FLAG_DEFAULT":           32,
		"SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
		"SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
		"SUB_IF_API_FLAG_MASK_VNET":         254,
		"SUB_IF_API_FLAG_DOT1AH":            256,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type BondCreate

type BondCreate struct {
	ID           uint32     `binapi:"u32,name=id" json:"id,omitempty"`
	UseCustomMac bool       `binapi:"bool,name=use_custom_mac" json:"use_custom_mac,omitempty"`
	MacAddress   MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
	Mode         BondMode   `binapi:"bond_mode,name=mode" json:"mode,omitempty"`
	Lb           BondLbAlgo `binapi:"bond_lb_algo,name=lb" json:"lb,omitempty"`
	NumaOnly     bool       `binapi:"bool,name=numa_only" json:"numa_only,omitempty"`
}

BondCreate defines message 'bond_create'.

func (*BondCreate) GetCrcString

func (*BondCreate) GetCrcString() string

func (*BondCreate) GetMessageName

func (*BondCreate) GetMessageName() string

func (*BondCreate) GetMessageType

func (*BondCreate) GetMessageType() api.MessageType

func (*BondCreate) Marshal

func (m *BondCreate) Marshal(b []byte) ([]byte, error)

func (*BondCreate) Reset

func (m *BondCreate) Reset()

func (*BondCreate) Size

func (m *BondCreate) Size() (size int)

func (*BondCreate) Unmarshal

func (m *BondCreate) Unmarshal(b []byte) error

type BondCreateReply

type BondCreateReply struct {
	Retval    int32          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

BondCreateReply defines message 'bond_create_reply'.

func (*BondCreateReply) GetCrcString

func (*BondCreateReply) GetCrcString() string

func (*BondCreateReply) GetMessageName

func (*BondCreateReply) GetMessageName() string

func (*BondCreateReply) GetMessageType

func (*BondCreateReply) GetMessageType() api.MessageType

func (*BondCreateReply) Marshal

func (m *BondCreateReply) Marshal(b []byte) ([]byte, error)

func (*BondCreateReply) Reset

func (m *BondCreateReply) Reset()

func (*BondCreateReply) Size

func (m *BondCreateReply) Size() (size int)

func (*BondCreateReply) Unmarshal

func (m *BondCreateReply) Unmarshal(b []byte) error

type BondDelete

type BondDelete struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

BondDelete defines message 'bond_delete'.

func (*BondDelete) GetCrcString

func (*BondDelete) GetCrcString() string

func (*BondDelete) GetMessageName

func (*BondDelete) GetMessageName() string

func (*BondDelete) GetMessageType

func (*BondDelete) GetMessageType() api.MessageType

func (*BondDelete) Marshal

func (m *BondDelete) Marshal(b []byte) ([]byte, error)

func (*BondDelete) Reset

func (m *BondDelete) Reset()

func (*BondDelete) Size

func (m *BondDelete) Size() (size int)

func (*BondDelete) Unmarshal

func (m *BondDelete) Unmarshal(b []byte) error

type BondDeleteReply

type BondDeleteReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

BondDeleteReply defines message 'bond_delete_reply'.

func (*BondDeleteReply) GetCrcString

func (*BondDeleteReply) GetCrcString() string

func (*BondDeleteReply) GetMessageName

func (*BondDeleteReply) GetMessageName() string

func (*BondDeleteReply) GetMessageType

func (*BondDeleteReply) GetMessageType() api.MessageType

func (*BondDeleteReply) Marshal

func (m *BondDeleteReply) Marshal(b []byte) ([]byte, error)

func (*BondDeleteReply) Reset

func (m *BondDeleteReply) Reset()

func (*BondDeleteReply) Size

func (m *BondDeleteReply) Size() (size int)

func (*BondDeleteReply) Unmarshal

func (m *BondDeleteReply) Unmarshal(b []byte) error

type BondDetachSlave

type BondDetachSlave struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

BondDetachSlave defines message 'bond_detach_slave'.

func (*BondDetachSlave) GetCrcString

func (*BondDetachSlave) GetCrcString() string

func (*BondDetachSlave) GetMessageName

func (*BondDetachSlave) GetMessageName() string

func (*BondDetachSlave) GetMessageType

func (*BondDetachSlave) GetMessageType() api.MessageType

func (*BondDetachSlave) Marshal

func (m *BondDetachSlave) Marshal(b []byte) ([]byte, error)

func (*BondDetachSlave) Reset

func (m *BondDetachSlave) Reset()

func (*BondDetachSlave) Size

func (m *BondDetachSlave) Size() (size int)

func (*BondDetachSlave) Unmarshal

func (m *BondDetachSlave) Unmarshal(b []byte) error

type BondDetachSlaveReply

type BondDetachSlaveReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

BondDetachSlaveReply defines message 'bond_detach_slave_reply'.

func (*BondDetachSlaveReply) GetCrcString

func (*BondDetachSlaveReply) GetCrcString() string

func (*BondDetachSlaveReply) GetMessageName

func (*BondDetachSlaveReply) GetMessageName() string

func (*BondDetachSlaveReply) GetMessageType

func (*BondDetachSlaveReply) GetMessageType() api.MessageType

func (*BondDetachSlaveReply) Marshal

func (m *BondDetachSlaveReply) Marshal(b []byte) ([]byte, error)

func (*BondDetachSlaveReply) Reset

func (m *BondDetachSlaveReply) Reset()

func (*BondDetachSlaveReply) Size

func (m *BondDetachSlaveReply) Size() (size int)

func (*BondDetachSlaveReply) Unmarshal

func (m *BondDetachSlaveReply) Unmarshal(b []byte) error

type BondEnslave

type BondEnslave struct {
	SwIfIndex     InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	BondSwIfIndex InterfaceIndex `binapi:"interface_index,name=bond_sw_if_index" json:"bond_sw_if_index,omitempty"`
	IsPassive     bool           `binapi:"bool,name=is_passive" json:"is_passive,omitempty"`
	IsLongTimeout bool           `binapi:"bool,name=is_long_timeout" json:"is_long_timeout,omitempty"`
}

BondEnslave defines message 'bond_enslave'.

func (*BondEnslave) GetCrcString

func (*BondEnslave) GetCrcString() string

func (*BondEnslave) GetMessageName

func (*BondEnslave) GetMessageName() string

func (*BondEnslave) GetMessageType

func (*BondEnslave) GetMessageType() api.MessageType

func (*BondEnslave) Marshal

func (m *BondEnslave) Marshal(b []byte) ([]byte, error)

func (*BondEnslave) Reset

func (m *BondEnslave) Reset()

func (*BondEnslave) Size

func (m *BondEnslave) Size() (size int)

func (*BondEnslave) Unmarshal

func (m *BondEnslave) Unmarshal(b []byte) error

type BondEnslaveReply

type BondEnslaveReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

BondEnslaveReply defines message 'bond_enslave_reply'.

func (*BondEnslaveReply) GetCrcString

func (*BondEnslaveReply) GetCrcString() string

func (*BondEnslaveReply) GetMessageName

func (*BondEnslaveReply) GetMessageName() string

func (*BondEnslaveReply) GetMessageType

func (*BondEnslaveReply) GetMessageType() api.MessageType

func (*BondEnslaveReply) Marshal

func (m *BondEnslaveReply) Marshal(b []byte) ([]byte, error)

func (*BondEnslaveReply) Reset

func (m *BondEnslaveReply) Reset()

func (*BondEnslaveReply) Size

func (m *BondEnslaveReply) Size() (size int)

func (*BondEnslaveReply) Unmarshal

func (m *BondEnslaveReply) Unmarshal(b []byte) error

type BondLbAlgo

type BondLbAlgo uint32

BondLbAlgo defines enum 'bond_lb_algo'.

const (
	BOND_API_LB_ALGO_L2  BondLbAlgo = 0
	BOND_API_LB_ALGO_L34 BondLbAlgo = 1
	BOND_API_LB_ALGO_L23 BondLbAlgo = 2
	BOND_API_LB_ALGO_RR  BondLbAlgo = 3
	BOND_API_LB_ALGO_BC  BondLbAlgo = 4
	BOND_API_LB_ALGO_AB  BondLbAlgo = 5
)

func (BondLbAlgo) String

func (x BondLbAlgo) String() string

type BondMode

type BondMode uint32

BondMode defines enum 'bond_mode'.

const (
	BOND_API_MODE_ROUND_ROBIN   BondMode = 1
	BOND_API_MODE_ACTIVE_BACKUP BondMode = 2
	BOND_API_MODE_XOR           BondMode = 3
	BOND_API_MODE_BROADCAST     BondMode = 4
	BOND_API_MODE_LACP          BondMode = 5
)

func (BondMode) String

func (x BondMode) String() string

type IfStatusFlags

type IfStatusFlags uint32

IfStatusFlags defines enum 'if_status_flags'.

const (
	IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
	IF_STATUS_API_FLAG_LINK_UP  IfStatusFlags = 2
)

func (IfStatusFlags) String

func (x IfStatusFlags) String() string

type IfType

type IfType uint32

IfType defines enum 'if_type'.

const (
	IF_API_TYPE_HARDWARE IfType = 1
	IF_API_TYPE_SUB      IfType = 2
	IF_API_TYPE_P2P      IfType = 3
	IF_API_TYPE_PIPE     IfType = 4
)

func (IfType) String

func (x IfType) String() string

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex defines alias 'interface_index'.

type LinkDuplex

type LinkDuplex uint32

LinkDuplex defines enum 'link_duplex'.

const (
	LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
	LINK_DUPLEX_API_HALF    LinkDuplex = 1
	LINK_DUPLEX_API_FULL    LinkDuplex = 2
)

func (LinkDuplex) String

func (x LinkDuplex) String() string

type MacAddress

type MacAddress [6]uint8

MacAddress defines alias 'mac_address'.

func ParseMacAddress

func ParseMacAddress(s string) (MacAddress, error)

func (*MacAddress) MarshalText

func (x *MacAddress) MarshalText() ([]byte, error)

func (MacAddress) String

func (x MacAddress) String() string

func (MacAddress) ToMAC

func (x MacAddress) ToMAC() net.HardwareAddr

func (*MacAddress) UnmarshalText

func (x *MacAddress) UnmarshalText(text []byte) error

type MtuProto

type MtuProto uint32

MtuProto defines enum 'mtu_proto'.

const (
	MTU_PROTO_API_L3   MtuProto = 1
	MTU_PROTO_API_IP4  MtuProto = 2
	MTU_PROTO_API_IP6  MtuProto = 3
	MTU_PROTO_API_MPLS MtuProto = 4
	MTU_PROTO_API_N    MtuProto = 5
)

func (MtuProto) String

func (x MtuProto) String() string

type RPCService

type RPCService interface {
	BondCreate(ctx context.Context, in *BondCreate) (*BondCreateReply, error)
	BondDelete(ctx context.Context, in *BondDelete) (*BondDeleteReply, error)
	BondDetachSlave(ctx context.Context, in *BondDetachSlave) (*BondDetachSlaveReply, error)
	BondEnslave(ctx context.Context, in *BondEnslave) (*BondEnslaveReply, error)
	SwInterfaceBondDump(ctx context.Context, in *SwInterfaceBondDump) (RPCService_SwInterfaceBondDumpClient, error)
	SwInterfaceSetBondWeight(ctx context.Context, in *SwInterfaceSetBondWeight) (*SwInterfaceSetBondWeightReply, error)
	SwInterfaceSlaveDump(ctx context.Context, in *SwInterfaceSlaveDump) (RPCService_SwInterfaceSlaveDumpClient, error)
}

RPCService defines RPC service bond.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SwInterfaceBondDumpClient

type RPCService_SwInterfaceBondDumpClient interface {
	Recv() (*SwInterfaceBondDetails, error)
	api.Stream
}

type RPCService_SwInterfaceSlaveDumpClient

type RPCService_SwInterfaceSlaveDumpClient interface {
	Recv() (*SwInterfaceSlaveDetails, error)
	api.Stream
}

type RxMode

type RxMode uint32

RxMode defines enum 'rx_mode'.

const (
	RX_MODE_API_UNKNOWN   RxMode = 0
	RX_MODE_API_POLLING   RxMode = 1
	RX_MODE_API_INTERRUPT RxMode = 2
	RX_MODE_API_ADAPTIVE  RxMode = 3
	RX_MODE_API_DEFAULT   RxMode = 4
)

func (RxMode) String

func (x RxMode) String() string

type SubIfFlags

type SubIfFlags uint32

SubIfFlags defines enum 'sub_if_flags'.

const (
	SUB_IF_API_FLAG_NO_TAGS           SubIfFlags = 1
	SUB_IF_API_FLAG_ONE_TAG           SubIfFlags = 2
	SUB_IF_API_FLAG_TWO_TAGS          SubIfFlags = 4
	SUB_IF_API_FLAG_DOT1AD            SubIfFlags = 8
	SUB_IF_API_FLAG_EXACT_MATCH       SubIfFlags = 16
	SUB_IF_API_FLAG_DEFAULT           SubIfFlags = 32
	SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
	SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
	SUB_IF_API_FLAG_MASK_VNET         SubIfFlags = 254
	SUB_IF_API_FLAG_DOT1AH            SubIfFlags = 256
)

func (SubIfFlags) String

func (x SubIfFlags) String() string

type SwInterfaceBondDetails

type SwInterfaceBondDetails struct {
	SwIfIndex     InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	ID            uint32         `binapi:"u32,name=id" json:"id,omitempty"`
	Mode          BondMode       `binapi:"bond_mode,name=mode" json:"mode,omitempty"`
	Lb            BondLbAlgo     `binapi:"bond_lb_algo,name=lb" json:"lb,omitempty"`
	NumaOnly      bool           `binapi:"bool,name=numa_only" json:"numa_only,omitempty"`
	ActiveSlaves  uint32         `binapi:"u32,name=active_slaves" json:"active_slaves,omitempty"`
	Slaves        uint32         `binapi:"u32,name=slaves" json:"slaves,omitempty"`
	InterfaceName string         `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"`
}

SwInterfaceBondDetails defines message 'sw_interface_bond_details'.

func (*SwInterfaceBondDetails) GetCrcString

func (*SwInterfaceBondDetails) GetCrcString() string

func (*SwInterfaceBondDetails) GetMessageName

func (*SwInterfaceBondDetails) GetMessageName() string

func (*SwInterfaceBondDetails) GetMessageType

func (*SwInterfaceBondDetails) GetMessageType() api.MessageType

func (*SwInterfaceBondDetails) Marshal

func (m *SwInterfaceBondDetails) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceBondDetails) Reset

func (m *SwInterfaceBondDetails) Reset()

func (*SwInterfaceBondDetails) Size

func (m *SwInterfaceBondDetails) Size() (size int)

func (*SwInterfaceBondDetails) Unmarshal

func (m *SwInterfaceBondDetails) Unmarshal(b []byte) error

type SwInterfaceBondDump

type SwInterfaceBondDump struct{}

SwInterfaceBondDump defines message 'sw_interface_bond_dump'.

func (*SwInterfaceBondDump) GetCrcString

func (*SwInterfaceBondDump) GetCrcString() string

func (*SwInterfaceBondDump) GetMessageName

func (*SwInterfaceBondDump) GetMessageName() string

func (*SwInterfaceBondDump) GetMessageType

func (*SwInterfaceBondDump) GetMessageType() api.MessageType

func (*SwInterfaceBondDump) Marshal

func (m *SwInterfaceBondDump) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceBondDump) Reset

func (m *SwInterfaceBondDump) Reset()

func (*SwInterfaceBondDump) Size

func (m *SwInterfaceBondDump) Size() (size int)

func (*SwInterfaceBondDump) Unmarshal

func (m *SwInterfaceBondDump) Unmarshal(b []byte) error

type SwInterfaceSetBondWeight

type SwInterfaceSetBondWeight struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Weight    uint32         `binapi:"u32,name=weight" json:"weight,omitempty"`
}

SwInterfaceSetBondWeight defines message 'sw_interface_set_bond_weight'.

func (*SwInterfaceSetBondWeight) GetCrcString

func (*SwInterfaceSetBondWeight) GetCrcString() string

func (*SwInterfaceSetBondWeight) GetMessageName

func (*SwInterfaceSetBondWeight) GetMessageName() string

func (*SwInterfaceSetBondWeight) GetMessageType

func (*SwInterfaceSetBondWeight) GetMessageType() api.MessageType

func (*SwInterfaceSetBondWeight) Marshal

func (m *SwInterfaceSetBondWeight) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceSetBondWeight) Reset

func (m *SwInterfaceSetBondWeight) Reset()

func (*SwInterfaceSetBondWeight) Size

func (m *SwInterfaceSetBondWeight) Size() (size int)

func (*SwInterfaceSetBondWeight) Unmarshal

func (m *SwInterfaceSetBondWeight) Unmarshal(b []byte) error

type SwInterfaceSetBondWeightReply

type SwInterfaceSetBondWeightReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SwInterfaceSetBondWeightReply defines message 'sw_interface_set_bond_weight_reply'.

func (*SwInterfaceSetBondWeightReply) GetCrcString

func (*SwInterfaceSetBondWeightReply) GetCrcString() string

func (*SwInterfaceSetBondWeightReply) GetMessageName

func (*SwInterfaceSetBondWeightReply) GetMessageName() string

func (*SwInterfaceSetBondWeightReply) GetMessageType

func (*SwInterfaceSetBondWeightReply) GetMessageType() api.MessageType

func (*SwInterfaceSetBondWeightReply) Marshal

func (m *SwInterfaceSetBondWeightReply) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceSetBondWeightReply) Reset

func (m *SwInterfaceSetBondWeightReply) Reset()

func (*SwInterfaceSetBondWeightReply) Size

func (m *SwInterfaceSetBondWeightReply) Size() (size int)

func (*SwInterfaceSetBondWeightReply) Unmarshal

func (m *SwInterfaceSetBondWeightReply) Unmarshal(b []byte) error

type SwInterfaceSlaveDetails

type SwInterfaceSlaveDetails struct {
	SwIfIndex     InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	InterfaceName string         `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"`
	IsPassive     bool           `binapi:"bool,name=is_passive" json:"is_passive,omitempty"`
	IsLongTimeout bool           `binapi:"bool,name=is_long_timeout" json:"is_long_timeout,omitempty"`
	IsLocalNuma   bool           `binapi:"bool,name=is_local_numa" json:"is_local_numa,omitempty"`
	Weight        uint32         `binapi:"u32,name=weight" json:"weight,omitempty"`
}

SwInterfaceSlaveDetails defines message 'sw_interface_slave_details'.

func (*SwInterfaceSlaveDetails) GetCrcString

func (*SwInterfaceSlaveDetails) GetCrcString() string

func (*SwInterfaceSlaveDetails) GetMessageName

func (*SwInterfaceSlaveDetails) GetMessageName() string

func (*SwInterfaceSlaveDetails) GetMessageType

func (*SwInterfaceSlaveDetails) GetMessageType() api.MessageType

func (*SwInterfaceSlaveDetails) Marshal

func (m *SwInterfaceSlaveDetails) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceSlaveDetails) Reset

func (m *SwInterfaceSlaveDetails) Reset()

func (*SwInterfaceSlaveDetails) Size

func (m *SwInterfaceSlaveDetails) Size() (size int)

func (*SwInterfaceSlaveDetails) Unmarshal

func (m *SwInterfaceSlaveDetails) Unmarshal(b []byte) error

type SwInterfaceSlaveDump

type SwInterfaceSlaveDump struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

SwInterfaceSlaveDump defines message 'sw_interface_slave_dump'.

func (*SwInterfaceSlaveDump) GetCrcString

func (*SwInterfaceSlaveDump) GetCrcString() string

func (*SwInterfaceSlaveDump) GetMessageName

func (*SwInterfaceSlaveDump) GetMessageName() string

func (*SwInterfaceSlaveDump) GetMessageType

func (*SwInterfaceSlaveDump) GetMessageType() api.MessageType

func (*SwInterfaceSlaveDump) Marshal

func (m *SwInterfaceSlaveDump) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceSlaveDump) Reset

func (m *SwInterfaceSlaveDump) Reset()

func (*SwInterfaceSlaveDump) Size

func (m *SwInterfaceSlaveDump) Size() (size int)

func (*SwInterfaceSlaveDump) Unmarshal

func (m *SwInterfaceSlaveDump) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL