|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.9.0.2
|
Macros | |
| #define | OPEN_MANUFACTURER_SIZE 6 + 1 |
| #define | OPEN_OS_VERSION_SIZE 60 |
| #define | OPEN_SYSTEM_PARAM_SIZE 256 |
| #define | OPENAPI_HW_VERSION_STR_SIZE 128 |
| #define | OPENAPI_OS_REVISION_STR_SIZE 100 |
Enumerations | |
| enum | OPEN_PROTOCOL_MODE_t { OPEN_PROTOCOL_MODE_INVALID = 0, OPEN_PROTOCOL_MODE_NONE = 1, OPEN_PROTOCOL_MODE_BOOTP = 2, OPEN_PROTOCOL_MODE_DHCP = 3 } |
| OpEN uses this enumeration to define network connectivity protocol modes. More... | |
Functions | |
| open_error_t | openapiArpInfoNextGet (openapiClientHandle_t *client_handle, uint32_t *arpIndex, uint32_t *intf, open_inet_addr_t *ipAddr, open_buffdesc *mac_addr) |
| Get the next ARP info entry. | |
| open_error_t | openapiClientResourceTrackingSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t trackingControl) |
| Sets resource tracking flag for an OpEN API client. | |
| open_error_t | openapiLicenseFeatureStatusGet (openapiClientHandle_t *client_handle, open_buffdesc *featureName, OPEN_BOOL_t *enabled) |
| Get license status for component. | |
| open_error_t | openapiLineTerminalLengthDefaultSet (openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine) |
| Set the terminal length of an access line to default. | |
| open_error_t | openapiLineTerminalLengthGet (openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, uint32_t *termLength) |
| Get the terminal length of an access line. | |
| open_error_t | openapiLineTerminalLengthSet (openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, uint32_t termLength) |
| Set the terminal length of an access line. | |
| open_error_t | openapiMaintenanceLevelGet (openapiClientHandle_t *client_handle, open_buffdesc *maintenanceLevel) |
| Get the maintenance level of the system. | |
| open_error_t | openapiManufacturerGet (openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *manufacturer) |
| Get the manufacturer. | |
| open_error_t | openapiNetworkMgmtVlanGet (openapiClientHandle_t *client_handle, uint32_t *mgmtVlan) |
| Get the network management VLAN of the system. | |
| open_error_t | openapiNetworkMgmtVlanSet (openapiClientHandle_t *client_handle, uint32_t mgmtVlan) |
| Set the network management VLAN on the system. | |
| open_error_t | openapiNetworkPortGatewayIPv4AddrGet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Get the network port gateway IPv4 address. | |
| open_error_t | openapiNetworkPortIPv4AddrGet (openapiClientHandle_t *client_handle, open_inet_addr_t *ipAddr, open_inet_addr_t *netMask) |
| Get the network port IPv4 address and subnet mask. | |
| open_error_t | openapiNetworkPortIPv4ParametersDelete (openapiClientHandle_t *client_handle) |
| Delete network port IPv4 parameters. | |
| open_error_t | openapiNetworkPortIPv4ParametersSet (openapiClientHandle_t *client_handle, open_inet_addr_t *ipAddr, open_inet_addr_t *netMask, open_inet_addr_t *gateway) |
| Set the network parameters. | |
| open_error_t | openapiNetworkPortIPv4ProtocolModeGet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t *protoMode) |
| Get the network port IPv4 protocol mode. | |
| open_error_t | openapiNetworkPortIPv4ProtocolModeSet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t protoMode) |
| Set the network port IPv4 protocol mode. | |
| open_error_t | openapiNetworkPortIPv6AddressesNextGet (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Get next network port configured IPv6 address and prefix length. | |
| open_error_t | openapiNetworkPortIPv6AdminModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode) |
| Get IPv6 administrative mode of network port. | |
| open_error_t | openapiNetworkPortIPv6AdminModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode) |
| Set IPv6 administrative mode on network port. | |
| open_error_t | openapiNetworkPortIPv6AutoConfigModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *autoConfigMode) |
| Get IPv6 auto-config mode on network port. | |
| open_error_t | openapiNetworkPortIPv6AutoConfigModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t autoConfigMode) |
| Set IPv6 auto-config mode on Network port. | |
| open_error_t | openapiNetworkPortIPv6GatewayGet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Get the network port IPv6 gateway address. | |
| open_error_t | openapiNetworkPortIPv6GatewaySet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Set the network port IPv6 gateway. | |
| open_error_t | openapiNetworkPortIPv6PrefixDelete (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Delete IPv6 prefix(es) on network port. | |
| open_error_t | openapiNetworkPortIPv6PrefixSet (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Set the network IPv6 prefix and prefix length. | |
| open_error_t | openapiNetworkPortIPv6ProtocolModeGet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t *protoMode) |
| Set IPv6 protocol mode on network port. | |
| open_error_t | openapiNetworkPortIPv6ProtocolModeSet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t protoMode) |
| Set IPv6 protocol mode on network port. | |
| open_error_t | openapiNetworkPortLinkStateGet (openapiClientHandle_t *client_handle, OPEN_LINK_STATE_t *linkState) |
| Get network interface link state. | |
| open_error_t | openapiOperSysGet (openapiClientHandle_t *client_handle, open_buffdesc *operSys) |
| Get the operating system. | |
| open_error_t | openapiResetConfigurationSet (openapiClientHandle_t *client_handle) |
| Clear the switch configuration to factory defaults. | |
| open_error_t | openapiSaveConfigurationSet (openapiClientHandle_t *client_handle) |
| Saves the configuration to non-volatile storage. | |
| open_error_t | openapiSerialTimeoutDefaultSet (openapiClientHandle_t *client_handle) |
| Set the serial timeout to default value. | |
| open_error_t | openapiSerialTimeoutGet (openapiClientHandle_t *client_handle, uint32_t *serialTimeout) |
| Get the serial timeout. | |
| open_error_t | openapiSerialTimeoutSet (openapiClientHandle_t *client_handle, uint32_t serialTimeout) |
| Set the serial timeout. | |
| open_error_t | openapiServicePortGatewayIPv4AddrGet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Get the service port gateway IPv4 address. | |
| open_error_t | openapiServicePortIPv4AddrGet (openapiClientHandle_t *client_handle, open_inet_addr_t *ipAddr, open_inet_addr_t *netMask) |
| Get the service port IPv4 address and subnet mask. | |
| open_error_t | openapiServicePortIPv4ParametersDelete (openapiClientHandle_t *client_handle) |
| Delete IPv4 service port parameters. | |
| open_error_t | openapiServicePortIPv4ParametersSet (openapiClientHandle_t *client_handle, open_inet_addr_t *ipAddr, open_inet_addr_t *netMask, open_inet_addr_t *gateway) |
| Set the service port IPv4 parameters. | |
| open_error_t | openapiServicePortIPv4ProtocolModeGet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t *protoMode) |
| Get the service port IPv4 protocol mode. | |
| open_error_t | openapiServicePortIPv4ProtocolModeSet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t protoMode) |
| Set the service port IPv4 protocol mode. | |
| open_error_t | openapiServicePortIPv6AddressesNextGet (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Get next service port IPv6 address and prefix length. | |
| open_error_t | openapiServicePortIPv6AdminModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode) |
| Get IPv6 administrative mode of service port. | |
| open_error_t | openapiServicePortIPv6AdminModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode) |
| Set IPv6 administrative mode of service port. | |
| open_error_t | openapiServicePortIPv6AutoConfigModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *autoConfigMode) |
| Get IPv6 auto-config mode of service port. | |
| open_error_t | openapiServicePortIPv6AutoConfigModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t autoConfigMode) |
| Set IPv6 auto-config mode on service port. | |
| open_error_t | openapiServicePortIPv6GatewayGet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Get the service port IPv6 gateway address. | |
| open_error_t | openapiServicePortIPv6GatewaySet (openapiClientHandle_t *client_handle, open_inet_addr_t *gateway) |
| Set the service port IPv6 gateway. | |
| open_error_t | openapiServicePortIPv6PrefixDelete (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Delete IPv6 parameters set on a service port. | |
| open_error_t | openapiServicePortIPv6PrefixSet (openapiClientHandle_t *client_handle, open_inet_pfx_t *ipv6Addr) |
| Set the service port IPv6 parameters. | |
| open_error_t | openapiServicePortIPv6ProtocolModeGet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t *protoMode) |
| Get IPv6 protocol mode of service port. | |
| open_error_t | openapiServicePortIPv6ProtocolModeSet (openapiClientHandle_t *client_handle, OPEN_PROTOCOL_MODE_t protoMode) |
| Set IPv6 protocol mode on service port. | |
| open_error_t | openapiServicePortMaskGet (openapiClientHandle_t *client_handle, open_inet_addr_t *netMask) |
| Get the service port subnet mask. | |
| open_error_t | openapiSystemBurnedInMacAddrGet (openapiClientHandle_t *client_handle, open_buffdesc *mac_address) |
| Gets System Burned in MAC Address. | |
| open_error_t | openapiSystemHostnameGet (openapiClientHandle_t *client_handle, open_buffdesc *sysHostName) |
| Get the system hostname. | |
| open_error_t | openapiSystemHostnameSet (openapiClientHandle_t *client_handle, open_buffdesc *sysHostName) |
| Set the system hostname. | |
| open_error_t | openapiSystemHostnameSizeGet (openapiClientHandle_t *client_handle, uint32_t *hostNameSize) |
| Get the maximum size of system hostname. | |
| open_error_t | openapiSystemLocalUnitGet (openapiClientHandle_t *client_handle, uint32_t *unit) |
| Get the current unit's ID. | |
| open_error_t | openapiSystemMacAddrGet (openapiClientHandle_t *client_handle, open_buffdesc *macAddress) |
| Get System MAC Address. | |
| open_error_t | openapiSystemMemoryInfoGet (openapiClientHandle_t *client_handle, uint32_t *memTotal, uint32_t *memAlloc, uint32_t *memFree) |
| Get current system memory allocation information. | |
| open_error_t | openapiSystemNameGet (openapiClientHandle_t *client_handle, open_buffdesc *systemName) |
| Get the administratively-assigned system name. | |
| open_error_t | openapiSystemNameMaxSizeGet (openapiClientHandle_t *client_handle, uint32_t *systemNameSize) |
| Get the maximum size of the system name. | |
| open_error_t | openapiSystemPromptMaxSizeGet (openapiClientHandle_t *client_handle, uint32_t *promptSize) |
| Get the maximum size of system prompt. | |
| open_error_t | openapiSystemPromptSet (openapiClientHandle_t *client_handle, open_buffdesc *systemPrompt) |
| Set the system prompt. | |
| open_error_t | openapiSystemReload (openapiClientHandle_t *client_handle) |
| Resets the switch. | |
| open_error_t | openapiSystemUpTimeGet (openapiClientHandle_t *client_handle, uint32_t *sysUpTimeSec) |
| Get the stack up time in seconds. | |
| open_error_t | openapiSystemUpTimeMsecGet (openapiClientHandle_t *client_handle, uint32_t *sysUpTimeMsec) |
| Get the stack up time in milliseconds. | |
| open_error_t | openapiTelnetServerAdminModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *telnetServerMode) |
| Get the telnet server admin mode. | |
| open_error_t | openapiTelnetServerAdminModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t telnetServerMode) |
| Set the telnet server admin mode. | |
| open_error_t | openapiTimeZoneOffsetGet (openapiClientHandle_t *client_handle, uint32_t *timeZoneOffsetMin) |
| Get the time zone minutes parameter. | |
| open_error_t | openapiTransferBytesCompletedSet (openapiClientHandle_t *client_handle, uint32_t bytes) |
| Set the transferred bytes. | |
| open_error_t | openapiUidGet (openapiClientHandle_t *client_handle, open_buffdesc *uid) |
| Get UID of the System Uid of the system is Datapath ID of the ofdb. | |
| open_error_t | openapiWarmRestartStatusGet (openapiClientHandle_t *client_handle, OPEN_BOOL_t *warmRestartStatus) |
| Get warm restart status. | |
| enum OPEN_PROTOCOL_MODE_t |
OpEN uses this enumeration to define network connectivity protocol modes.
| OPEN_PROTOCOL_MODE_INVALID |
Invalid Protocol mode. |
| OPEN_PROTOCOL_MODE_NONE |
Protocol mode none. |
| OPEN_PROTOCOL_MODE_BOOTP |
Protocol mode BOOTP. |
| OPEN_PROTOCOL_MODE_DHCP |
Protocol mode DHCP. |
Definition at line 46 of file openapi_system.h.
| open_error_t openapiArpInfoNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | arpIndex, | ||
| uint32_t * | intf, | ||
| open_inet_addr_t * | ipAddr, | ||
| open_buffdesc * | mac_addr | ||
| ) |
Get the next ARP info entry.
| [in] | client_handle | client handle from registration API |
| [in,out] | arpIndex | Starting index to find next. Initialize arpIndex to 0 to get the first ARP entry |
| [out] | intf | ARP entry internal interface number |
| [out] | ipAddr | ARP entry ip address |
| [out] | mac_addr | ARP entry mac address |
| OPEN_E_NONE | Get successful. |
| OPEN_E_FAIL | No more entries. |
| OPEN_E_PARAM | If an input parameter is invalid. |
OpEN API Version: 1.19
| open_error_t openapiClientResourceTrackingSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | trackingControl | ||
| ) |
Sets resource tracking flag for an OpEN API client.
| [in] | client_handle | Storage to contain handle information. |
| [in] | trackingControl | Resource tracking control mode. |
| OPEN_E_NONE | Successfully set resource tracking. |
| OPEN_E_ERROR | Unable to set resource tracking. |
| OPEN_E_PARAM | Error in parameter passed. |
OpEN API Version: 1.15
| open_error_t openapiLicenseFeatureStatusGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | featureName, | ||
| OPEN_BOOL_t * | enabled | ||
| ) |
Get license status for component.
| [in] | client_handle | Client handle from registration API |
| [in] | featureName | Feature name |
| [out] | enabled | Feature enabled status |
| OPEN_E_NONE | Successfully fetched feature enabled status. |
| OPEN_E_ERROR | Unable to fetch feature enabled status. |
| OPEN_E_PARAM | Error in parameter passed. |
| OPEN_E_UNAVAIL | Fetching feature status functionality not suppported. |
OpEN API Version: 1.18
| open_error_t openapiLineTerminalLengthDefaultSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ACCESS_LINE_t | accessLine | ||
| ) |
Set the terminal length of an access line to default.
| [in] | client_handle | Client handle from registration API |
| [in] | accessLine | Access Line: Console/Telnet/SSH |
| OPEN_E_NONE | if terminal length for the given access line is set to default successfully. |
| OPEN_E_FAIL | if access line is invalid. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiLineTerminalLengthGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ACCESS_LINE_t | accessLine, | ||
| uint32_t * | termLength | ||
| ) |
Get the terminal length of an access line.
| [in] | client_handle | Client handle from registration API |
| [in] | accessLine | Access Line: Console/Telnet/SSH |
| [out] | termLength | Terminal length of the access line |
| OPEN_E_NONE | if terminal length of a given access line is returned successfully. |
| OPEN_E_FAIL | if access line is invalid. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiLineTerminalLengthSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ACCESS_LINE_t | accessLine, | ||
| uint32_t | termLength | ||
| ) |
Set the terminal length of an access line.
| [in] | client_handle | Client handle from registration API |
| [in] | accessLine | Access Line: Console/Telnet/SSH |
| [in] | termLength | Terminal length of access line |
| - | Minimum value OPENAPI_MIN_TERMINAL_LENGTH | |
| - | Maximum value OPENAPI_MAX_TERMINAL_LENGTH |
| OPEN_E_NONE | if terminal length for the given access line is set successfully |
| OPEN_E_FAIL | if access line is invalid. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiMaintenanceLevelGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | maintenanceLevel | ||
| ) |
Get the maintenance level of the system.
| [in] | client_handle | Client handle from registration API |
| [out] | maintenanceLevel | Pointer to maintenance level string storage
|
| OPEN_E_NONE | if operation is successful |
| OPEN_E_FAIL | if operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.15
| open_error_t openapiManufacturerGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | unit, | ||
| open_buffdesc * | manufacturer | ||
| ) |
Get the manufacturer.
| [in] | client_handle | Client handle from registration API |
| [in] | unit | Unit number |
| [out] | manufacturer | Pointer to manufacturer
|
| OPEN_E_NONE | if successfully |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.8
| open_error_t openapiNetworkMgmtVlanGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | mgmtVlan | ||
| ) |
Get the network management VLAN of the system.
| [in] | client_handle | client handle from registration API |
| [out] | mgmtVlan | network management VLAN ID |
| OPEN_E_NONE | Get successful. |
| OPEN_E_FAIL | Get failed. |
| OPEN_E_PARAM | Error in parameter passed. |
OpEN API Version: 1.14
| open_error_t openapiNetworkMgmtVlanSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | mgmtVlan | ||
| ) |
Set the network management VLAN on the system.
| [in] | client_handle | client handle from registration API |
| [in] | mgmtVlan | network management VLAN ID |
| - | Minimum value OPENAPI_DOT1Q_MIN_VLAN_ID | |
| - | Maximum value openapiDot1VlanMaxGet() |
| OPEN_E_NONE | Get successful. |
| OPEN_E_FAIL | Get failed. |
| OPEN_E_PARAM | Error in parameter passed. |
| OPEN_E_INTERNAL | An internal error occurred. |
| OPEN_E_EXISTS | VLAN already in use (e.g. for a port-based routing interface). |
OpEN API Version: 1.14
| open_error_t openapiNetworkPortGatewayIPv4AddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Get the network port gateway IPv4 address.
| [in] | client_handle | Client handle from registration API |
| [out] | gateway | Gateway IPv4 address |
| OPEN_E_NONE | if the network port gateway IPv4 address is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv4AddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | ipAddr, | ||
| open_inet_addr_t * | netMask | ||
| ) |
Get the network port IPv4 address and subnet mask.
| [in] | client_handle | Client handle from registration API |
| [out] | ipAddr | network port IPv4 address |
| [out] | netMask | Network mask |
| OPEN_E_NONE | if the network port IPv4 address and subnet mask are returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv4ParametersDelete | ( | openapiClientHandle_t * | client_handle | ) |
Delete network port IPv4 parameters.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if the network port IPv4 parameters are deleted successfully. |
| OPEN_E_FAIL | if network protocol mode is not set to none. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv4ParametersSet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | ipAddr, | ||
| open_inet_addr_t * | netMask, | ||
| open_inet_addr_t * | gateway | ||
| ) |
Set the network parameters.
| [in] | client_handle | Client handle from registration API |
| [in] | ipAddr | Network port IPv4 address |
| [in] | netMask | Network mask |
| [in] | gateway | Gateway IP address |
| OPEN_E_NONE | if the network parameters are set successfully. |
| OPEN_E_ERROR | if IP address conflicts occur. |
| OPEN_E_EXISTS | if the same values of IP address, network mask and gateway are already set. |
| OPEN_E_FAIL | if network protocol mode is not set to none or if ip address or network mask are passed as 0. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv4ProtocolModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t * | protoMode | ||
| ) |
Get the network port IPv4 protocol mode.
| [in] | client_handle | Client handle from registration API |
| [out] | protoMode | Network port IPv4 protocol mode: none/dhcp/bootp |
| OPEN_E_NONE | if the network port IPv4 protocol mode is returned. |
| OPEN_E_FAIL | if invalid network port IPv4 protocol mode is returned, |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv4ProtocolModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t | protoMode | ||
| ) |
Set the network port IPv4 protocol mode.
| [in] | client_handle | Client handle from registration API |
| [in] | protoMode | Network port IPv4 protocol mode: none/dhcp/bootp |
| OPEN_E_NONE | if the network port IPv4 protocol mode is set successfully |
| OPEN_E_FAIL | if service port is configured with dhcp/bootp and trying to configure bootp on network port. Only one interface can run DHCP or Bootp. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6AddressesNextGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Get next network port configured IPv6 address and prefix length.
| [in] | client_handle | Client handle from registration API |
| [in,out] | ipv6Addr | IPv6 address and prefix length |
| OPEN_E_NONE | if the next configured IPv6 network address and prefix length are returned. |
| OPEN_E_FAIL | if no more entries are found. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6AdminModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | adminMode | ||
| ) |
Get IPv6 administrative mode of network port.
| [in] | client_handle | Client handle from registration API |
| [out] | adminMode | IPv6 admin mode of network port |
| OPEN_E_NONE | if IPv6 admin mode of network port is returned. |
| OPEN_E_FAIL | if invalid mode is returned. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6AdminModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | adminMode | ||
| ) |
Set IPv6 administrative mode on network port.
| [in] | client_handle | Client handle from registration API |
| [in] | adminMode | IPv6 admin mode of network port |
| OPEN_E_NONE | if IPv6 admin mode of network port is set successfully. |
| OPEN_E_FAIL | if unable to set IPv6 admin mode on network port. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6AutoConfigModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | autoConfigMode | ||
| ) |
Get IPv6 auto-config mode on network port.
| [in] | client_handle | Client handle from registration API |
| [out] | autoConfigMode | IPv6 auto config mode |
| OPEN_E_NONE | if IPv6 auto-config mode of network port is returned. |
| OPEN_E_FAIL | if invalid mode is returned. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6AutoConfigModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | autoConfigMode | ||
| ) |
Set IPv6 auto-config mode on Network port.
| [in] | client_handle | Client handle from registration API |
| [in] | autoConfigMode | IPv6 auto config mode |
| OPEN_E_NONE | if IPv6 auto-config mode is set successfully. |
| OPEN_E_FAIL | if unable to set auto-config mode. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6GatewayGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Get the network port IPv6 gateway address.
| [in] | client_handle | Client handle from registration API |
| [out] | gateway | IPv6 gateway address |
| OPEN_E_NONE | if IPv6 gateway address is returned. |
| OPEN_E_FAIL | if IPv6 gateway address is not configured on network port. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6GatewaySet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Set the network port IPv6 gateway.
| [in] | client_handle | Client handle from |
| [in] | gateway | IPv6 gateway address. |
| OPEN_E_NONE | if the network port IPv6 gateway is set successfully. |
| OPEN_E_EXISTS | if IPv6 address conflicts occur with service port/network port gateway |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_INTERNAL | if internal error has occurred. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6PrefixDelete | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Delete IPv6 prefix(es) on network port.
| [in] | client_handle | Client handle from registration API |
| [in] | ipv6Addr | IPv6 address and prefix length. |
| OPEN_E_NONE | if the network parameters are deleted successfully. |
| OPEN_E_FAIL | if unable remove the parameters or if invalid prefix is passed or if parameters does not exist. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6PrefixSet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Set the network IPv6 prefix and prefix length.
| [in] | client_handle | Client handle from registration API |
| [in] | ipv6Addr | IPv6 address and prefix length |
| OPEN_E_NONE | if the network parameters are set successfully. |
| OPEN_E_EXISTS | if IP address conflicts occur with service port/network port prefixes. |
| OPEN_E_UNAVAIL | if invalid prefix length is given. |
| OPEN_E_FULL | if no more space to add ipv6 prefixes. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_INTERNAL | if internal error has occurred. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6ProtocolModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t * | protoMode | ||
| ) |
Set IPv6 protocol mode on network port.
| [in] | client_handle | Client handle from registration API |
| [out] | protoMode | IPv6 protocol mode |
| OPEN_E_NONE | if IPv6 protocol mode is returned successfully. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortIPv6ProtocolModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t | protoMode | ||
| ) |
Set IPv6 protocol mode on network port.
| [in] | client_handle | Client handle from registration API |
| [in] | protoMode | IPv6 protocol mode: dhcp/none |
| OPEN_E_NONE | if IPv6 protocol mode is set successfully. |
| OPEN_E_FAIL | if unable to set IPv6 protocol mode. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiNetworkPortLinkStateGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_LINK_STATE_t * | linkState | ||
| ) |
Get network interface link state.
| [in] | client_handle | Client handle from registration API |
| [out] | linkState | Interface link state |
| OPEN_E_NONE | if successfully |
| OPEN_E_PARAM | if invalid parameter is supplied |
| OPEN_E_ERROR | otherwise |
OpEN API Version: 1.14
| open_error_t openapiOperSysGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | operSys | ||
| ) |
Get the operating system.
| [in] | client_handle | Client handle from registration API |
| [out] | operSys | Pointer to operating system string storage
|
| OPEN_E_NONE | if successfully |
| OPEN_E_FAIL | if operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.8
| open_error_t openapiResetConfigurationSet | ( | openapiClientHandle_t * | client_handle | ) |
Clear the switch configuration to factory defaults.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if clear operation is successful |
| OPEN_E_FAIL | if clear operation resulted in failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.7
| open_error_t openapiSaveConfigurationSet | ( | openapiClientHandle_t * | client_handle | ) |
Saves the configuration to non-volatile storage.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if save operation is successful |
| OPEN_E_FAIL | if save operation resulted in failure |
OpEN API Version: 1.3
| open_error_t openapiSerialTimeoutDefaultSet | ( | openapiClientHandle_t * | client_handle | ) |
Set the serial timeout to default value.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if serial timeout default value is set successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSerialTimeoutGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | serialTimeout | ||
| ) |
Get the serial timeout.
| [in] | client_handle | Client handle from registration API |
| [out] | serialTimeout | Serial timeout |
| OPEN_E_NONE | if serial timeout is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSerialTimeoutSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | serialTimeout | ||
| ) |
Set the serial timeout.
| [in] | client_handle | Client handle from registration API |
| [in] | serialTimeout | Serial timeout (minutes) |
| - | Maximum value OPENAPI_SERIAL_TIMEOUT_MAX |
| OPEN_E_NONE | if serial timeout is set successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortGatewayIPv4AddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Get the service port gateway IPv4 address.
| [in] | client_handle | Client handle from registration API |
| [out] | gateway | Gateway IPv4 address |
| OPEN_E_NONE | if the service port gateway IP address is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv4AddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | ipAddr, | ||
| open_inet_addr_t * | netMask | ||
| ) |
Get the service port IPv4 address and subnet mask.
| [in] | client_handle | Client handle from registration API |
| [out] | ipAddr | Service port IPv4 address |
| [out] | netMask | Network mask |
| OPEN_E_NONE | if the service port IPv4 address and subnet mask are returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv4ParametersDelete | ( | openapiClientHandle_t * | client_handle | ) |
Delete IPv4 service port parameters.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if the service port IPv4 parameters are deleted successfully. |
| OPEN_E_FAIL | if service protocol mode is not set to none. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv4ParametersSet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | ipAddr, | ||
| open_inet_addr_t * | netMask, | ||
| open_inet_addr_t * | gateway | ||
| ) |
Set the service port IPv4 parameters.
| [in] | client_handle | Client handle from registration API |
| [in] | ipAddr | IPv4 address |
| [in] | netMask | Network mask |
| [in] | gateway | Gateway |
| OPEN_E_NONE | if the service port IPv4 parameters are set successfully. |
| OPEN_E_ERROR | if IP address conflicts occur. |
| OPEN_E_EXISTS | if the same values of IP address, service port subnet mask and gateway are already set. |
| OPEN_E_FAIL | if service protocol mode is not set to none. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv4ProtocolModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t * | protoMode | ||
| ) |
Get the service port IPv4 protocol mode.
| [in] | client_handle | Client handle from registration API |
| [out] | protoMode | Service protocol mode: none/dhcp/bootp |
| OPEN_E_NONE | if the service port IPv4 protocol mode is returned successfully |
| OPEN_E_FAIL | if invalid service port IPv4 protocol mode is returned. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv4ProtocolModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t | protoMode | ||
| ) |
Set the service port IPv4 protocol mode.
| [in] | client_handle | Client handle from registration API |
| [in] | protoMode | Service port IPv4 protocol mode: none/dhcp/bootp |
| OPEN_E_NONE | if the service port IPv4 protocol mode is set successfully |
| OPEN_E_FAIL | if network port is configured with dhcp/bootp and trying to configure bootp on service port. Only one interface can run DHCP or Bootp. |
| OPEN_E_UNAVAIL | if feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6AddressesNextGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Get next service port IPv6 address and prefix length.
| [in] | client_handle | Client handle from registration API |
| [in,out] | ipv6Addr | IPv6 address and prefix length |
| OPEN_E_NONE | if the next IPv6 service port address and prefix length are returned. |
| OPEN_E_FAIL | if no more entries are found. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6AdminModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | adminMode | ||
| ) |
Get IPv6 administrative mode of service port.
| [in] | client_handle | Client handle from registration API |
| [out] | adminMode | IPv6 admin mode of service port |
| OPEN_E_NONE | if IPv6 admin mode of service port is returned. |
| OPEN_E_FAIL | if invalid mode is returned. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6AdminModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | adminMode | ||
| ) |
Set IPv6 administrative mode of service port.
| [in] | client_handle | Client handle from registration API |
| [in] | adminMode | IPv6 admin mode of service port |
| OPEN_E_NONE | if IPv6 admin mode of service port is set successfully. |
| OPEN_E_FAIL | if unable to set IPv6 admin mode of service port. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6AutoConfigModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | autoConfigMode | ||
| ) |
Get IPv6 auto-config mode of service port.
| [in] | client_handle | Client handle from registration API |
| [out] | autoConfigMode | IPv6 auto config mode |
| OPEN_E_NONE | if IPv6 auto-config mode is returned. |
| OPEN_E_FAIL | if invalid mode is returned. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6AutoConfigModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | autoConfigMode | ||
| ) |
Set IPv6 auto-config mode on service port.
| [in] | client_handle | Client handle from registration API |
| [in] | autoConfigMode | IPv6 auto config mode |
| OPEN_E_NONE | if IPv6 auto-config mode is set successfully. |
| OPEN_E_FAIL | if unable to set auto-config mode. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6GatewayGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Get the service port IPv6 gateway address.
| [in] | client_handle | Client handle from registration API |
| [out] | gateway | IPv6 gateway address |
| OPEN_E_NONE | if IPv6 gateway address is returned. |
| OPEN_E_FAIL | if unable to get IPv6 gateway address. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6GatewaySet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | gateway | ||
| ) |
Set the service port IPv6 gateway.
| [in] | client_handle | Client handle from registration API |
| [in] | gateway | IPv6 gateway address |
| OPEN_E_NONE | if the service port gateway is set successfully. |
| OPEN_E_EXISTS | if IP address conflicts occur with service port/network port gateway. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_INTERNAL | if internal error has occurred. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6PrefixDelete | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Delete IPv6 parameters set on a service port.
| [in] | client_handle | Client handle from registration API |
| [in] | ipv6Addr | IPv6 address and prefix length |
| OPEN_E_NONE | if the service port IPv6 prefix and prefix length are deleted successfully. |
| OPEN_E_FAIL | if unable remove the parameters or if invalid prefix is passed or if parameters does not exist. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6PrefixSet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_pfx_t * | ipv6Addr | ||
| ) |
Set the service port IPv6 parameters.
| [in] | client_handle | Client handle from registration API |
| [in] | ipv6Addr | IPv6 address and prefix length |
| OPEN_E_NONE | if the service port prefix and prefix length are set successfully. |
| OPEN_E_EXISTS | if IP address conflicts occur with service port/network port prefixes. |
| OPEN_E_UNAVAIL | if invalid prefix length is given. |
| OPEN_E_FULL | if no more space to add ipv6 prefixes. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_INTERNAL | if internal error has occurred. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6ProtocolModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t * | protoMode | ||
| ) |
Get IPv6 protocol mode of service port.
| [in] | client_handle | Client handle from registration API |
| [out] | protoMode | IPv6 protocol mode |
| OPEN_E_NONE | if IPv6 protocol mode is returned. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortIPv6ProtocolModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_PROTOCOL_MODE_t | protoMode | ||
| ) |
Set IPv6 protocol mode on service port.
| [in] | client_handle | Client handle from registration API |
| [in] | protoMode | IPv6 protocol mode: dhcp/none |
| OPEN_E_NONE | if IPv6 protocol mode is set successfully. |
| OPEN_E_FAIL | if unable to set IPv6 protocol mode. |
| OPEN_E_UNAVAIL | if IPv6 feature is unsupported. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiServicePortMaskGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | netMask | ||
| ) |
Get the service port subnet mask.
| [in] | client_handle | Client handle from registration API |
| [out] | netMask | Network mask |
| OPEN_E_NONE | if the service port subnet mask is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemBurnedInMacAddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | mac_address | ||
| ) |
Gets System Burned in MAC Address.
| [in] | client_handle | Client handle from registration API |
| [out] | mac_addresss | MAC address buffer |
| OPEN_E_NONE | if MAC get operation is successful |
| OPEN_E_FAIL | if MAC get operation resulted in failure |
| OPEN_E_PARAM | if invalid parameter or size is supplied |
OpEN API Version: 1.3
| open_error_t openapiSystemHostnameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | sysHostName | ||
| ) |
Get the system hostname.
| [in] | client_handle | Client handle from registration API |
| [out] | sysHostName | System hostname |
| OPEN_E_NONE | if system hostname is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemHostnameSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | sysHostName | ||
| ) |
Set the system hostname.
| [in] | client_handle | Client handle from registration API |
| [in] | sysHostName | System hostname |
| OPEN_E_NONE | if system hostname is set successfully. |
| OPEN_E_FAIL | if system hostname contains non printable characters. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemHostnameSizeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | hostNameSize | ||
| ) |
Get the maximum size of system hostname.
| [in] | client_handle | Client handle from registration API |
| [out] | hostNameSize | Maximum size of system hostname |
| OPEN_E_NONE | if maximum hostname size is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemLocalUnitGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | unit | ||
| ) |
Get the current unit's ID.
| [in] | client_handle | Client handle from registration API |
| [out] | unit | Local unit number |
| OPEN_E_NONE | if successful |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.8
| open_error_t openapiSystemMacAddrGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macAddress | ||
| ) |
Get System MAC Address.
| [in] | client_handle | Client handle from registration API |
| [out] | macAddress | MAC address buffer |
| OPEN_E_NONE | if MAC get operation is successful |
| OPEN_E_PARAM | if invalid parameter or size is supplied |
OpEN API Version: 1.8
| open_error_t openapiSystemMemoryInfoGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | memTotal, | ||
| uint32_t * | memAlloc, | ||
| uint32_t * | memFree | ||
| ) |
Get current system memory allocation information.
| [in] | client_handle | Client handle from registration API. |
| [out] | memTotal | Total amount of memory in the system. |
| [out] | memAlloc | Amount of memory currently allocated. |
| [out] | memFree | Amount of free memory available. |
| OPEN_E_NONE | Operation succeeded. |
| OPEN_E_FAIL | Unable to get data values. |
| OPEN_E_PARAM | Error in parameter passed. |
OpEN API Version: 1.18
| open_error_t openapiSystemNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | systemName | ||
| ) |
Get the administratively-assigned system name.
| [in] | client_handle | Client handle from registration API |
| [out] | systemName | System name |
| OPEN_E_NONE | if system hostname is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.4
| open_error_t openapiSystemNameMaxSizeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | systemNameSize | ||
| ) |
Get the maximum size of the system name.
| [in] | client_handle | Client handle from registration API |
| [out] | systemNameSize | Maximum size of the system name |
| OPEN_E_NONE | if maximum prompt size is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.4
| open_error_t openapiSystemPromptMaxSizeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | promptSize | ||
| ) |
Get the maximum size of system prompt.
| [in] | client_handle | Client handle from registration API |
| [out] | promptSize | Maximum size of the system prompt |
| OPEN_E_NONE | if maximum prompt size is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemPromptSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | systemPrompt | ||
| ) |
Set the system prompt.
| [in] | client_handle | Client handle from registration API |
| [in] | systemPrompt | System prompt |
| OPEN_E_NONE | if system prompt set successfully. |
| OPEN_E_FAIL | if system prompt contains non printable characters. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemReload | ( | openapiClientHandle_t * | client_handle | ) |
Resets the switch.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if reset is issued successfully |
| OPEN_E_FAIL | if reset operation has failed |
OpEN API Version: 1.3
| open_error_t openapiSystemUpTimeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | sysUpTimeSec | ||
| ) |
Get the stack up time in seconds.
| [in] | client_handle | Client handle from registration API |
| [out] | sysUpTimeSec | System up time (seconds) |
| OPEN_E_NONE | if system up time is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiSystemUpTimeMsecGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | sysUpTimeMsec | ||
| ) |
Get the stack up time in milliseconds.
| [in] | client_handle | Client handle from registration API |
| [out] | sysUpTimeMsec | System up time (milliseconds) |
| OPEN_E_NONE | if system up time is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiTelnetServerAdminModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | telnetServerMode | ||
| ) |
Get the telnet server admin mode.
| [in] | client_handle | Client handle from registration API |
| [out] | telnetServerMode | Telnet server admin mode |
| OPEN_E_NONE | if telnet server admin mode is returned. |
| OPEN_E_FAIL | is unable to get telnet server admin mode or if invalid mode is returned. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiTelnetServerAdminModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | telnetServerMode | ||
| ) |
Set the telnet server admin mode.
| [in] | client_handle | Client handle from registration API |
| [in] | telnetServerMode | Telnet server admin mode |
| OPEN_E_NONE | if telnet server admin mode set successfully. |
| OPEN_E_FAIL | if unable to set telnet server mode. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiTimeZoneOffsetGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | timeZoneOffsetMin | ||
| ) |
Get the time zone minutes parameter.
| [in] | client_handle | Client handle from registration API |
| [out] | minutes | Time zone offset in minutes |
| OPEN_E_NONE | if successfully |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.8
| open_error_t openapiTransferBytesCompletedSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | bytes | ||
| ) |
Set the transferred bytes.
| [in] | client_handle | Client handle from registration API |
| [in] | serialTimeout | Transferred Bytes |
| OPEN_E_NONE | if transferred bytes is set successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.1
| open_error_t openapiUidGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | uid | ||
| ) |
Get UID of the System Uid of the system is Datapath ID of the ofdb.
If OFDB component is not enabled, we will return
service port Mac address prefixed by 2 bytes (default value 0)
| [in] | client_handle | |
| [out] | uid | – UID of the system |
| OPEN_E_NONE | |
| OPEN_E_ERROR | OpEN API Version: 1.10 |
| open_error_t openapiWarmRestartStatusGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t * | warmRestartStatus | ||
| ) |
Get warm restart status.
| [in] | client_handle | Client handle from registration API |
| [out] | warmRestartStatus | Warm restart status |
| OPEN_E_PARAM | If the passed params are invalid |
| OPEN_E_NONE | If the OPEN call is successful |
OpEN API Version: 1.3