lacp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Contents: - 2 messages

Index

Constants

View Source
const (
	APIFile    = "lacp"
	APIVersion = "2.0.0"
	VersionCrc = 0xe1609dab
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

type RPCService interface {
	SwInterfaceLacpDump(ctx context.Context, in *SwInterfaceLacpDump) (RPCService_SwInterfaceLacpDumpClient, error)
}

RPCService defines RPC service lacp.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SwInterfaceLacpDumpClient

type RPCService_SwInterfaceLacpDumpClient interface {
	Recv() (*SwInterfaceLacpDetails, error)
	api.Stream
}

type SwInterfaceLacpDetails

type SwInterfaceLacpDetails 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"`
	RxState               uint32                         `binapi:"u32,name=rx_state" json:"rx_state,omitempty"`
	TxState               uint32                         `binapi:"u32,name=tx_state" json:"tx_state,omitempty"`
	MuxState              uint32                         `binapi:"u32,name=mux_state" json:"mux_state,omitempty"`
	PtxState              uint32                         `binapi:"u32,name=ptx_state" json:"ptx_state,omitempty"`
	BondInterfaceName     string                         `binapi:"string[64],name=bond_interface_name" json:"bond_interface_name,omitempty"`
	ActorSystemPriority   uint16                         `binapi:"u16,name=actor_system_priority" json:"actor_system_priority,omitempty"`
	ActorSystem           ethernet_types.MacAddress      `binapi:"mac_address,name=actor_system" json:"actor_system,omitempty"`
	ActorKey              uint16                         `binapi:"u16,name=actor_key" json:"actor_key,omitempty"`
	ActorPortPriority     uint16                         `binapi:"u16,name=actor_port_priority" json:"actor_port_priority,omitempty"`
	ActorPortNumber       uint16                         `binapi:"u16,name=actor_port_number" json:"actor_port_number,omitempty"`
	ActorState            uint8                          `binapi:"u8,name=actor_state" json:"actor_state,omitempty"`
	PartnerSystemPriority uint16                         `binapi:"u16,name=partner_system_priority" json:"partner_system_priority,omitempty"`
	PartnerSystem         ethernet_types.MacAddress      `binapi:"mac_address,name=partner_system" json:"partner_system,omitempty"`
	PartnerKey            uint16                         `binapi:"u16,name=partner_key" json:"partner_key,omitempty"`
	PartnerPortPriority   uint16                         `binapi:"u16,name=partner_port_priority" json:"partner_port_priority,omitempty"`
	PartnerPortNumber     uint16                         `binapi:"u16,name=partner_port_number" json:"partner_port_number,omitempty"`
	PartnerState          uint8                          `binapi:"u8,name=partner_state" json:"partner_state,omitempty"`
}

Reply for lacp dump request

  • sw_if_index - software index of member interface
  • interface_name - name of member interface
  • rx_state - rx machine state
  • tx_state - tx machine state
  • mux_state - mux machine state
  • ptx_state - ptx machine state
  • bond_interface_name - name of bond interface
  • actor_system_priority - actor system priority
  • actor_system - actor system
  • actor_key - actor key
  • actor_port_priority - actor port priority
  • actor_port_number - actor port number
  • actor_state - actor state
  • partner_system_priority - partner system priority
  • partner_system - partner system
  • partner_key - partner key
  • partner_port_priority - partner port priority
  • partner_port_number - partner port number
  • partner_state - partner state

SwInterfaceLacpDetails defines message 'sw_interface_lacp_details'.

func (*SwInterfaceLacpDetails) GetCrcString

func (*SwInterfaceLacpDetails) GetCrcString() string

func (*SwInterfaceLacpDetails) GetMessageName

func (*SwInterfaceLacpDetails) GetMessageName() string

func (*SwInterfaceLacpDetails) GetMessageType

func (*SwInterfaceLacpDetails) GetMessageType() api.MessageType

func (*SwInterfaceLacpDetails) Marshal

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

func (*SwInterfaceLacpDetails) Reset

func (m *SwInterfaceLacpDetails) Reset()

func (*SwInterfaceLacpDetails) Size

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

func (*SwInterfaceLacpDetails) Unmarshal

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

type SwInterfaceLacpDump

type SwInterfaceLacpDump struct{}

Dump lacp interfaces request SwInterfaceLacpDump defines message 'sw_interface_lacp_dump'.

func (*SwInterfaceLacpDump) GetCrcString

func (*SwInterfaceLacpDump) GetCrcString() string

func (*SwInterfaceLacpDump) GetMessageName

func (*SwInterfaceLacpDump) GetMessageName() string

func (*SwInterfaceLacpDump) GetMessageType

func (*SwInterfaceLacpDump) GetMessageType() api.MessageType

func (*SwInterfaceLacpDump) Marshal

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

func (*SwInterfaceLacpDump) Reset

func (m *SwInterfaceLacpDump) Reset()

func (*SwInterfaceLacpDump) Size

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

func (*SwInterfaceLacpDump) Unmarshal

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

Jump to

Keyboard shortcuts

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