BroadView™ API Guide and Reference Manual
|
Data Structures | |
struct | _bst_asic_data_snapshot_ |
struct | _bst_config_ |
struct | _bst_cpu_q_ |
struct | _bst_cpu_q_threshold_ |
struct | _bst_device_ |
struct | _bst_device_threshold_ |
struct | _bst_e_mcq_ |
struct | _bst_e_mcq_threshold_ |
struct | _bst_e_p_sp_ |
struct | _bst_e_sp_ |
struct | _bst_e_sp_threshold_ |
struct | _bst_e_ucq_ |
struct | _bst_e_ucq_threshold_ |
struct | _bst_e_ucqg_ |
struct | _bst_e_ucqg_threshold_ |
struct | _bst_ep_sp_threshold_ |
struct | _bst_i_p_pg_ |
struct | _bst_i_p_pg_threshold_ |
struct | _bst_i_p_sp_ |
struct | _bst_i_p_sp_threshold_ |
struct | _bst_i_sp_ |
struct | _bst_i_sp_threshold_ |
struct | _bst_rqe_q_ |
struct | _bst_rqe_q_threshold_ |
struct | _bst_trigger_info_ |
struct | _bst_cpu_q_::_cpuq_data_ |
struct | _bst_e_mcq_::_emcq_data_ |
struct | _bst_e_p_sp_::_epsp_data_ |
struct | _bst_e_sp_::_esp_data_ |
struct | _bst_e_ucq_::_eucq_data_ |
struct | _bst_e_ucqg_::_eucqg_data_ |
struct | _bst_i_p_pg_::_ippg_data_ |
struct | _bst_i_p_sp_::_ipsp_data_ |
struct | _bst_i_sp_::_isp_data_ |
struct | _bst_rqe_q_::_rqeq_data_ |
Typedefs | |
typedef struct _bst_asic_data_snapshot_ | BVIEW_BST_ASIC_SNAPSHOT_DATA_t |
typedef enum _bst_collection_mode_ | BVIEW_BST_COLLECTION_MODE |
typedef struct _bst_config_ | BVIEW_BST_CONFIG_t |
typedef enum _threshold_fields_ | BVIEW_BST_COUNTER_t |
typedef struct _bst_device_ | BVIEW_BST_DEVICE_DATA_t |
typedef struct _bst_device_threshold_ | BVIEW_BST_DEVICE_THRESHOLD_t |
typedef struct _bst_cpu_q_ | BVIEW_BST_EGRESS_CPU_QUEUE_DATA_t |
typedef struct _bst_cpu_q_threshold_ | BVIEW_BST_EGRESS_CPU_QUEUE_THRESHOLD_t |
typedef struct _bst_e_mcq_ | BVIEW_BST_EGRESS_MC_QUEUE_DATA_t |
typedef struct _bst_e_mcq_threshold_ | BVIEW_BST_EGRESS_MC_QUEUE_THRESHOLD_t |
typedef struct _bst_e_p_sp_ | BVIEW_BST_EGRESS_PORT_SP_DATA_t |
typedef struct _bst_ep_sp_threshold_ | BVIEW_BST_EGRESS_PORT_SP_THRESHOLD_t |
typedef struct _bst_rqe_q_ | BVIEW_BST_EGRESS_RQE_QUEUE_DATA_t |
typedef struct _bst_rqe_q_threshold_ | BVIEW_BST_EGRESS_RQE_QUEUE_THRESHOLD_t |
typedef struct _bst_e_sp_ | BVIEW_BST_EGRESS_SP_DATA_t |
typedef struct _bst_e_sp_threshold_ | BVIEW_BST_EGRESS_SP_THRESHOLD_t |
typedef struct _bst_e_ucq_ | BVIEW_BST_EGRESS_UC_QUEUE_DATA_t |
typedef struct _bst_e_ucq_threshold_ | BVIEW_BST_EGRESS_UC_QUEUE_THRESHOLD_t |
typedef struct _bst_e_ucqg_ | BVIEW_BST_EGRESS_UC_QUEUEGROUPS_DATA_t |
typedef struct _bst_e_ucqg_threshold_ | BVIEW_BST_EGRESS_UC_QUEUEGROUPS_THRESHOLD_t |
typedef struct _bst_i_p_pg_ | BVIEW_BST_INGRESS_PORT_PG_DATA_t |
typedef struct _bst_i_p_pg_threshold_ | BVIEW_BST_INGRESS_PORT_PG_THRESHOLD_t |
typedef struct _bst_i_p_sp_ | BVIEW_BST_INGRESS_PORT_SP_DATA_t |
typedef struct _bst_i_p_sp_threshold_ | BVIEW_BST_INGRESS_PORT_SP_THRESHOLD_t |
typedef struct _bst_i_sp_ | BVIEW_BST_INGRESS_SP_DATA_t |
typedef struct _bst_i_sp_threshold_ | BVIEW_BST_INGRESS_SP_THRESHOLD_t |
typedef BVIEW_STATUS(* | BVIEW_BST_TRIGGER_CALLBACK_t )(int asic, void *cookie, BVIEW_BST_TRIGGER_INFO_t *triggerInfo) |
typedef struct _bst_trigger_info_ | BVIEW_BST_TRIGGER_INFO_t |
typedef enum _bst_trigger_type_ | BVIEW_BST_TRIGGER_TYPE |
Functions | |
BVIEW_STATUS | bst_app_config_init (unsigned int num_units) |
: function to initializes bst structures to default values | |
BVIEW_STATUS | bst_app_main (void) |
: bst main application function which does processing of messages | |
void | bst_app_uninit () |
: function to clean up bst application | |
BVIEW_STATUS | bst_cancel_request (unsigned int unit, unsigned int id) |
BVIEW_STATUS | bst_main () |
: function to creathe the bst application thread. | |
BVIEW_STATUS | sb_plugin_register (BVIEW_SB_PLUGIN_t sbPlugin) |
Register a south bound plug-in with south bound redirector. | |
BVIEW_STATUS | sb_redirector_init () |
Initialize South bound redirector's local data with defaults. | |
BVIEW_STATUS | sbapi_system_asic_capabilities_get (int asic, BVIEW_ASIC_CAPABILITIES_t *asicCapPtr) |
Get asic capabilites of a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_cp_get (int asic, int *numCommonPools) |
Get number of common pools in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_cpuq_get (int asic, int *numCpuQueues) |
Get number of cpu queues in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_mcq_get (int asic, int *numMulticastQueues) |
Get number of multicast queues in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_pg_get (int asic, int *numPriorityGroups) |
Get number of priority groups in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_ports_get (int asic, int *numPorts) |
Get number of ports in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_rqeq_get (int asic, int *numRqeQueues) |
Get number of RQE queues in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_rqeqp_get (int asic, int *numRqeQueuePools) |
Get number of RQE queue pools in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_sp_get (int asic, int *numServicePools) |
Get number of service pools in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_ucq_get (int asic, int *numUnicastQueues) |
Get number of unicast queues in a unit. | |
BVIEW_STATUS | sbapi_system_asic_num_ucqg_get (int asic, int *numUnicastQueueGroups) |
Get number of unicast queue groups in a unit. | |
BVIEW_STATUS | sbapi_system_asic_support_1588_get (int asic, bool *support1588) |
Get whether a unit supports 1588 or not. | |
BVIEW_STATUS | sbapi_system_asic_translate_from_notation (char *src, int *asic) |
Get system asic number from notational asic number representation - string form. | |
BVIEW_STATUS | sbapi_system_asic_translate_to_notation (int asic, char *dst) |
Get asic number in notational representation(string) from system asic number. | |
BVIEW_STATUS | sbapi_system_feature_mask_get (int *featureMask) |
Get Supported Feature Mask. | |
BVIEW_STATUS | sbapi_system_ip4_get (uint8_t *buffer, int length) |
Get system IPv4 address. | |
BVIEW_STATUS | sbapi_system_lag_translate_to_notation (int asic, int lag, char *dst) |
Get lag number in notational representation(string) from system lag number and asic number. | |
BVIEW_STATUS | sbapi_system_mac_get (uint8_t *buffer, int length) |
Get system MAC address. | |
BVIEW_STATUS | sbapi_system_max_buf_snapshot_get (int asic, BVIEW_SYSTEM_ASIC_MAX_BUF_SNAPSHOT_DATA_t *maxBufSnapshot, BVIEW_TIME_t *time) |
Get snapshot of max buffers allocated. | |
BVIEW_STATUS | sbapi_system_name_get (char *buffer, int length) |
Get system name. | |
BVIEW_STATUS | sbapi_system_network_os_get (uint8_t *buffer, int length) |
Get Network OS. | |
BVIEW_STATUS | sbapi_system_num_units_get (int *unitNum) |
Get number of units in the system. | |
BVIEW_STATUS | sbapi_system_packet_rx_register (int asic, BVIEW_PACKET_RX_CALLBACK_t callback, char *name, void *cookie) |
BVIEW_STATUS | sbapi_system_port_translate_from_notation (char *src, int *port) |
Get system port number from notational port number representation - string form. | |
BVIEW_STATUS | sbapi_system_port_translate_to_notation (int asic, int port, char *dst) |
Get port number in notational representation(string) from system port number and asic number. | |
BVIEW_STATUS | sbapi_system_time_get (time_t *ptime) |
Get Current local time. | |
BVIEW_STATUS | sbapi_system_uid_get (uint8_t *buffer, int length) |
Get system UID. | |
BVIEW_STATUS | sbapi_system_unit_to_asic_type_get (int asic, BVIEW_ASIC_TYPE *asicType) |
Get asic type of a unit. | |
#define BVIEW_BST_DEVICE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_CPU_QUEUE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_CPU_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_MC_QG_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_MC_QUEUE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_MC_SQG_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_MC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_RQE_QUEUE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_RQE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_SP_MC_SQ_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_SP_MC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_SP_UM_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_UC_GRP_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_E_UC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EGRESS_CPU_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EGRESS_RQE_QUEUE_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EGRESS_UC_GRP_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EGRESS_UC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EPSP_MC_SQ_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EPSP_MC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EPSP_UC_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_EPSP_UM_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_IPPG_HDRM_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_IPPG_SHRD_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_IPSP_THRESHOLD_CHECK | ( | _p | ) |
#define BVIEW_BST_ISP_THRESHOLD_CHECK | ( | _p | ) |
BVIEW_STATUS bst_app_config_init | ( | unsigned int | num_units | ) |
: function to initializes bst structures to default values
[in] | : | number of units on the agent |
: | BVIEW_STATUS_SUCCESS : configuration is successfully initialized. |
: | BVIEW_STATUS_FAILURE : Fail to initialize the BST appliation to default. |
BVIEW_STATUS bst_app_main | ( | void | ) |
: bst main application function which does processing of messages
[in] | : | none |
: | BVIEW_STATUS_SUCCESS: Fails to register with module manager or some error happened due to which the bst application is unable to process incoming messages. |
void bst_app_uninit | ( | ) |
: function to clean up bst application
[in] | none |
: | none |
BVIEW_STATUS bst_main | ( | ) |
: function to creathe the bst application thread.
[in] | none |
: | BVIEW_STATUS_RESOURCE_NOT_AVAILABLE : Returns when memory is not available |
: | BVIEW_STATUS_FAILURE : failed to create the message queue or thread. |
: | BVIEW_STATUS_SUCCESS : successful completion of task creation. |
BVIEW_STATUS sb_plugin_register | ( | BVIEW_SB_PLUGIN_t | sbPlugin | ) |
Register a south bound plug-in with south bound redirector.
[in] | sbPlugin | South bound plug-in |
BVIEW_STATUS_FAILURE | When validation of sb plug-in fails or Lock acquistion fails |
BVIEW_STATUS_TABLE_FULL | Number of plug-ins already registered are BVIEW_MAX_SUPPORTED_SB_PLUGINS. |
BVIEW_STATUS_SUCCESS | Successfully registered sb plug-in with sb redirector |
BVIEW_STATUS sb_redirector_init | ( | ) |
Initialize South bound redirector's local data with defaults.
BVIEW_STATUS_FAILURE | if failed to initialize read-write lock |
BVIEW_STATUS_SUCCESS | All the data structures are sucessfully initialized |
BVIEW_STATUS sbapi_system_asic_capabilities_get | ( | int | asic, |
BVIEW_ASIC_CAPABILITIES_t * | asicCapPtr | ||
) |
Get asic capabilites of a unit.
[in] | asic | Unit number |
[out] | asicCapPtr | Pointer to asic capabilities |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Found asic capabilities |
BVIEW_STATUS sbapi_system_asic_num_cp_get | ( | int | asic, |
int * | numCommonPools | ||
) |
Get number of common pools in a unit.
[in] | asic | Unit number |
[out] | numCommonPools | Number of common pools |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of common pools is successful |
BVIEW_STATUS sbapi_system_asic_num_cpuq_get | ( | int | asic, |
int * | numCpuQueues | ||
) |
Get number of cpu queues in a unit.
[in] | asic | Unit number |
[out] | numCpuQueues | Number of cpu queues |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of cpu queues is successful |
BVIEW_STATUS sbapi_system_asic_num_mcq_get | ( | int | asic, |
int * | numMulticastQueues | ||
) |
Get number of multicast queues in a unit.
[in] | asic | Unit number |
[out] | numMulticastQueueGroups | Number of Multicast queues |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of multicast queues is successful |
BVIEW_STATUS sbapi_system_asic_num_pg_get | ( | int | asic, |
int * | numPriorityGroups | ||
) |
Get number of priority groups in a unit.
[in] | asic | Unit number |
[out] | numPriorityGroups | Number of priority groups |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of priority groups is successful |
BVIEW_STATUS sbapi_system_asic_num_ports_get | ( | int | asic, |
int * | numPorts | ||
) |
Get number of ports in a unit.
[in] | asic | Unit number |
[out] | numPorts | Number of ports |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of ports is successful |
BVIEW_STATUS sbapi_system_asic_num_rqeq_get | ( | int | asic, |
int * | numRqeQueues | ||
) |
Get number of RQE queues in a unit.
[in] | asic | Unit number |
[out] | numRqeQueues | Number of RQE queues |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of RQE queues is successful |
BVIEW_STATUS sbapi_system_asic_num_rqeqp_get | ( | int | asic, |
int * | numRqeQueuePools | ||
) |
Get number of RQE queue pools in a unit.
[in] | asic | Unit number |
[out] | numRqeQueuePools | Number of RQE queue pools |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of RQE queue pools is successful |
BVIEW_STATUS sbapi_system_asic_num_sp_get | ( | int | asic, |
int * | numServicePools | ||
) |
Get number of service pools in a unit.
[in] | asic | Unit number |
[out] | numServicePools | Number of Service pools |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of service pools is successful |
BVIEW_STATUS sbapi_system_asic_num_ucq_get | ( | int | asic, |
int * | numUnicastQueues | ||
) |
Get number of unicast queues in a unit.
[in] | asic | Unit number |
[out] | numUnicastQueues | Number of Unicast queues |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of unicast queues is successful |
BVIEW_STATUS sbapi_system_asic_num_ucqg_get | ( | int | asic, |
int * | numUnicastQueueGroups | ||
) |
Get number of unicast queue groups in a unit.
[in] | asic | Unit number |
[out] | numUnicastQueueGroups | Number of Unicast queue groups |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Get number of unicast queue groups is successful |
BVIEW_STATUS sbapi_system_asic_support_1588_get | ( | int | asic, |
bool * | support1588 | ||
) |
Get whether a unit supports 1588 or not.
[in] | asic | Unit number |
[out] | support1588 | Support for 1588 |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Unit's capability for 1588 is successfully queried |
BVIEW_STATUS sbapi_system_asic_translate_from_notation | ( | char * | src, |
int * | asic | ||
) |
Get system asic number from notational asic number representation - string form.
[in] | src | Asic number in notational(string) form |
[out] | asic | System asic number |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_asic_translate_to_notation | ( | int | asic, |
char * | dst | ||
) |
Get asic number in notational representation(string) from system asic number.
[in] | asic | System asic number |
[out] | dst | Asic number in notational(string) form |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_feature_mask_get | ( | int * | featureMask | ) |
Get Supported Feature Mask.
[out] | featureMask | Supported Feature Mask |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Failed to get asic type from unit or Failed to get asic capabilites for this unit |
BVIEW_STATUS_SUCCESS | Supported Feature Mask is successfully queried |
none
BVIEW_STATUS sbapi_system_ip4_get | ( | uint8_t * | buffer, |
int | length | ||
) |
Get system IPv4 address.
[out] | buffer | IPv4 address |
[in] | length | Buffer length |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for ipv4 get is successful |
BVIEW_STATUS_UNSUPPORTED | System ipv4 get functionality is not supported on this unit |
BVIEW_STATUS sbapi_system_lag_translate_to_notation | ( | int | asic, |
int | lag, | ||
char * | dst | ||
) |
Get lag number in notational representation(string) from system lag number and asic number.
[in] | asic | System asic number |
[in] | lag | System lag number |
[out] | dst | lag number in notational(string) form |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_mac_get | ( | uint8_t * | buffer, |
int | length | ||
) |
Get system MAC address.
[out] | buffer | System MAC address |
[in] | length | Buffer length |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for mac get is successful |
BVIEW_STATUS_UNSUPPORTED | System mac get functionality is not supported on this unit |
BVIEW_STATUS sbapi_system_max_buf_snapshot_get | ( | int | asic, |
BVIEW_SYSTEM_ASIC_MAX_BUF_SNAPSHOT_DATA_t * | maxBufSnapshot, | ||
BVIEW_TIME_t * | time | ||
) |
Get snapshot of max buffers allocated.
[in] | asic | unit |
[out] | maxBufSnapshot | Max buffers snapshot |
[out] | time | time |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or system feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Snapshot get is successful |
BVIEW_STATUS_UNSUPPORTED | Snapshot get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_name_get | ( | char * | buffer, |
int | length | ||
) |
Get system name.
[out] | buffer | System name |
[in] | length | Buffer length |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
BVIEW_STATUS sbapi_system_network_os_get | ( | uint8_t * | buffer, |
int | length | ||
) |
Get Network OS.
[out] | buffer | Pointer to network OS String |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure Failed to get network os |
BVIEW_STATUS_SUCCESS | Network OS is successfully queried |
none
BVIEW_STATUS sbapi_system_num_units_get | ( | int * | unitNum | ) |
Get number of units in the system.
[out] | unitNum | Numbers of units |
BVIEW_STATUS_FAILURE | When lock acquistion fails or System feature is not avaialable or The number of units is '0' |
BVIEW_STATUS_SUCCESS | Read number of units from system feature handler sucessfully |
BVIEW_STATUS sbapi_system_port_translate_from_notation | ( | char * | src, |
int * | port | ||
) |
Get system port number from notational port number representation - string form.
[in] | src | Port number in notational(string) form |
[out] | port | System port number |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_port_translate_to_notation | ( | int | asic, |
int | port, | ||
char * | dst | ||
) |
Get port number in notational representation(string) from system port number and asic number.
[in] | asic | System asic number |
[in] | port | System port number |
[out] | dst | Port number in notational(string) form |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for name get is successful |
BVIEW_STATUS_UNSUPPORTED | System name get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_system_time_get | ( | time_t * | ptime | ) |
Get Current local time.
[out] | tm | - Pointer to tm structure |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or System feature is not present or System south bound function has returned failure |
BVIEW_STATUS_SUCCESS | System south bound function for time get is successful |
BVIEW_STATUS_UNSUPPORTED | System time get functionality is not supported on this unit none |
BVIEW_STATUS sbapi_system_uid_get | ( | uint8_t * | buffer, |
int | length | ||
) |
Get system UID.
[out] | buffer | Pointer to UID String |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure Failed to get network os |
BVIEW_STATUS_SUCCESS | UID is successfully queried |
none
BVIEW_STATUS sbapi_system_unit_to_asic_type_get | ( | int | asic, |
BVIEW_ASIC_TYPE * | asicType | ||
) |
Get asic type of a unit.
[in] | asic | Unit number |
[out] | asicType | Asic type of unit |
BVIEW_STATUS_FAILURE | When lock acquistion fails or System feature is not avaialable or The number of units is '0' or unit entry is not found |
BVIEW_STATUS_SUCCESS | Able to convert unit number to asic type sucessfully |