bond

package
v3.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bond is a generated VPP binary API for 'bond' module.

It consists of:

 8 enums
 2 aliases
14 messages
 7 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "bond"
	// APIVersion is the API version of this module.
	APIVersion = "2.0.0"
	// VersionCrc is the CRC of this module.
	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",
}
View Source
var 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",
}
View Source
var 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 BondCreate

type BondCreate struct {
	ID           uint32
	UseCustomMac bool
	MacAddress   MacAddress
	Mode         BondMode
	Lb           BondLbAlgo
	NumaOnly     bool
}

BondCreate represents VPP binary API 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) Reset

func (m *BondCreate) Reset()

type BondCreateReply

type BondCreateReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

BondCreateReply represents VPP binary API 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) Reset

func (m *BondCreateReply) Reset()

type BondDelete

type BondDelete struct {
	SwIfIndex InterfaceIndex
}

BondDelete represents VPP binary API 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) Reset

func (m *BondDelete) Reset()

type BondDeleteReply

type BondDeleteReply struct {
	Retval int32
}

BondDeleteReply represents VPP binary API 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) Reset

func (m *BondDeleteReply) Reset()

type BondDetachSlave

type BondDetachSlave struct {
	SwIfIndex InterfaceIndex
}

BondDetachSlave represents VPP binary API 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) Reset

func (m *BondDetachSlave) Reset()

type BondDetachSlaveReply

type BondDetachSlaveReply struct {
	Retval int32
}

BondDetachSlaveReply represents VPP binary API 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) Reset

func (m *BondDetachSlaveReply) Reset()

type BondEnslave

type BondEnslave struct {
	SwIfIndex     InterfaceIndex
	BondSwIfIndex InterfaceIndex
	IsPassive     bool
	IsLongTimeout bool
}

BondEnslave represents VPP binary API 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) Reset

func (m *BondEnslave) Reset()

type BondEnslaveReply

type BondEnslaveReply struct {
	Retval int32
}

BondEnslaveReply represents VPP binary API 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) Reset

func (m *BondEnslaveReply) Reset()

type BondLbAlgo

type BondLbAlgo uint32

BondLbAlgo represents VPP binary API 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 represents VPP binary API 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 = interface_types.IfStatusFlags

type IfType

type IfType = interface_types.IfType

type InterfaceIndex

type InterfaceIndex = interface_types.InterfaceIndex

type LinkDuplex

type LinkDuplex = interface_types.LinkDuplex

type MacAddress

type MacAddress = ethernet_types.MacAddress

type MtuProto

type MtuProto = interface_types.MtuProto

type RPCService

type RPCService interface {
	DumpSwInterfaceBond(ctx context.Context, in *SwInterfaceBondDump) (RPCService_DumpSwInterfaceBondClient, error)
	DumpSwInterfaceSlave(ctx context.Context, in *SwInterfaceSlaveDump) (RPCService_DumpSwInterfaceSlaveClient, error)
	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)
	SwInterfaceSetBondWeight(ctx context.Context, in *SwInterfaceSetBondWeight) (*SwInterfaceSetBondWeightReply, error)
}

RPCService represents RPC service API for bond module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSwInterfaceBondClient

type RPCService_DumpSwInterfaceBondClient interface {
	Recv() (*SwInterfaceBondDetails, error)
}

type RPCService_DumpSwInterfaceSlaveClient

type RPCService_DumpSwInterfaceSlaveClient interface {
	Recv() (*SwInterfaceSlaveDetails, error)
}

type RxMode

type RxMode = interface_types.RxMode

type SubIfFlags

type SubIfFlags = interface_types.SubIfFlags

type SwInterfaceBondDetails

type SwInterfaceBondDetails struct {
	SwIfIndex     InterfaceIndex
	ID            uint32
	Mode          BondMode
	Lb            BondLbAlgo
	NumaOnly      bool
	ActiveSlaves  uint32
	Slaves        uint32
	InterfaceName string `struc:"[64]byte"`
}

SwInterfaceBondDetails represents VPP binary API 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) Reset

func (m *SwInterfaceBondDetails) Reset()

type SwInterfaceBondDump

type SwInterfaceBondDump struct{}

SwInterfaceBondDump represents VPP binary API 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) Reset

func (m *SwInterfaceBondDump) Reset()

type SwInterfaceSetBondWeight

type SwInterfaceSetBondWeight struct {
	SwIfIndex InterfaceIndex
	Weight    uint32
}

SwInterfaceSetBondWeight represents VPP binary API 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) Reset

func (m *SwInterfaceSetBondWeight) Reset()

type SwInterfaceSetBondWeightReply

type SwInterfaceSetBondWeightReply struct {
	Retval int32
}

SwInterfaceSetBondWeightReply represents VPP binary API 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) Reset

func (m *SwInterfaceSetBondWeightReply) Reset()

type SwInterfaceSlaveDetails

type SwInterfaceSlaveDetails struct {
	SwIfIndex     InterfaceIndex
	InterfaceName string `struc:"[64]byte"`
	IsPassive     bool
	IsLongTimeout bool
	IsLocalNuma   bool
	Weight        uint32
}

SwInterfaceSlaveDetails represents VPP binary API 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) Reset

func (m *SwInterfaceSlaveDetails) Reset()

type SwInterfaceSlaveDump

type SwInterfaceSlaveDump struct {
	SwIfIndex InterfaceIndex
}

SwInterfaceSlaveDump represents VPP binary API 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) Reset

func (m *SwInterfaceSlaveDump) Reset()

Jump to

Keyboard shortcuts

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