lldp

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: 5 Imported by: 0

Documentation

Overview

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

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "lldp"
	APIVersion = "2.0.0"
	VersionCrc = 0x8a7e7049
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type LldpConfig

type LldpConfig struct {
	TxHold     uint32 `binapi:"u32,name=tx_hold" json:"tx_hold,omitempty"`
	TxInterval uint32 `binapi:"u32,name=tx_interval" json:"tx_interval,omitempty"`
	SystemName string `binapi:"string[],name=system_name" json:"system_name,omitempty"`
}

LldpConfig defines message 'lldp_config'.

func (*LldpConfig) GetCrcString

func (*LldpConfig) GetCrcString() string

func (*LldpConfig) GetMessageName

func (*LldpConfig) GetMessageName() string

func (*LldpConfig) GetMessageType

func (*LldpConfig) GetMessageType() api.MessageType

func (*LldpConfig) Marshal

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

func (*LldpConfig) Reset

func (m *LldpConfig) Reset()

func (*LldpConfig) Size

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

func (*LldpConfig) Unmarshal

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

type LldpConfigReply

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

LldpConfigReply defines message 'lldp_config_reply'.

func (*LldpConfigReply) GetCrcString

func (*LldpConfigReply) GetCrcString() string

func (*LldpConfigReply) GetMessageName

func (*LldpConfigReply) GetMessageName() string

func (*LldpConfigReply) GetMessageType

func (*LldpConfigReply) GetMessageType() api.MessageType

func (*LldpConfigReply) Marshal

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

func (*LldpConfigReply) Reset

func (m *LldpConfigReply) Reset()

func (*LldpConfigReply) Size

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

func (*LldpConfigReply) Unmarshal

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

type RPCService

type RPCService interface {
	LldpConfig(ctx context.Context, in *LldpConfig) (*LldpConfigReply, error)
	SwInterfaceSetLldp(ctx context.Context, in *SwInterfaceSetLldp) (*SwInterfaceSetLldpReply, error)
}

RPCService defines RPC service lldp.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type SwInterfaceSetLldp

type SwInterfaceSetLldp struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	MgmtIP4   ip_types.IP4Address            `binapi:"ip4_address,name=mgmt_ip4" json:"mgmt_ip4,omitempty"`
	MgmtIP6   ip_types.IP6Address            `binapi:"ip6_address,name=mgmt_ip6" json:"mgmt_ip6,omitempty"`
	MgmtOid   []byte                         `binapi:"u8[128],name=mgmt_oid" json:"mgmt_oid,omitempty"`
	Enable    bool                           `binapi:"bool,name=enable,default=true" json:"enable,omitempty"`
	PortDesc  string                         `binapi:"string[],name=port_desc" json:"port_desc,omitempty"`
}

SwInterfaceSetLldp defines message 'sw_interface_set_lldp'.

func (*SwInterfaceSetLldp) GetCrcString

func (*SwInterfaceSetLldp) GetCrcString() string

func (*SwInterfaceSetLldp) GetMessageName

func (*SwInterfaceSetLldp) GetMessageName() string

func (*SwInterfaceSetLldp) GetMessageType

func (*SwInterfaceSetLldp) GetMessageType() api.MessageType

func (*SwInterfaceSetLldp) Marshal

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

func (*SwInterfaceSetLldp) Reset

func (m *SwInterfaceSetLldp) Reset()

func (*SwInterfaceSetLldp) Size

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

func (*SwInterfaceSetLldp) Unmarshal

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

type SwInterfaceSetLldpReply

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

SwInterfaceSetLldpReply defines message 'sw_interface_set_lldp_reply'.

func (*SwInterfaceSetLldpReply) GetCrcString

func (*SwInterfaceSetLldpReply) GetCrcString() string

func (*SwInterfaceSetLldpReply) GetMessageName

func (*SwInterfaceSetLldpReply) GetMessageName() string

func (*SwInterfaceSetLldpReply) GetMessageType

func (*SwInterfaceSetLldpReply) GetMessageType() api.MessageType

func (*SwInterfaceSetLldpReply) Marshal

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

func (*SwInterfaceSetLldpReply) Reset

func (m *SwInterfaceSetLldpReply) Reset()

func (*SwInterfaceSetLldpReply) Size

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

func (*SwInterfaceSetLldpReply) Unmarshal

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

Jump to

Keyboard shortcuts

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