|
ONLP
Open Network Linux Platform APIs
|
Data Structures | |
| struct | onlp_chassis_info_s |
| Chassis Information Structure. More... | |
Typedefs | |
| typedef struct onlp_chassis_info_s | onlp_chassis_info_t |
| Chassis Information Structure. | |
Functions | |
| int | onlp_chassis_sw_init (void) |
| Initialize the chassis software module. More... | |
| int | onlp_chassis_hw_init (uint32_t flags) |
| Initialize the chassis. More... | |
| int | onlp_chassis_sw_denit (void) |
| Deinitialize the chassis software module. More... | |
| int | onlp_chassis_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *hdr) |
| Get the Chassis Header structure. More... | |
| int | onlp_chassis_info_get (onlp_oid_t oid, onlp_chassis_info_t *info) |
| Get the chassis info structure. More... | |
| int | onlp_chassis_info_to_user_json (onlp_chassis_info_t *info, cJSON **cj, uint32_t flags) |
| Convert a chassis info structure to user JSON. More... | |
| int | onlp_chassis_info_to_json (onlp_chassis_info_t *info, cJSON **cj, uint32_t flags) |
| Convert a chassis info structure to JSON. More... | |
| int | onlp_chassis_info_from_json (cJSON *cj, onlp_chassis_info_t *info) |
| Convert a JSON object to a chassis info structure. More... | |
| int | onlp_chassis_environment_to_json (cJSON **cjp, uint32_t flags) |
| Get the user or full environmental json data. More... | |
| int | onlp_chassis_environment_show (aim_pvs_t *pvs, uint32_t flags) |
| Show the environmental data. More... | |
| int | onlp_chassis_debug_get_json (cJSON **rv) |
| Construct the Chassis debug JSON object. More... | |
| int | onlp_chassis_debug_show (aim_pvs_t *pvs) |
| Show the Chassis debug information. `*. More... | |
| int onlp_chassis_debug_get_json | ( | cJSON ** | rv | ) |
Construct the Chassis debug JSON object.
| [out] | rv | Receives the JSON object. |
| int onlp_chassis_debug_show | ( | aim_pvs_t * | pvs | ) |
Show the Chassis debug information. `*.
| pvs | The output pvs. |
| int onlp_chassis_environment_show | ( | aim_pvs_t * | pvs, |
| uint32_t | flags | ||
| ) |
Show the environmental data.
| pvs | The output pvs. |
| flags | Zero or ONLP_OID_JSON_FLAG_TO_USER_JSON only. |
| int onlp_chassis_environment_to_json | ( | cJSON ** | cjp, |
| uint32_t | flags | ||
| ) |
Get the user or full environmental json data.
| [out] | cjp | Receives the JSON data. |
| flags | Zero or ONLP_OID_JSON_FLAG_TO_USER_JSON only. |
with keys in the following order: Chassis Fans Chassis Thermals Chassis PSUs
| int onlp_chassis_hdr_get | ( | onlp_oid_t | oid, |
| onlp_oid_hdr_t * | hdr | ||
| ) |
Get the Chassis Header structure.
| oid | The Chassis oid. | |
| [out] | hdr | Receives the hdr. |
| int onlp_chassis_hw_init | ( | uint32_t | flags | ) |
Initialize the chassis.
| flags | The initialization flags. |
| int onlp_chassis_info_from_json | ( | cJSON * | cj, |
| onlp_chassis_info_t * | info | ||
| ) |
Convert a JSON object to a chassis info structure.
| cj | The JSON object. | |
| [out] | info | Receives the chassis info. |
| int onlp_chassis_info_get | ( | onlp_oid_t | oid, |
| onlp_chassis_info_t * | info | ||
| ) |
Get the chassis info structure.
| oid | The Chassis oid. | |
| [out] | info |
| int onlp_chassis_info_to_json | ( | onlp_chassis_info_t * | info, |
| cJSON ** | cj, | ||
| uint32_t | flags | ||
| ) |
Convert a chassis info structure to JSON.
| info | The chassis info structure. | |
| [out] | cj | Receives the JSON object. |
| flags | The JSON format flags. |
| int onlp_chassis_info_to_user_json | ( | onlp_chassis_info_t * | info, |
| cJSON ** | cj, | ||
| uint32_t | flags | ||
| ) |
Convert a chassis info structure to user JSON.
| info | The chassis info structure. | |
| [out] | cj | Receives the JSON object. |
| flags | The JSON format flags. |
| int onlp_chassis_sw_denit | ( | void | ) |
Deinitialize the chassis software module.
| int onlp_chassis_sw_init | ( | void | ) |
Initialize the chassis software module.
1.8.13