TR181-XPON
1.4.0
TR-181 PON manager.
|
#include <stdbool.h>
#include <amxc/amxc_variant.h>
Go to the source code of this file.
Functions | |
void | pon_ctrl_init (void) |
void | pon_ctrl_set_enable (const char *const path, bool enable) |
int | pon_ctrl_get_list_of_instances (const char *const path, amxc_var_t *ret) |
int | pon_ctrl_get_object_content (const char *const path, uint32_t index, amxc_var_t *ret) |
int | pon_ctrl_get_param_values (const char *const path, const char *const names, amxc_var_t *ret) |
void | pon_ctrl_handle_file_descriptor (int fd) |
void | pon_ctrl_set_password (const char *const ani_path, const char *const password, bool hex) |
Functionality related to calling functions in the 'pon_ctrl' namespace registered by the vendor module.
Definition in file pon_ctrl.h.
int pon_ctrl_get_list_of_instances | ( | const char *const | path, |
amxc_var_t * | ret | ||
) |
Ask vendor module which instances exist for a template object.
[in] | path | path to template object, e.g. "XPON.ONU" or "XPON.ONU.1.SoftwareImage" |
[in,out] | ret | function returns result via this parameter. See below for more info. |
The param ret should be an htable with following keys upon success:
Definition at line 187 of file pon_ctrl.c.
int pon_ctrl_get_object_content | ( | const char *const | path, |
uint32_t | index, | ||
amxc_var_t * | ret | ||
) |
Ask vendor module for the content (parameter values) of an object.
[in] | path | object path. This can be a singleton or template object. |
[in] | index | instance index when querying the content of an instance. Must be 0 when querying a singleton. |
[in,out] | ret | function returns result via this parameter. See below for more info. |
The param ret should be an htable with following keys upon success:
Definition at line 216 of file pon_ctrl.c.
int pon_ctrl_get_param_values | ( | const char *const | path, |
const char *const | names, | ||
amxc_var_t * | ret | ||
) |
Ask vendor module for the values of one or more parameters of an object.
[in] | path | object path of a singleton or an instance |
[in] | names | parameter names formatted as a comma-separated list. The vendor module might support passing max 1 parameter name. Example: "RxPower". |
[in,out] | ret | function returns result via this parameter. See below for more info. |
The param ret should be an htable with following keys upon success:
Definition at line 248 of file pon_ctrl.c.
void pon_ctrl_handle_file_descriptor | ( | int | fd | ) |
Ask vendor module to handle (a message arriving on) a file descriptor.
[in] | fd | the file descriptor to handle |
Examples for the file descriptor:
Definition at line 277 of file pon_ctrl.c.
void pon_ctrl_init | ( | void | ) |
Initialize the pon_ctrl part of this plugin.
The function forwards value of MAX_NR_OF_ONUS to the vendor module.
The plugin must call this function once at startup, after loading the vendor module.
Definition at line 142 of file pon_ctrl.c.
void pon_ctrl_set_enable | ( | const char *const | path, |
bool | enable | ||
) |
Let vendor module know that a read-write Enable field was changed.
[in] | path | path of object whose Enable field was changed, e.g., "XPON.ONU.1", or "XPON.ONU.1.ANI.1" |
[in] | enable | true if Enable field was set to true, else false |
Definition at line 153 of file pon_ctrl.c.
void pon_ctrl_set_password | ( | const char *const | ani_path, |
const char *const | password, | ||
bool | hex | ||
) |
Ask vendor module to apply the password.
[in] | ani_path | path to ANI instance, e.g. "XPON.ONU.1.ANI.1" |
[in] | password | new value for the parameter Password of the ANI referred to by ani_path |
[in] | hex | false if password is in ASCII format; true if password is in hexadecimal format |
Definition at line 295 of file pon_ctrl.c.