bond

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

It consists of:

12 messages
 6 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "bond"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x33cb944c
)

Variables

This section is empty.

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 uint8
	MacAddress   []byte `struc:"[6]byte"`
	Mode         uint8
	Lb           uint8
}

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

type BondCreateReply

type BondCreateReply struct {
	Retval    int32
	SwIfIndex uint32
}

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

type BondDelete

type BondDelete struct {
	SwIfIndex uint32
}

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

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

type BondDetachSlave

type BondDetachSlave struct {
	SwIfIndex uint32
}

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

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

type BondEnslave

type BondEnslave struct {
	SwIfIndex     uint32
	BondSwIfIndex uint32
	IsPassive     uint8
	IsLongTimeout uint8
}

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

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

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

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 SwInterfaceBondDetails

type SwInterfaceBondDetails struct {
	SwIfIndex     uint32
	ID            uint32
	InterfaceName []byte `struc:"[64]byte"`
	Mode          uint8
	Lb            uint8
	ActiveSlaves  uint32
	Slaves        uint32
}

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

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

type SwInterfaceSlaveDetails

type SwInterfaceSlaveDetails struct {
	SwIfIndex     uint32
	InterfaceName []byte `struc:"[64]byte"`
	IsPassive     uint8
	IsLongTimeout uint8
}

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

type SwInterfaceSlaveDump

type SwInterfaceSlaveDump struct {
	SwIfIndex uint32
}

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

Jump to

Keyboard shortcuts

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