Documentation
¶
Overview ¶
Package lldp contains generated bindings for API file lldp.api.
Contents:
4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type LldpConfig
- func (*LldpConfig) GetCrcString() string
- func (*LldpConfig) GetMessageName() string
- func (*LldpConfig) GetMessageType() api.MessageType
- func (m *LldpConfig) Marshal(b []byte) ([]byte, error)
- func (m *LldpConfig) Reset()
- func (m *LldpConfig) Size() (size int)
- func (m *LldpConfig) Unmarshal(b []byte) error
- type LldpConfigReply
- func (*LldpConfigReply) GetCrcString() string
- func (*LldpConfigReply) GetMessageName() string
- func (*LldpConfigReply) GetMessageType() api.MessageType
- func (m *LldpConfigReply) Marshal(b []byte) ([]byte, error)
- func (m *LldpConfigReply) Reset()
- func (m *LldpConfigReply) Size() (size int)
- func (m *LldpConfigReply) Unmarshal(b []byte) error
- type RPCService
- type SwInterfaceSetLldp
- func (*SwInterfaceSetLldp) GetCrcString() string
- func (*SwInterfaceSetLldp) GetMessageName() string
- func (*SwInterfaceSetLldp) GetMessageType() api.MessageType
- func (m *SwInterfaceSetLldp) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSetLldp) Reset()
- func (m *SwInterfaceSetLldp) Size() (size int)
- func (m *SwInterfaceSetLldp) Unmarshal(b []byte) error
- type SwInterfaceSetLldpReply
- func (*SwInterfaceSetLldpReply) GetCrcString() string
- func (*SwInterfaceSetLldpReply) GetMessageName() string
- func (*SwInterfaceSetLldpReply) GetMessageType() api.MessageType
- func (m *SwInterfaceSetLldpReply) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSetLldpReply) Reset()
- func (m *SwInterfaceSetLldpReply) Size() (size int)
- func (m *SwInterfaceSetLldpReply) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "lldp" APIVersion = "1.0.0" VersionCrc = 0xabb21dd0 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type LldpConfig ¶
type LldpConfig struct { SystemName []byte `binapi:"u8[256],name=system_name" json:"system_name,omitempty"` TxHold uint32 `binapi:"u32,name=tx_hold" json:"tx_hold,omitempty"` TxInterval uint32 `binapi:"u32,name=tx_interval" json:"tx_interval,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) 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) 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 uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"` PortDesc []byte `binapi:"u8[256],name=port_desc" json:"port_desc,omitempty"` MgmtIP4 []byte `binapi:"u8[4],name=mgmt_ip4" json:"mgmt_ip4,omitempty"` MgmtIP6 []byte `binapi:"u8[16],name=mgmt_ip6" json:"mgmt_ip6,omitempty"` MgmtOid []byte `binapi:"u8[128],name=mgmt_oid" json:"mgmt_oid,omitempty"` Enable uint8 `binapi:"u8,name=enable" json:"enable,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) 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
Click to show internal directories.
Click to hide internal directories.