ONLP
Open Network Linux Platform APIs
Data Structures | Typedefs | Functions
chassis.h File Reference

Chassis OID Interface. More...

#include <onlp/onlp_config.h>
#include <onlp/onlp.h>
#include <onlplib/onie.h>
#include <onlplib/pi.h>
#include <onlp/oids.h>

Go to the source code of this file.

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...
 

Detailed Description

Chassis OID Interface.

The Chassis OID represents the root of the system OID tree. There must be one and only one Chassis OID.