TR181-XPON
1.4.0
TR-181 PON manager.
|
#include <amxc/amxc.h>
#include <amxc/amxc_macros.h>
#include "ani.h"
#include "object_intf_priv.h"
#include "password.h"
#include "persistency.h"
#include "pon_ctrl.h"
#include "restore_to_hal.h"
#include "xpon_trace.h"
Go to the source code of this file.
Functions | |
static int | isdot (int c) |
static void | onu_or_ani_enable_changed (const amxc_var_t *const event_data, bool onu) |
void | _onu_enable_changed (UNUSED const char *const event_name, const amxc_var_t *const event_data, UNUSED void *const priv) |
void | _ani_enable_changed (UNUSED const char *const event_name, const amxc_var_t *const event_data, UNUSED void *const priv) |
void | _interface_object_added (UNUSED const char *const event_name, const amxc_var_t *const event_data, UNUSED void *const priv) |
void | _status_changed (UNUSED const char *const event_name, const amxc_var_t *const event_data, UNUSED void *const priv) |
void | _password_changed (UNUSED const char *const event_name, const amxc_var_t *const event_data, UNUSED void *const priv) |
Handles functions called by the Ambiorix framework upon certain events triggered by changes to the XPON DM.
The file odl/tr181-xpon_definition.odl specifies which functions the Ambiorix framework should call upon certain events. E.g., the file specifies that Ambiorix should call the function
Definition in file dm_events.c.
void _ani_enable_changed | ( | UNUSED const char *const | event_name, |
const amxc_var_t *const | event_data, | ||
UNUSED void *const | priv | ||
) |
The Enable param of an XPON.ONU.x.ANI instance changed value.
[in] | event_data | has path and new value of the Enable param which changed value. |
Definition at line 169 of file dm_events.c.
void _interface_object_added | ( | UNUSED const char *const | event_name, |
const amxc_var_t *const | event_data, | ||
UNUSED void *const | priv | ||
) |
The component added an instance of an interface object.
[in] | event_data | has path and index of instance added |
The function attaches private data to the instance to support the LastChange parameter.
Definition at line 184 of file dm_events.c.
void _onu_enable_changed | ( | UNUSED const char *const | event_name, |
const amxc_var_t *const | event_data, | ||
UNUSED void *const | priv | ||
) |
The Enable param of an XPON.ONU instance changed value.
[in] | event_data | has path and new value of the Enable param which changed value. |
Definition at line 156 of file dm_events.c.
void _password_changed | ( | UNUSED const char *const | event_name, |
const amxc_var_t *const | event_data, | ||
UNUSED void *const | priv | ||
) |
The Password parameter of an ANI instance changed value.
[in] | event_data | contains both the path of TC.Authentication object of the ANI instance whose Password parameter changed value, and the new value for that Password |
The function does not need to check if the password is valid: _check_password() already did that.
The function (indirectly) forwards the value to:
Definition at line 219 of file dm_events.c.
void _status_changed | ( | UNUSED const char *const | event_name, |
const amxc_var_t *const | event_data, | ||
UNUSED void *const | priv | ||
) |
The Status parameter of an interface object changed value.
[in] | event_data | has path of object whose Status parameter changed value |
The function updates the 'last_change' timestamp in the private data attached to the object.
Definition at line 198 of file dm_events.c.
|
static |
|
static |
The Enable param of an XPON.ONU or XPON.ONU.x.ANI instance changed value.
[in] | event_data | has path and new value of the Enable param which changed value. |
[in] | onu | If true, Enable of an ONU instance changed, else Enable of an ANI instance changed |
The function forwards the value to:
When enabling an ONU, avoid enabling the ONU while tr181-xpon is still busy querying whether the ONU has EthernetUNI and ANI instances. Schedule a task to enable the ONU in the near future.
restore_to_hal part maybe still has task to enable the object towards the hal. Remove that task if this function asks to disable the object.
Definition at line 107 of file dm_events.c.