Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
Data Structures | Macros | Enumerations | Functions
LLDP Configuration And Status [OPENAPI_LLDP]

Data Structures

struct  OPEN_LLDP_MED_CAPABILITIES_t
 

Macros

#define OPEN_LLDP_AUTO_NEG_ADVERTIZED_CAPABILITY_SIZE   3
 
#define OPEN_LLDP_CHASSIS_ID_SUBTYPE_STRING_SIZE   64
 
#define OPEN_LLDP_LOCATION_INFO_STRING_SIZE   256
 
#define OPEN_LLDP_MED_CAP_CAPABILITIES_BITMASK   0x01
 
#define OPEN_LLDP_MED_CAP_EXT_PD_BITMASK   0x10
 
#define OPEN_LLDP_MED_CAP_EXT_PSE_BITMASK   0x08
 
#define OPEN_LLDP_MED_CAP_INVENTORY_BITMASK   0x20
 
#define OPEN_LLDP_MED_CAP_LOCATION_BITMASK   0x04
 
#define OPEN_LLDP_MED_CAP_NETWORKPOLICY_BITMASK   0x02
 
#define OPEN_LLDP_MED_FASTSTART_REPEAT_COUNT_MAX   10
 
#define OPEN_LLDP_MED_FASTSTART_REPEAT_COUNT_MIN   1
 
#define OPEN_LLDP_NOTIFY_INTERVAL_MAX   3600
 
#define OPEN_LLDP_NOTIFY_INTERVAL_MIN   5
 
#define OPEN_LLDP_REINIT_DELAY_MAX   10
 
#define OPEN_LLDP_REINIT_DELAY_MIN   1
 
#define OPEN_LLDP_STRING_SIZE   32
 
#define OPEN_LLDP_TX_HOLD_MULTIPLIER_MAX   10
 
#define OPEN_LLDP_TX_HOLD_MULTIPLIER_MIN   2
 
#define OPEN_LLDP_TX_INTERVAL_MAX   32768
 
#define OPEN_LLDP_TX_INTERVAL_MIN   5
 
#define OPEN_LLDP_UNKNOWN_TLV_INFO_SIZE_MAX   511
 

Enumerations

enum  OPEN_LLDP_CHASSIS_ID_SUBTYPE_t {
  OPEN_LLDP_CHASSIS_ID_SUBTYPE_CHASSIS_COMP = 1, OPEN_LLDP_CHASSIS_ID_SUBTYPE_INTF_ALIAS = 2, OPEN_LLDP_CHASSIS_ID_SUBTYPE_PORT_COMP = 3, OPEN_LLDP_CHASSIS_ID_SUBTYPE_MAC_ADDR = 4,
  OPEN_LLDP_CHASSIS_ID_SUBTYPE_NET_ADDR = 5, OPEN_LLDP_CHASSIS_ID_SUBTYPE_INTF_NAME = 6, OPEN_LLDP_CHASSIS_ID_SUBTYPE_LOCAL = 7
}
 
enum  OPEN_LLDP_IANA_ADDR_FAMILY_t { OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_RESERVED = 0, OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_IPV4 = 1, OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_IPV6 = 2, OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_802 = 6 }
 
enum  OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_t { OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_UNKNOWN = 1, OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_IF_INDEX = 2, OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_PORT_NUMBER = 3 }
 
enum  OPEN_LLDP_PORT_ID_SUBTYPE_t {
  OPEN_LLDP_PORT_ID_SUBTYPE_INTF_ALIAS = 1, OPEN_LLDP_PORT_ID_SUBTYPE_PORT_COMP = 2, OPEN_LLDP_PORT_ID_SUBTYPE_MAC_ADDR = 3, OPEN_LLDP_PORT_ID_SUBTYPE_NET_ADDR = 4,
  OPEN_LLDP_PORT_ID_SUBTYPE_INTF_NAME = 5, OPEN_LLDP_PORT_ID_SUBTYPE_AGENT_ID = 6, OPEN_LLDP_PORT_ID_SUBTYPE_LOCAL = 7
}
 
enum  OPEN_LLDP_TLV_TYPE_t {
  OPEN_LLDP_SYS_DESC_TLV = 0, OPEN_LLDP_SYS_NAME_TLV = 1, OPEN_LLDP_SYS_CAPABILITIES_TLV = 2, OPEN_LLDP_PORT_DESC_TLV = 3,
  OPEN_LLDP_MGMT_ADDRESS_TLV = 4, OPEN_LLDP_PORT_VLAN_TLV = 5, OPEN_LLDP_VLAN_NAME_TLV = 6, OPEN_LLDP_MAXIMUM_FRAME_SIZE_TLV = 7,
  OPEN_LLDP_LINK_AGGREGATION_TLV = 8, OPEN_LLDP_LAST_TLV = 9
}
 
enum  OPEN_LLDPXMED_LOCATION_SUBTYPE_t { OPEN_UNKNOWN_LOCATION_SUBTYPE = 0, OPEN_COORDINATE_BASED_LOCATION_SUBTYPE, OPEN_CIVIC_ADDRESS_LOCATION_SUBTYPE, OPEN_ELIN_LOCATION_SUBTYPE }
 
enum  OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t {
  OPEN_UNKNOWN_POLICY_APPTYPE = 0, OPEN_VOICE_POLICY_APPTYPE, OPEN_VOICE_SIGNALING_POLICY_APPTYPE, OPEN_GUEST_VOICE_POLICY_APPTYPE,
  OPEN_GUEST_VOICE_SIGNALING_POLICY_APPTYPE, OPEN_SOFTPHONE_VOICE_POLICY_APPTYPE, OPEN_VIDEO_CONFERENCING_POLICY_APPTYPE, OPEN_STREAMING_VIDEO_POLICY_APPTYPE,
  OPEN_VIDEO_SIGNALING_POLICY_APPTYPE
}
 

Functions

open_error_t openapiLldpChassisIdSubtypeStringGet (openapiClientHandle_t *client_handle, OPEN_LLDP_CHASSIS_ID_SUBTYPE_t subtype, open_buffdesc *subtypeStr)
 Get a string representation for Chassis ID Subtype. More...
 
open_error_t openapiLldpdot3LocPortAutoNegAdvertizedCapGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *advrtCap)
 Get port's auto negotiation advertized capability as a string. More...
 
open_error_t openapiLldpdot3LocPortAutoNegEnabledGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *isEnabled)
 Get port's auto negotiation enabled status. More...
 
open_error_t openapiLldpdot3LocPortAutoNegOperMauTypeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *type)
 Get port's auto negotiation operational MAU Type. More...
 
open_error_t openapiLldpdot3LocPortAutoNegSupportedGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *isCapable)
 Get the port's auto negotiation capability. More...
 
open_error_t openapiLldpdot3RemPortAutoNegAdvertizedCapGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *advrtCap)
 Get remote port's auto negotiation advertized capability as a string. More...
 
open_error_t openapiLldpdot3RemPortAutoNegEnabledGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_BOOL_t *isEnabled)
 Get remote port's auto negotiation enabled status. More...
 
open_error_t openapiLldpdot3RemPortAutoNegOperMauStringGet (openapiClientHandle_t *client_handle, uint32_t mauType, open_buffdesc *mauString)
 Get remote port's auto negotiation operational MAU in string format. More...
 
open_error_t openapiLldpdot3RemPortAutoNegOperMauTypeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *type)
 Get remote port's auto negotiation operational MAU Type. More...
 
open_error_t openapiLldpdot3RemPortAutoNegSupportedGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_BOOL_t *isCapable)
 Get remote port's auto negotiation capability. More...
 
open_error_t openapiLldpIntfLocalDeviceChassisIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_CHASSIS_ID_SUBTYPE_t *chassisIdSubtype, open_buffdesc *chassisId)
 Gets the LLDP Local Device Chassis Id and Chassis Id Subtype for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceMaxFrameSizeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint16_t *maxFrameSize)
 Gets the 802.1AB local Maximum Frame Size for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceMgmtAddressGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_IANA_ADDR_FAMILY_t *addressFamily, open_buffdesc *address)
 Gets the LLDP Local Device Management Address for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDevicePortDescGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *portDesc)
 Gets the LLDP Local Device Port Description for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDevicePortIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_PORT_ID_SUBTYPE_t *portIdSubtype, open_buffdesc *portId)
 Gets the LLDP Local Device Port Id and Port Id Subtype for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDevicePortVlanGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint16_t *portVlan)
 Gets the 802.1AB local port VLAN for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceSysCapEnabledGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *sysCapEnabled)
 Gets the LLDP Local Device System Capabilities Enabled for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceSysCapSuppGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *sysCapSupp)
 Gets the LLDP Local Device System Capabilities Supported for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceSystemDescGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *systemDesc)
 Gets the LLDP Local Device System Description for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceSystemNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *systemName)
 Gets the LLDP Local Device System Name for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceVlanGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_VLAN_LIST_t *vlanList)
 Gets the 802.1AB local VLANs for the specified interface. More...
 
open_error_t openapiLldpIntfLocalDeviceVlanNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t vlanId, open_buffdesc *vlanName)
 Gets the 802.1AB local VLAN name for the specified VLAN. More...
 
open_error_t openapiLldpIntfLocalPortLinkAggregationInfoGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *aggregationCapable, OPEN_BOOL_t *aggregationMember, uint32_t *aggregationId)
 Gets the 802.1AB local port link aggregation for the specified interface. More...
 
open_error_t openapiLldpIntfNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *nextIfNum)
 Gets the next valid LLDP interface. More...
 
open_error_t openapiLldpIntfNotificationModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpNotMode)
 Gets the LLDP Notification mode for the specified interface. More...
 
open_error_t openapiLldpIntfNotificationModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpNotMode)
 Sets the LLDP Notification mode for the specified interface. More...
 
open_error_t openapiLldpIntfReceiveModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpRxMode)
 Gets the LLDP PDU reception mode for the specified interface. More...
 
open_error_t openapiLldpIntfReceiveModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpRxMode)
 Sets LLDP PDU reception mode on the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceChassisIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_CHASSIS_ID_SUBTYPE_t *chassisIdSubtype, open_buffdesc *chassisId)
 Gets the LLDP Remote Device Chassis Id and Chassis Id Subtype for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceEntryNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_IANA_ADDR_FAMILY_t *addressFamily, open_buffdesc *address, uint8_t *addrLen, OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_t *subType, uint32_t *intfId)
 Gets the LLDP Remote Device management address entry details for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceMaxFrameSizeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint16_t *maxFrameSize)
 Gets the 802.1AB remote port Maximum Frame Size for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceMgmtAddressNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_IANA_ADDR_FAMILY_t *addressFamily, open_buffdesc *address, uint8_t *addrLen)
 Gets the LLDP Remote Device next Management Address for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *remIndex, uint32_t *timeStamp)
 Gets the next LLDP Remote Device entry for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDevicePortDescGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *portDesc)
 Gets the LLDP Remote Device Port Description for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDevicePortIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_PORT_ID_SUBTYPE_t *portIdSubtype, open_buffdesc *portId)
 Gets the LLDP Remote Device Port Id and Port Id Subtype for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDevicePortVlanGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint16_t *portVlan)
 Gets the 802.1AB remote port VLAN for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceSysCapEnabledGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *sysCapEnabled)
 Gets the LLDP Remote Device System Capabilities Enabled for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceSysCapSuppGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *sysCapSupp)
 Gets the LLDP Remote Device System Capabilities Supported for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceSystemDescGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *systemDesc)
 Gets the LLDP Remote Device System Description for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceSystemNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *systemName)
 Gets the LLDP Remote Device System Name for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceTTLGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint32_t *ttl)
 Gets the LLDP Remote Device TTL for the specified interface. More...
 
open_error_t openapiLldpIntfRemoteDeviceVlanIdAndNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint32_t infoIndex, uint16_t *vlan, open_buffdesc *vlanName)
 Gets the 802.1AB local VLAN name for the specified VLAN. More...
 
open_error_t openapiLldpIntfRemotePortLinkAggregationInfoGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_BOOL_t *aggregationCapable, OPEN_BOOL_t *aggregationMember, uint32_t *aggregationId)
 Gets the 802.1AB remote port link aggregation for the specified interface. More...
 
open_error_t openapiLldpIntfTLVTransmitModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_TLV_TYPE_t tlvType, OPEN_CONTROL_t *tlvTransmitMode)
 Gets the LLDP optional TLVs transmit mode for the specified interface. More...
 
open_error_t openapiLldpIntfTLVTransmitModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_TLV_TYPE_t tlvType, OPEN_CONTROL_t tlvTransmitMode)
 Sets the LLDP optional TLVs transmit mode for the specified interface. More...
 
open_error_t openapiLldpIntfTransmitModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpTxMode)
 Gets the LLDP PDU transmit mode for the specified interface. More...
 
open_error_t openapiLldpIntfTransmitModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpTxMode)
 Sets LLDP PDU transmit mode on the specified interface. More...
 
open_error_t openapiLldpIntfTxMgmtAddrModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *mode)
 Gets the 802.1AB mgmt addr transmit mode for the specified interface. More...
 
open_error_t openapiLldpIntfTxMgmtAddrModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t mode)
 Sets the 802.1AB mgmt addr transmit mode for the specified interface. More...
 
open_error_t openapiLldpMedIntfConfigNotificationModeGet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_BOOL_t *mode)
 Get the interface LLDP-MED configuration notification mode. More...
 
open_error_t openapiLldpMedIntfConfigNotificationModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_BOOL_t mode)
 Set LLDP-MED configuration notification mode on valid LLDP interfaces. More...
 
open_error_t openapiLldpMedIntfModeGet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t *mode)
 Get the interface LLDP-MED administrative mode. More...
 
open_error_t openapiLldpMedIntfModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t mode)
 Set LLDP-MED administrative mode on valid LLDP interfaces. More...
 
open_error_t openapiLldpMedIntfTransmitTlvGet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_LLDP_MED_CAPABILITIES_t *cap)
 Get the interface LLDP-MED TLVs enabled for transmision. More...
 
open_error_t openapiLldpMedIntfTransmitTlvSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_LLDP_MED_CAPABILITIES_t *cap)
 Set LLDP-MED TLVs for transmision on valid LLDP interfaces. More...
 
open_error_t openapiLldpMedLocDeviceClassGet (openapiClientHandle_t *client_handle, uint32_t *deviceClass)
 Get local device's MED Classification. More...
 
open_error_t openapiLldpMedRemAssetIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *assetId)
 Get remote device's asset ID. More...
 
open_error_t openapiLldpMedRemFirmwareRevGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *firmwareRev)
 Get remote device's firmware revision. More...
 
open_error_t openapiLldpMedRemHardwareRevGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *hardwareRev)
 Get remote device's hardware revision. More...
 
open_error_t openapiLldpMedRemLocationInfoGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_LOCATION_SUBTYPE_t subType, open_buffdesc *locInfo)
 Get the location info received on this port for the given location subtype. More...
 
open_error_t openapiLldpMedRemMediaPolicyDscpGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *dscp)
 Get the DSCP associated with a particular policy type. More...
 
open_error_t openapiLldpMedRemMediaPolicyPriorityGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *priority)
 Get the priority associated with a particular policy type. More...
 
open_error_t openapiLldpMedRemMediaPolicyTaggedGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, OPEN_BOOL_t *tagged)
 Get the tagged bit associated with a particular policy type. More...
 
open_error_t openapiLldpMedRemMediaPolicyUnknownGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, OPEN_BOOL_t *unknown)
 Get the unknown bit associated with a particular policy type. More...
 
open_error_t openapiLldpMedRemMediaPolicyVlanIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *vlanId)
 Get the vlan id associated with a particular policy type. More...
 
open_error_t openapiLldpMedRemMfgNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *mfgName)
 Get the remote device's manufacturer's name. More...
 
open_error_t openapiLldpMedRemModelNameGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *modelName)
 Get the remote device's model name. More...
 
open_error_t openapiLldpMedRemoteCapabilitiesGet (openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_MED_CAPABILITIES_t *supportedCapabilities, OPEN_LLDP_MED_CAPABILITIES_t *enabledCapabilities)
 Get the LLDP-MED capabilities received from the remote device. More...
 
open_error_t openapiLldpMedRemoteDeviceClassGet (openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, uint32_t *deviceClass)
 Get the LLDP-MED device class of the remote device. More...
 
open_error_t openapiLldpMedRemoteModelNameGet (openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *modelName)
 Get the LLDP-MED model name of the remote device. More...
 
open_error_t openapiLldpMedRemoteModelNameSizeGet (openapiClientHandle_t *client_handle, uint32_t *size)
 Get the size in bytes for the open_buffdesc used to call openapiLldpMedRemoteModelNameGet(). More...
 
open_error_t openapiLldpMedRemPoeDeviceTypeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *deviceType)
 Get remote device's PoE device type connected to this port. More...
 
open_error_t openapiLldpMedRemPoePDPowerPriGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerPri)
 Get the remote port's PD power priority. More...
 
open_error_t openapiLldpMedRemPoePDPowerReqGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerReq)
 Get the remote port's PD power requirement. More...
 
open_error_t openapiLldpMedRemPoePDPowerSrcGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerSrc)
 Get the remote port's PD power source. More...
 
open_error_t openapiLldpMedRemPoePSEPowerAvGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerAv)
 Get remote ports PSE power value in tenths of watts. More...
 
open_error_t openapiLldpMedRemPoePSEPowerPriGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerPri)
 Get remote ports PSE power priority. More...
 
open_error_t openapiLldpMedRemPoePSEPowerSrcGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t *powerSrcType)
 Get remote ports PSE power source. More...
 
open_error_t openapiLldpMedRemSerialNumGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *serialNum)
 Get remote device's serial number. More...
 
open_error_t openapiLldpMedRemSoftwareRevGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, open_buffdesc *softwareRev)
 Get remote device's software revision. More...
 
open_error_t openapiLldpMgmtStrLenGet (openapiClientHandle_t *client_handle, uint32_t *strLen)
 Gets the LLDP Management string length. More...
 
open_error_t openapiLldpNotificationIntervalGet (openapiClientHandle_t *client_handle, uint32_t *interval)
 Gets the 802.1AB global notification interval limit. More...
 
open_error_t openapiLldpNotificationIntervalSet (openapiClientHandle_t *client_handle, uint32_t interval)
 Sets the 802.1AB global notification interval limit. More...
 
open_error_t openapiLldpPortIdSubtypeStringGet (openapiClientHandle_t *client_handle, uint32_t subtype, open_buffdesc *subtypeStr)
 Get a string representation for port ID Subtype. More...
 
open_error_t openapiLldpRemOrgDefOUIGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t infoIndex, open_buffdesc *oui)
 Get the organizationally defined OUI for specified entry. More...
 
open_error_t openapiLldpRemOrgDefSubtypeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t infoIndex, uint32_t *subtype)
 Get the organizationally defined subtype for specified entry. More...
 
open_error_t openapiLldpRemoteDeviceVlanInfoIndexGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint32_t infoIndex, uint32_t *nextInfoIndex)
 Gets the 802.1AB next information index for the matching VLAN entries for the specified interface. More...
 
open_error_t openapiLldpRemoteIntfFirstGet (openapiClientHandle_t *client_handle, uint32_t *ifNum)
 Get the first interface enable for LLDP receives. More...
 
open_error_t openapiLldpRemoteIntfNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *nextIfNum)
 Get the next valid interface enabled for LLDP receives. More...
 
open_error_t openapiLldpRemUnknownTLVEntryIsExists (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t tlvType, OPEN_BOOL_t *isExists)
 Determine if unknown TLV entry exists. More...
 
open_error_t openapiLldpRemUnknownTLVEntryNextGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t tlvType, uint32_t *nextTlvType)
 Get the next unknown TLV entry for the indicated remote data entry. More...
 
open_error_t openapiLldpRemUnknownTLVInfoGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timestamp, uint32_t tlvType, open_buffdesc *info)
 Get the TLV info for the specified remote entry. More...
 
open_error_t openapiLldpTxHoldGet (openapiClientHandle_t *client_handle, uint32_t *holdCount)
 Gets the 802.1AB global transmit hold muliplier. More...
 
open_error_t openapiLldpTxHoldSet (openapiClientHandle_t *client_handle, uint32_t holdCount)
 Sets the 802.1AB global transmit hold muliplier. More...
 
open_error_t openapiLldpTxIntervalGet (openapiClientHandle_t *client_handle, uint32_t *interval)
 Gets the 802.1AB global transmit interval. More...
 
open_error_t openapiLldpTxIntervalSet (openapiClientHandle_t *client_handle, uint32_t interval)
 Sets the 802.1AB global transmit interval. More...
 
open_error_t openapiLldpTxReinitDelayGet (openapiClientHandle_t *client_handle, uint32_t *delay)
 Gets the 802.1AB global transmit reinit delay. More...
 
open_error_t openapiLldpTxReinitDelaySet (openapiClientHandle_t *client_handle, uint32_t delay)
 Sets the 802.1AB global transmit reinit delay. More...
 
open_error_t openapiLldpXMedFastStartRepeatCountGet (openapiClientHandle_t *client_handle, uint32_t *count)
 Gets the fast start repeat count. More...
 
open_error_t openapiLldpXMedFastStartRepeatCountSet (openapiClientHandle_t *client_handle, uint32_t count)
 Sets the fast start repeat count. More...
 
open_error_t openapiLldpXMedLocMediaPolicyDscpGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *dscp)
 Gets the DSCP associated with a particular policy type. More...
 
open_error_t openapiLldpXMedLocMediaPolicyPriorityGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *priority)
 Gets the priority associated with a particular policy type. More...
 
open_error_t openapiLldpXMedLocMediaPolicyTaggedGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, OPEN_BOOL_t *taggedStatus)
 Gets the tagged bit associated with a particular policy type. More...
 
open_error_t openapiLldpXMedLocMediaPolicyVlanIDGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t policyAppType, uint32_t *vlanId)
 Gets the vlan id associated with a particular policy type. More...
 

Detailed Description

Enumeration Type Documentation

Enumerator
OPEN_LLDP_CHASSIS_ID_SUBTYPE_CHASSIS_COMP 

Chassis Component.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_INTF_ALIAS 

Interface Alias.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_PORT_COMP 

Port Component.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_MAC_ADDR 

MAC Address.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_NET_ADDR 

Network Address.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_INTF_NAME 

Interface Name.

OPEN_LLDP_CHASSIS_ID_SUBTYPE_LOCAL 

Local.

Definition at line 56 of file openapi_lldp.h.

Enumerator
OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_RESERVED 

Reserved.

OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_IPV4 

IPv4.

OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_IPV6 

IPv6.

OPEN_LLDP_IANA_ADDR_FAMILY_NUMBER_802 

802

Definition at line 90 of file openapi_lldp.h.

Enumerator
OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_UNKNOWN 

Unknwon subtype.

OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_IF_INDEX 

Interface index subtype.

OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_PORT_NUMBER 

Port number subtype.

Definition at line 118 of file openapi_lldp.h.

Enumerator
OPEN_LLDP_PORT_ID_SUBTYPE_INTF_ALIAS 

Interface Alias.

OPEN_LLDP_PORT_ID_SUBTYPE_PORT_COMP 

Port Component.

OPEN_LLDP_PORT_ID_SUBTYPE_MAC_ADDR 

MAC Address.

OPEN_LLDP_PORT_ID_SUBTYPE_NET_ADDR 

Network Address.

OPEN_LLDP_PORT_ID_SUBTYPE_INTF_NAME 

Interface Name.

OPEN_LLDP_PORT_ID_SUBTYPE_AGENT_ID 

Agent Circuit Id.

OPEN_LLDP_PORT_ID_SUBTYPE_LOCAL 

Local.

Definition at line 67 of file openapi_lldp.h.

Enumerator
OPEN_LLDP_SYS_DESC_TLV 

System Description TLV.

OPEN_LLDP_SYS_NAME_TLV 

System Name TLV.

OPEN_LLDP_SYS_CAPABILITIES_TLV 

System Capabilities TLV.

OPEN_LLDP_PORT_DESC_TLV 

Port Description TLV.

OPEN_LLDP_MGMT_ADDRESS_TLV 

Management Address TLV.

OPEN_LLDP_PORT_VLAN_TLV 

Port VLAN ID TLV.

OPEN_LLDP_VLAN_NAME_TLV 

VLAN Name TLV.

OPEN_LLDP_MAXIMUM_FRAME_SIZE_TLV 

Maximum Frame Size TLV.

OPEN_LLDP_LINK_AGGREGATION_TLV 

Link Aggregation TLV.

OPEN_LLDP_LAST_TLV 

Unused.

Definition at line 77 of file openapi_lldp.h.

Enumerator
OPEN_UNKNOWN_LOCATION_SUBTYPE 

Unknown location.

OPEN_COORDINATE_BASED_LOCATION_SUBTYPE 

Co ordinate based location.

OPEN_CIVIC_ADDRESS_LOCATION_SUBTYPE 

Civic address location.

OPEN_ELIN_LOCATION_SUBTYPE 

Elin location.

Definition at line 110 of file openapi_lldp.h.

Enumerator
OPEN_UNKNOWN_POLICY_APPTYPE 

Unknwon policy.

OPEN_VOICE_POLICY_APPTYPE 

Voice policy.

OPEN_VOICE_SIGNALING_POLICY_APPTYPE 

Voice signaling polcy.

OPEN_GUEST_VOICE_POLICY_APPTYPE 

Guest voice policy.

OPEN_GUEST_VOICE_SIGNALING_POLICY_APPTYPE 

Guest voice signaling policy.

OPEN_SOFTPHONE_VOICE_POLICY_APPTYPE 

Softphone voice policy.

OPEN_VIDEO_CONFERENCING_POLICY_APPTYPE 

Video conferencing policy.

OPEN_STREAMING_VIDEO_POLICY_APPTYPE 

Streaming video policy.

OPEN_VIDEO_SIGNALING_POLICY_APPTYPE 

Video signaling policy.

Definition at line 97 of file openapi_lldp.h.

Function Documentation

open_error_t openapiLldpChassisIdSubtypeStringGet ( openapiClientHandle_t client_handle,
OPEN_LLDP_CHASSIS_ID_SUBTYPE_t  subtype,
open_buffdesc subtypeStr 
)

Get a string representation for Chassis ID Subtype.

Parameters
[in]client_handleclient handle from registration API
[in]subtypeChassis ID subtype
[out]subtypeStrSubtype string
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3LocPortAutoNegAdvertizedCapGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc advrtCap 
)

Get port's auto negotiation advertized capability as a string.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]advrtCapInterface auto negotiation advertized capability
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3LocPortAutoNegEnabledGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t isEnabled 
)

Get port's auto negotiation enabled status.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]isEnabledInterface auto negotiation enabled status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3LocPortAutoNegOperMauTypeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  type 
)

Get port's auto negotiation operational MAU Type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]typeMAU type
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3LocPortAutoNegSupportedGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t isCapable 
)

Get the port's auto negotiation capability.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]isCapableInterface auto negotiation capability status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3RemPortAutoNegAdvertizedCapGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc advrtCap 
)

Get remote port's auto negotiation advertized capability as a string.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]advrtCapRemote port auto negotiation advertized capability
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3RemPortAutoNegEnabledGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_BOOL_t isEnabled 
)

Get remote port's auto negotiation enabled status.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]isEnabledRemote port auto negotiation enabled status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3RemPortAutoNegOperMauStringGet ( openapiClientHandle_t client_handle,
uint32_t  mauType,
open_buffdesc mauString 
)

Get remote port's auto negotiation operational MAU in string format.

Parameters
[in]client_handleclient handle from registration API
[in]mauTypeMAU Type
[out]mauStringMAU type in string
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3RemPortAutoNegOperMauTypeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  type 
)

Get remote port's auto negotiation operational MAU Type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]typeMAU type
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpdot3RemPortAutoNegSupportedGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_BOOL_t isCapable 
)

Get remote port's auto negotiation capability.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]isCapableRemote port auto negotiation capability status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceChassisIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDP_CHASSIS_ID_SUBTYPE_t chassisIdSubtype,
open_buffdesc chassisId 
)

Gets the LLDP Local Device Chassis Id and Chassis Id Subtype for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]chassisIdSubtypeChassis Id Subtype of type OPEN_LLDP_CHASSIS_ID_SUBTYPE_t
[out]chassisIdChassis Id
Note
Maximum size for chassisId is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEChassis Id and Subtype get successful.
OPEN_E_FAILChassis Id and Subtype get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceMaxFrameSizeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint16_t *  maxFrameSize 
)

Gets the 802.1AB local Maximum Frame Size for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[out]maxFrameSizeMaximum Frame Size.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceMgmtAddressGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDP_IANA_ADDR_FAMILY_t addressFamily,
open_buffdesc address 
)

Gets the LLDP Local Device Management Address for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in,out]addressFamilyAddress Family
[in,out]addressAddress
Note
Maximum size for address is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEManagement Address get successful.
OPEN_E_FAILManagement Address get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDevicePortDescGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc portDesc 
)

Gets the LLDP Local Device Port Description for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]portDescLocal Device Port Description
Note
Maximum size for portDesc is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEPort Description get successful.
OPEN_E_FAILPort Description get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDevicePortIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDP_PORT_ID_SUBTYPE_t portIdSubtype,
open_buffdesc portId 
)

Gets the LLDP Local Device Port Id and Port Id Subtype for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]portIdSubtypePort Id Subtype of type OPEN_LLDP_PORT_ID_SUBTYPE_t
[out]portIdPort Id
Note
Maximum size for portId is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEPort Id and Subtype get successful.
OPEN_E_FAILPort Id and Subtype get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDevicePortVlanGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint16_t *  portVlan 
)

Gets the 802.1AB local port VLAN for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[out]portVlanPort VLAN ID.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_UNAVAILLLDP not supported on this interface or LLDP transmit mode is disabled.
OPEN_E_INTERNALOther Internal Failure.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceSysCapEnabledGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc sysCapEnabled 
)

Gets the LLDP Local Device System Capabilities Enabled for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]sysCapEnabledLocal Device System Capabilities Enabled
Note
Maximum size for sysCapEnabled is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEEnabled Capabilities get successful.
OPEN_E_FAILSupported Capabilities get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceSysCapSuppGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc sysCapSupp 
)

Gets the LLDP Local Device System Capabilities Supported for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]sysCapSuppLocal Device System Capabilities Supported
Note
Maximum size for sysCapSupp is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESupported Capabilities get successful.
OPEN_E_FAILSupported Capabilities get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceSystemDescGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc systemDesc 
)

Gets the LLDP Local Device System Description for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]systemDescLocal Device System Description
Note
Maximum size for systemDesc is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESystem Description get successful.
OPEN_E_FAILSystem Description get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceSystemNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_buffdesc systemName 
)

Gets the LLDP Local Device System Name for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]systemNameRemote Device System Name
Note
Maximum size for systemName is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESystem Name get successful.
OPEN_E_FAILSystem Name get failed.
OPEN_E_UNAVAILLLDP not supported on this interface or system capabilities are not available as transmit mode is disabled.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceVlanGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_VLAN_LIST_t vlanList 
)

Gets the 802.1AB local VLANs for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[out]vlanListVLAN ID List.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalDeviceVlanNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  vlanId,
open_buffdesc vlanName 
)

Gets the 802.1AB local VLAN name for the specified VLAN.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]vlanIdVLAN Id.
[out]vlanNameVLAN Name.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfLocalPortLinkAggregationInfoGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t aggregationCapable,
OPEN_BOOL_t aggregationMember,
uint32_t *  aggregationId 
)

Gets the 802.1AB local port link aggregation for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[out]aggregationCapableIf the interface is capable for LAG or not.
[out]aggregationMemberIf the interface is added in LAG or not.
[out]aggregationIdLAG ID if the interface is added in LAG.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  nextIfNum 
)

Gets the next valid LLDP interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]nextIfNumID of the next interface
Return values
OPEN_E_NONENext valid LLDP interface get successful.
OPEN_E_UNAVAILNo next valid LLDP interface found.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfNotificationModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t lldpNotMode 
)

Gets the LLDP Notification mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]lldpNotModeLLDP Notification mode
Return values
OPEN_E_NONENotification mode get successful.
OPEN_E_FAILNotification mode get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfNotificationModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t  lldpNotMode 
)

Sets the LLDP Notification mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]lldpNotModeLLDP Notification mode
Return values
OPEN_E_NONENotification mode set successful.
OPEN_E_FAILNotification mode set failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed. Invalid lldpNotMode can cause this return code.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfReceiveModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t lldpRxMode 
)

Gets the LLDP PDU reception mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]lldpRxModeLLDP receive mode
Return values
OPEN_E_NONEReceive mode get successful .
OPEN_E_FAILReceive mode get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed. NULL lldpRxMode can cause this return code.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfReceiveModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t  lldpRxMode 
)

Sets LLDP PDU reception mode on the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]lldpRxModeLLDP receive mode
Return values
OPEN_E_NONEReceive mode set successful.
OPEN_E_FAILReceive mode set failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed. Invalid lldpRxMode can cause this return code.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceChassisIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_LLDP_CHASSIS_ID_SUBTYPE_t chassisIdSubtype,
open_buffdesc chassisId 
)

Gets the LLDP Remote Device Chassis Id and Chassis Id Subtype for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]chassisIdSubtypeChassis Id Subtype of type OPEN_LLDP_CHASSIS_ID_SUBTYPE_t
[out]chassisIdChassis Id.
Note
Maximum size for chassisId is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEChassis Id and Subtype get successful.
OPEN_E_FAILChassis Id and Subtype get failed.
OPEN_E_PARAMError in parameter passed.
OPEN_E_INTERNALOther internal error.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceEntryNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_LLDP_IANA_ADDR_FAMILY_t addressFamily,
open_buffdesc address,
uint8_t *  addrLen,
OPEN_LLDP_MAN_ADDR_IF_SUBTYPE_t subType,
uint32_t *  intfId 
)

Gets the LLDP Remote Device management address entry details for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in,out]addressFamilyAddress Family. Pass 0 for the first time.
[in,out]addressAddress Initialize portDesc:pstart and size with a char buffer of length returned by openapiLldpMgmtStrLenGet()
[in,out]addrLenAddress Length. Passing 0 will return the first address
[out]subTypeInterface subtype
[out]intfIdInterface ID
Note
Maximum size for address is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEManagement Address get successful.
OPEN_E_FAILManagement Address get failed.
OPEN_E_UNAVAILNext Management Address not available.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceMaxFrameSizeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
uint16_t *  maxFrameSize 
)

Gets the 802.1AB remote port Maximum Frame Size for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[out]maxFrameSizeMaximum Frame Size.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceMgmtAddressNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_LLDP_IANA_ADDR_FAMILY_t addressFamily,
open_buffdesc address,
uint8_t *  addrLen 
)

Gets the LLDP Remote Device next Management Address for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in,out]addressFamilyAddress Family. Pass 0 for the first time.
[in,out]addressAddress Initialize portDesc:pstart and size with a char buffer of length returned by openapiLldpMgmtStrLenGet()
[in,out]addrLenAddress Length. Passing 0 will return the first address
Note
Maximum size for address is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEManagement Address get successful.
OPEN_E_FAILManagement Address get failed.
OPEN_E_UNAVAILNext Management Address not available.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  remIndex,
uint32_t *  timeStamp 
)

Gets the next LLDP Remote Device entry for the specified interface.

      Passing 0 for the remIndex and timeStamp returns the first Neighbor entry.
Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in,out]remIndexRemote Device Index
[in,out]timeStampTimestamp when the entry was added
Return values
OPEN_E_NONENeighbor entry get successful.
OPEN_E_FAILNext Neighbor entry is not present.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDevicePortDescGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc portDesc 
)

Gets the LLDP Remote Device Port Description for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]portDescRemote Device Port Description
Note
Maximum size for portDesc is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEPort Description get successful.
OPEN_E_FAILPort Description get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDevicePortIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_LLDP_PORT_ID_SUBTYPE_t portIdSubtype,
open_buffdesc portId 
)

Gets the LLDP Remote Device Port Id and Port Id Subtype for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]portIdSubtypePort Id Subtype of type OPEN_LLDP_PORT_ID_SUBTYPE_t
[out]portIdPort Id
Note
Maximum size for portId is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEPort Id and Subtype get successful.
OPEN_E_FAILPort Id and Subtype get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDevicePortVlanGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
uint16_t *  portVlan 
)

Gets the 802.1AB remote port VLAN for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[out]portVlanPort VLAN ID.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceSysCapEnabledGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc sysCapEnabled 
)

Gets the LLDP Remote Device System Capabilities Enabled for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]sysCapEnabledRemote Device System Capabilities Enabled
Note
Maximum size for sysCapEnabled is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONEEnabled Capabilities get successful.
OPEN_E_FAILSupported Capabilities get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceSysCapSuppGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc sysCapSupp 
)

Gets the LLDP Remote Device System Capabilities Supported for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]sysCapSuppRemote Device System Capabilities Supported
Note
Maximum size for sysCapSupp is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESupported Capabilities get successful.
OPEN_E_FAILSupported Capabilities get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceSystemDescGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc systemDesc 
)

Gets the LLDP Remote Device System Description for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]systemDescRemote Device System Description
Note
Maximum size for systemDesc is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESystem Description get successful.
OPEN_E_FAILSystem Description get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceSystemNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc systemName 
)

Gets the LLDP Remote Device System Name for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]systemNameRemote Device System Name
Note
Maximum size for systemName is determined by calling openapiLldpMgmtStrLenGet().
Return values
OPEN_E_NONESystem Name get successful.
OPEN_E_FAILSystem Name get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceTTLGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
uint32_t *  ttl 
)

Gets the LLDP Remote Device TTL for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]remIndexRemote Device Index Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]ttlRemote Device TTL
Return values
OPEN_E_NONETTL get successful.
OPEN_E_FAILTTL get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemoteDeviceVlanIdAndNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
uint32_t  infoIndex,
uint16_t *  vlan,
open_buffdesc vlanName 
)

Gets the 802.1AB local VLAN name for the specified VLAN.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]infoIndexInfo index.
[out]vlanVLAN Id.
[out]vlanNameVLAN Name.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfRemotePortLinkAggregationInfoGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_BOOL_t aggregationCapable,
OPEN_BOOL_t aggregationMember,
uint32_t *  aggregationId 
)

Gets the 802.1AB remote port link aggregation for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[out]aggregationCapableIf the interface is capable for LAG or not.
[out]aggregationMemberIf the interface is added in LAG or not.
[out]aggregationIdLAG ID if the interface is added in LAG.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTLVTransmitModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDP_TLV_TYPE_t  tlvType,
OPEN_CONTROL_t tlvTransmitMode 
)

Gets the LLDP optional TLVs transmit mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]tlvTypeLLDP TLV of type OPEN_LLDP_TLV_TYPE_t
[out]tlvTransmitModeTLV transmit mode
Return values
OPEN_E_NONETLVs transmit mode get successful.
OPEN_E_FAILTLVs transmit mode get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTLVTransmitModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDP_TLV_TYPE_t  tlvType,
OPEN_CONTROL_t  tlvTransmitMode 
)

Sets the LLDP optional TLVs transmit mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]tlvTypeLLDP TLV of type OPEN_LLDP_TLV_TYPE_t
[in]tlvTransmitModeTLV transmit mode
Return values
OPEN_E_NONETLVs transmit mode set successful.
OPEN_E_FAILTLVs transmit mode set failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTransmitModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t lldpTxMode 
)

Gets the LLDP PDU transmit mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[out]lldpTxModeLLDP transmit mode
Return values
OPEN_E_NONETransmit mode get successful .
OPEN_E_FAILTransmit mode get failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed. NULL lldpTxMode can cause this return code.
OPEN_E_INTERNALOther Internal Failure.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTransmitModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t  lldpTxMode 
)

Sets LLDP PDU transmit mode on the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumID of the interface
[in]lldpTxModeLLDP transmit mode
Return values
OPEN_E_NONETransmit mode set successful.
OPEN_E_FAILTransmit mode set failed.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMError in parameter passed. Invalid lldpTxMode can cause this return code.
OPEN_E_INTERNALOther Internal Failure.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTxMgmtAddrModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t mode 
)

Gets the 802.1AB mgmt addr transmit mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]modeTransmit mgmt addr TLV mode
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpIntfTxMgmtAddrModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  mode 
)

Sets the 802.1AB mgmt addr transmit mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]modeTransmit mgmt addr TLV mode
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfConfigNotificationModeGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_BOOL_t mode 
)

Get the interface LLDP-MED configuration notification mode.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[out]modenotification mode Possible values OPEN_BOOL_t
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfConfigNotificationModeSet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_BOOL_t  mode 
)

Set LLDP-MED configuration notification mode on valid LLDP interfaces.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface or OPEN_ALL_INTERFACES for all interfaces
[in]modenotification mode Possible values OPEN_BOOL_t
Return values
OPEN_E_NONESet successful.
OPEN_E_FAILSet failed.
OPEN_E_PARAMError in parameter passed.
Note
Calling this API will change the running configuration of the switch.
Configuration notification mode is set on all valid LLDP interfaces, if OPEN_ALL_INTERFACES is passed in for the 'intf' parameter.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfModeGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_CONTROL_t mode 
)

Get the interface LLDP-MED administrative mode.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[out]modelldp mode Possible values OPEN_CONTROL_t
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfModeSet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_CONTROL_t  mode 
)

Set LLDP-MED administrative mode on valid LLDP interfaces.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface or OPEN_ALL_INTERFACES for all interfaces
[in]modelldp mode Possible values OPEN_CONTROL_t
Return values
OPEN_E_NONESet successful.
OPEN_E_FAILSet failed.
OPEN_E_PARAMError in parameter passed.
Note
Calling this API will change the running configuration of the switch.
Administrative mode is set on all valid LLDP interfaces, if OPEN_ALL_INTERFACES is passed in for the 'intf' parameter.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfTransmitTlvGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_LLDP_MED_CAPABILITIES_t cap 
)

Get the interface LLDP-MED TLVs enabled for transmision.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[out]capbitmask of TLVs enabled
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.
Note
The following bitmask values are provided for convenience.
  • Bitmask value OPEN_LLDP_MED_CAP_CAPABILITIES_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_NETWORKPOLICY_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_LOCATION_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PSE_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PD_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_INVENTORY_BITMASK

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedIntfTransmitTlvSet ( openapiClientHandle_t client_handle,
uint32_t  intf,
OPEN_LLDP_MED_CAPABILITIES_t cap 
)

Set LLDP-MED TLVs for transmision on valid LLDP interfaces.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface or OPEN_ALL_INTERFACES for all interfaces
[in]capbitmask of TLVs to be enabled
Return values
OPEN_E_NONESet successful.
OPEN_E_FAILSet failed.
OPEN_E_PARAMError in parameter passed.
Note
Calling this API will change the running configuration of the switch.
TLV bitmask for transmission is set on all valid LLDP interfaces, if OPEN_ALL_INTERFACES is passed in for the 'intf' parameter.
The following bitmask values are provided for convenience.
  • Bitmask value OPEN_LLDP_MED_CAP_CAPABILITIES_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_NETWORKPOLICY_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_LOCATION_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PSE_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PD_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_INVENTORY_BITMASK

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedLocDeviceClassGet ( openapiClientHandle_t client_handle,
uint32_t *  deviceClass 
)

Get local device's MED Classification.

Parameters
[in]client_handleclient handle from registration API
[out]deviceClassDevice class
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemAssetIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc assetId 
)

Get remote device's asset ID.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]assetIdRemote device asset ID
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemFirmwareRevGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc firmwareRev 
)

Get remote device's firmware revision.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]firmwareRevRemote device firmware revision
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemHardwareRevGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc hardwareRev 
)

Get remote device's hardware revision.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]hardwareRevRemote device hardware revision
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemLocationInfoGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_LOCATION_SUBTYPE_t  subType,
open_buffdesc locInfo 
)

Get the location info received on this port for the given location subtype.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]subTypeLoaction subtype
[out]locInfoLocation information
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMediaPolicyDscpGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  dscp 
)

Get the DSCP associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]policyAppTypeType of application policy
[out]dscpDSCP value
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMediaPolicyPriorityGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  priority 
)

Get the priority associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]policyAppTypeType of application policy
[out]priorityPriority
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMediaPolicyTaggedGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
OPEN_BOOL_t tagged 
)

Get the tagged bit associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]policyAppTypeType of application policy
[out]taggedTagged bit status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMediaPolicyUnknownGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
OPEN_BOOL_t unknown 
)

Get the unknown bit associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]policyAppTypeType of application policy
[out]unknownUnknown bit status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMediaPolicyVlanIdGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  vlanId 
)

Get the vlan id associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]policyAppTypeType of application policy
[out]vlanIdLocation information
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemMfgNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc mfgName 
)

Get the remote device's manufacturer's name.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]mfgNameManufacturer's name as a string
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemModelNameGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc modelName 
)

Get the remote device's model name.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]modelNameModel name as a string
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemoteCapabilitiesGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
uint32_t  remIndex,
uint32_t  timeStamp,
OPEN_LLDP_MED_CAPABILITIES_t supportedCapabilities,
OPEN_LLDP_MED_CAPABILITIES_t enabledCapabilities 
)

Get the LLDP-MED capabilities received from the remote device.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]supportedCapabilitiesbitmask of TLVs supported
[out]enabledCapabilitiesbitmask of TLVs enabled
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.
Note
The following bitmask values are provided for convenience.
  • Bitmask value OPEN_LLDP_MED_CAP_CAPABILITIES_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_NETWORKPOLICY_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_LOCATION_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PSE_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_EXT_PD_BITMASK
  • Bitmask value OPEN_LLDP_MED_CAP_INVENTORY_BITMASK

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemoteDeviceClassGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
uint32_t  remIndex,
uint32_t  timeStamp,
uint32_t *  deviceClass 
)

Get the LLDP-MED device class of the remote device.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]deviceClassclass of the remote device
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemoteModelNameGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
uint32_t  remIndex,
uint32_t  timeStamp,
open_buffdesc modelName 
)

Get the LLDP-MED model name of the remote device.

Parameters
[in]client_handleclient handle from registration API
[in]intfID of the interface
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value
[out]modelNamemodel name of the remote device
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.
Note
Size of buffer is returned by openapiLldpMedRemoteModelNameSizeGet(). Using a smaller buffer may result in truncated data being returned.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemoteModelNameSizeGet ( openapiClientHandle_t client_handle,
uint32_t *  size 
)

Get the size in bytes for the open_buffdesc used to call openapiLldpMedRemoteModelNameGet().

Parameters
[in]client_handleclient handle from registration API
[out]sizenumber of bytes to allocate in buffer
Return values
OPEN_E_NONEGet successful.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.14

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoeDeviceTypeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  deviceType 
)

Get remote device's PoE device type connected to this port.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]deviceTypeRemote device POE device type
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePDPowerPriGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerPri 
)

Get the remote port's PD power priority.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerPriPower priority
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePDPowerReqGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerReq 
)

Get the remote port's PD power requirement.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerReqPower requirement
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePDPowerSrcGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerSrc 
)

Get the remote port's PD power source.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerSrcPower source
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePSEPowerAvGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerAv 
)

Get remote ports PSE power value in tenths of watts.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerAvAvailable power
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePSEPowerPriGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerPri 
)

Get remote ports PSE power priority.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerPriPower priority
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemPoePSEPowerSrcGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t *  powerSrcType 
)

Get remote ports PSE power source.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]powerSrcTypePower soruce type
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemSerialNumGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc serialNum 
)

Get remote device's serial number.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]serialNumRemote device serial number
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMedRemSoftwareRevGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
open_buffdesc softwareRev 
)

Get remote device's software revision.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[out]softwareRevRemote device software revision
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpMgmtStrLenGet ( openapiClientHandle_t client_handle,
uint32_t *  strLen 
)

Gets the LLDP Management string length.

This length is used to allocate and initialize the open_buffdesc type argument buffers used by various LLDP OpEN APIs.

Parameters
[in]client_handleclient handle from registration API
[out]strLenstring length
Return values
OPEN_E_NONEString length get successful.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.1

Examples:
lldp_example.c.
open_error_t openapiLldpNotificationIntervalGet ( openapiClientHandle_t client_handle,
uint32_t *  interval 
)

Gets the 802.1AB global notification interval limit.

Parameters
[in]client_handleclient handle from registration API
[out]intervalInterval in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpNotificationIntervalSet ( openapiClientHandle_t client_handle,
uint32_t  interval 
)

Sets the 802.1AB global notification interval limit.

Parameters
[in]client_handleclient handle from registration API
[in]intervalInterval in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpPortIdSubtypeStringGet ( openapiClientHandle_t client_handle,
uint32_t  subtype,
open_buffdesc subtypeStr 
)

Get a string representation for port ID Subtype.

Parameters
[in]client_handleclient handle from registration API
[in]subtypePort ID subtype
[out]subtypeStrSubtype string
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemOrgDefOUIGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t  infoIndex,
open_buffdesc oui 
)

Get the organizationally defined OUI for specified entry.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]infoIndexInfo index
[out]ouiOrganization unique identifier in XX:XX:XX format
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemOrgDefSubtypeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t  infoIndex,
uint32_t *  subtype 
)

Get the organizationally defined subtype for specified entry.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]infoIndexInfo index
[out]subtypeOrganization defined subtype
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemoteDeviceVlanInfoIndexGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timeStamp,
uint32_t  infoIndex,
uint32_t *  nextInfoIndex 
)

Gets the 802.1AB next information index for the matching VLAN entries for the specified interface.

Parameters
[in]client_handleClient handle from registration API.
[in]ifNumInterface number.
[in]remIndexRemote Device Index. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]timeStampRemote Device entry timestamp. Use openapiLldpIntfRemoteDeviceNextGet() to get the value.
[in]infoIndexInfo index.
[out]nextInfoIndexNetx info index.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_UNAVAILLLDP not supported on this interface.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.28

Examples:
lldp_example.c.
open_error_t openapiLldpRemoteIntfFirstGet ( openapiClientHandle_t client_handle,
uint32_t *  ifNum 
)

Get the first interface enable for LLDP receives.

Parameters
[in]client_handleclient handle from registration API
[out]ifNumFirst valid interface
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemoteIntfNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  nextIfNum 
)

Get the next valid interface enabled for LLDP receives.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumFirst valid interface number
[out]nextIfNumNext valid interface number
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemUnknownTLVEntryIsExists ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t  tlvType,
OPEN_BOOL_t isExists 
)

Determine if unknown TLV entry exists.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]tlvTypeTLV type
[out]isExistsEntry existtance status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemUnknownTLVEntryNextGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t  tlvType,
uint32_t *  nextTlvType 
)

Get the next unknown TLV entry for the indicated remote data entry.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]tlvTypeTLV type
[out]nextTlvTypeNext TLV type
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
if tlvType is 0, this API will return first entry.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpRemUnknownTLVInfoGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  remIndex,
uint32_t  timestamp,
uint32_t  tlvType,
open_buffdesc info 
)

Get the TLV info for the specified remote entry.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]remIndexIndex associated with this remote entry
[in]timestampTime Stamp associated with this remote entry
[in]tlvTypeTLV type
[out]infoOrganization defined info
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxHoldGet ( openapiClientHandle_t client_handle,
uint32_t *  holdCount 
)

Gets the 802.1AB global transmit hold muliplier.

Parameters
[in]client_handleclient handle from registration API
[out]holdCountHold multiplier
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxHoldSet ( openapiClientHandle_t client_handle,
uint32_t  holdCount 
)

Sets the 802.1AB global transmit hold muliplier.

Parameters
[in]client_handleclient handle from registration API
[in]holdCountHold multiplier
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxIntervalGet ( openapiClientHandle_t client_handle,
uint32_t *  interval 
)

Gets the 802.1AB global transmit interval.

Parameters
[in]client_handleclient handle from registration API
[out]intervalInterval in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxIntervalSet ( openapiClientHandle_t client_handle,
uint32_t  interval 
)

Sets the 802.1AB global transmit interval.

Parameters
[in]client_handleclient handle from registration API
[in]intervalInterval in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxReinitDelayGet ( openapiClientHandle_t client_handle,
uint32_t *  delay 
)

Gets the 802.1AB global transmit reinit delay.

Parameters
[in]client_handleclient handle from registration API
[out]delayDelay in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpTxReinitDelaySet ( openapiClientHandle_t client_handle,
uint32_t  delay 
)

Sets the 802.1AB global transmit reinit delay.

Parameters
[in]client_handleclient handle from registration API
[in]delayDelay in seconds
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedFastStartRepeatCountGet ( openapiClientHandle_t client_handle,
uint32_t *  count 
)

Gets the fast start repeat count.

Parameters
[in]client_handleclient handle from registration API
[out]countFast start repeat count
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedFastStartRepeatCountSet ( openapiClientHandle_t client_handle,
uint32_t  count 
)

Sets the fast start repeat count.

Parameters
[in]client_handleclient handle from registration API
[in]countFast start repeat count
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedLocMediaPolicyDscpGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  dscp 
)

Gets the DSCP associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]policyAppTypePolicy application type
[out]dscpDscp vlaue
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedLocMediaPolicyPriorityGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  priority 
)

Gets the priority associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]policyAppTypePolicy application type
[out]priorityPriority
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedLocMediaPolicyTaggedGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
OPEN_BOOL_t taggedStatus 
)

Gets the tagged bit associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]policyAppTypePolicy application type
[out]taggedStatusTagged Status
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.
open_error_t openapiLldpXMedLocMediaPolicyVlanIDGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_LLDPXMED_POLICY_APPTYPE_VALUE_t  policyAppType,
uint32_t *  vlanId 
)

Gets the vlan id associated with a particular policy type.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]policyAppTypePolicy application type
[out]vlanIdVlan Id
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
lldp_example.c.