bond

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Contents:

 2 enums
24 messages

Index

Constants

View Source
const (
	APIFile    = "bond"
	APIVersion = "2.1.0"
	VersionCrc = 0xa03f5330
)

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,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type BondAddMember

type BondAddMember struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	BondSwIfIndex interface_types.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"`
}

BondAddMember defines message 'bond_add_member'.

func (*BondAddMember) GetCrcString

func (*BondAddMember) GetCrcString() string

func (*BondAddMember) GetMessageName

func (*BondAddMember) GetMessageName() string

func (*BondAddMember) GetMessageType

func (*BondAddMember) GetMessageType() api.MessageType

func (*BondAddMember) Marshal

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

func (*BondAddMember) Reset

func (m *BondAddMember) Reset()

func (*BondAddMember) Size

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

func (*BondAddMember) Unmarshal

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

type BondAddMemberReply

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

BondAddMemberReply defines message 'bond_add_member_reply'.

func (*BondAddMemberReply) GetCrcString

func (*BondAddMemberReply) GetCrcString() string

func (*BondAddMemberReply) GetMessageName

func (*BondAddMemberReply) GetMessageName() string

func (*BondAddMemberReply) GetMessageType

func (*BondAddMemberReply) GetMessageType() api.MessageType

func (*BondAddMemberReply) Marshal

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

func (*BondAddMemberReply) Reset

func (m *BondAddMemberReply) Reset()

func (*BondAddMemberReply) Size

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

func (*BondAddMemberReply) Unmarshal

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

type BondCreate

type BondCreate struct {
	ID           uint32                    `binapi:"u32,name=id,default=4294967295" json:"id,omitempty"`
	UseCustomMac bool                      `binapi:"bool,name=use_custom_mac" json:"use_custom_mac,omitempty"`
	MacAddress   ethernet_types.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'. Deprecated: the message will be removed in the future versions

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 BondCreate2

type BondCreate2 struct {
	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"`
	EnableGso    bool                      `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"`
	UseCustomMac bool                      `binapi:"bool,name=use_custom_mac" json:"use_custom_mac,omitempty"`
	MacAddress   ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
	ID           uint32                    `binapi:"u32,name=id,default=4294967295" json:"id,omitempty"`
}

BondCreate2 defines message 'bond_create2'.

func (*BondCreate2) GetCrcString

func (*BondCreate2) GetCrcString() string

func (*BondCreate2) GetMessageName

func (*BondCreate2) GetMessageName() string

func (*BondCreate2) GetMessageType

func (*BondCreate2) GetMessageType() api.MessageType

func (*BondCreate2) Marshal

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

func (*BondCreate2) Reset

func (m *BondCreate2) Reset()

func (*BondCreate2) Size

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

func (*BondCreate2) Unmarshal

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

type BondCreate2Reply

type BondCreate2Reply 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"`
}

BondCreate2Reply defines message 'bond_create2_reply'.

func (*BondCreate2Reply) GetCrcString

func (*BondCreate2Reply) GetCrcString() string

func (*BondCreate2Reply) GetMessageName

func (*BondCreate2Reply) GetMessageName() string

func (*BondCreate2Reply) GetMessageType

func (*BondCreate2Reply) GetMessageType() api.MessageType

func (*BondCreate2Reply) Marshal

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

func (*BondCreate2Reply) Reset

func (m *BondCreate2Reply) Reset()

func (*BondCreate2Reply) Size

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

func (*BondCreate2Reply) Unmarshal

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

type BondCreateReply

type BondCreateReply 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"`
}

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 interface_types.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 BondDetachMember

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

BondDetachMember defines message 'bond_detach_member'.

func (*BondDetachMember) GetCrcString

func (*BondDetachMember) GetCrcString() string

func (*BondDetachMember) GetMessageName

func (*BondDetachMember) GetMessageName() string

func (*BondDetachMember) GetMessageType

func (*BondDetachMember) GetMessageType() api.MessageType

func (*BondDetachMember) Marshal

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

func (*BondDetachMember) Reset

func (m *BondDetachMember) Reset()

func (*BondDetachMember) Size

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

func (*BondDetachMember) Unmarshal

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

type BondDetachMemberReply

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

BondDetachMemberReply defines message 'bond_detach_member_reply'.

func (*BondDetachMemberReply) GetCrcString

func (*BondDetachMemberReply) GetCrcString() string

func (*BondDetachMemberReply) GetMessageName

func (*BondDetachMemberReply) GetMessageName() string

func (*BondDetachMemberReply) GetMessageType

func (*BondDetachMemberReply) GetMessageType() api.MessageType

func (*BondDetachMemberReply) Marshal

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

func (*BondDetachMemberReply) Reset

func (m *BondDetachMemberReply) Reset()

func (*BondDetachMemberReply) Size

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

func (*BondDetachMemberReply) Unmarshal

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

type BondDetachSlave

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

BondDetachSlave defines message 'bond_detach_slave'. Deprecated: the message will be removed in the future versions

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'. Deprecated: the message will be removed in the future versions

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     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	BondSwIfIndex interface_types.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'. Deprecated: the message will be removed in the future versions

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 RPCService

RPCService defines RPC service bond.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SwBondInterfaceDumpClient

type RPCService_SwBondInterfaceDumpClient interface {
	Recv() (*SwBondInterfaceDetails, error)
	api.Stream
}

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 RPCService_SwMemberInterfaceDumpClient

type RPCService_SwMemberInterfaceDumpClient interface {
	Recv() (*SwMemberInterfaceDetails, error)
	api.Stream
}

type SwBondInterfaceDetails

type SwBondInterfaceDetails struct {
	SwIfIndex     interface_types.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"`
	ActiveMembers uint32                         `binapi:"u32,name=active_members" json:"active_members,omitempty"`
	Members       uint32                         `binapi:"u32,name=members" json:"members,omitempty"`
	InterfaceName string                         `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"`
}

SwBondInterfaceDetails defines message 'sw_bond_interface_details'.

func (*SwBondInterfaceDetails) GetCrcString

func (*SwBondInterfaceDetails) GetCrcString() string

func (*SwBondInterfaceDetails) GetMessageName

func (*SwBondInterfaceDetails) GetMessageName() string

func (*SwBondInterfaceDetails) GetMessageType

func (*SwBondInterfaceDetails) GetMessageType() api.MessageType

func (*SwBondInterfaceDetails) Marshal

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

func (*SwBondInterfaceDetails) Reset

func (m *SwBondInterfaceDetails) Reset()

func (*SwBondInterfaceDetails) Size

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

func (*SwBondInterfaceDetails) Unmarshal

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

type SwBondInterfaceDump

type SwBondInterfaceDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}

SwBondInterfaceDump defines message 'sw_bond_interface_dump'.

func (*SwBondInterfaceDump) GetCrcString

func (*SwBondInterfaceDump) GetCrcString() string

func (*SwBondInterfaceDump) GetMessageName

func (*SwBondInterfaceDump) GetMessageName() string

func (*SwBondInterfaceDump) GetMessageType

func (*SwBondInterfaceDump) GetMessageType() api.MessageType

func (*SwBondInterfaceDump) Marshal

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

func (*SwBondInterfaceDump) Reset

func (m *SwBondInterfaceDump) Reset()

func (*SwBondInterfaceDump) Size

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

func (*SwBondInterfaceDump) Unmarshal

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

type SwInterfaceBondDetails

type SwInterfaceBondDetails struct {
	SwIfIndex     interface_types.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'. Deprecated: the message will be removed in the future versions

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 interface_types.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     interface_types.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 interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

SwInterfaceSlaveDump defines message 'sw_interface_slave_dump'. Deprecated: the message will be removed in the future versions

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

type SwMemberInterfaceDetails

type SwMemberInterfaceDetails struct {
	SwIfIndex     interface_types.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"`
}

SwMemberInterfaceDetails defines message 'sw_member_interface_details'.

func (*SwMemberInterfaceDetails) GetCrcString

func (*SwMemberInterfaceDetails) GetCrcString() string

func (*SwMemberInterfaceDetails) GetMessageName

func (*SwMemberInterfaceDetails) GetMessageName() string

func (*SwMemberInterfaceDetails) GetMessageType

func (*SwMemberInterfaceDetails) GetMessageType() api.MessageType

func (*SwMemberInterfaceDetails) Marshal

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

func (*SwMemberInterfaceDetails) Reset

func (m *SwMemberInterfaceDetails) Reset()

func (*SwMemberInterfaceDetails) Size

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

func (*SwMemberInterfaceDetails) Unmarshal

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

type SwMemberInterfaceDump

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

SwMemberInterfaceDump defines message 'sw_member_interface_dump'.

func (*SwMemberInterfaceDump) GetCrcString

func (*SwMemberInterfaceDump) GetCrcString() string

func (*SwMemberInterfaceDump) GetMessageName

func (*SwMemberInterfaceDump) GetMessageName() string

func (*SwMemberInterfaceDump) GetMessageType

func (*SwMemberInterfaceDump) GetMessageType() api.MessageType

func (*SwMemberInterfaceDump) Marshal

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

func (*SwMemberInterfaceDump) Reset

func (m *SwMemberInterfaceDump) Reset()

func (*SwMemberInterfaceDump) Size

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

func (*SwMemberInterfaceDump) Unmarshal

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

Jump to

Keyboard shortcuts

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