bond

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 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:

 8 enums
 2 aliases
14 messages
 7 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "bond"
	// 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,
}
View Source
var IfStatusFlags_name = map[uint32]string{
	1: "IF_STATUS_API_FLAG_ADMIN_UP",
	2: "IF_STATUS_API_FLAG_LINK_UP",
}
View Source
var 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",
}
View Source
var 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",
}
View Source
var 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",
}
View Source
var 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",
}
View Source
var 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",
}
View Source
var 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
	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

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

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

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

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

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 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 uint32

IfStatusFlags represents VPP binary API 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 represents VPP binary API 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 represents VPP binary API alias 'interface_index'.

type LinkDuplex

type LinkDuplex uint32

LinkDuplex represents VPP binary API 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 represents VPP binary API alias 'mac_address'.

type MtuProto

type MtuProto uint32

MtuProto represents VPP binary API 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 {
	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 uint32

RxMode represents VPP binary API 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 represents VPP binary API 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
	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

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

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

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

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

Jump to

Keyboard shortcuts

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