mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-13 04:28:33 +01:00
add alias for xmpp and softwaremodules object
This commit is contained in:
parent
2aef33aaf9
commit
96d8022ac9
3 changed files with 5 additions and 4 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include "softwaremodules.h"
|
||||
#include "routing.h"
|
||||
#include "nat.h"
|
||||
#include "xmpp.h"
|
||||
|
||||
static char *get_parameter_notification (struct dmctx *ctx, char *param);
|
||||
static int remove_parameter_notification(char *param);
|
||||
|
|
@ -124,6 +125,7 @@ struct prefix_method prefix_methods[] = {
|
|||
{ DMROOT"IPPingDiagnostics.", 1, NULL, 0, &entry_method_root_IPPingDiagnostics },
|
||||
{ DMROOT"X_INTENO_SE_SyslogCfg.", 1, NULL, 0, &entry_method_root_syslog },
|
||||
{ DMROOT"SoftwareModules.", 1, NULL, 0, &entry_method_root_software_modules },
|
||||
{ DMROOT"XMPP.", 1, NULL, 0, &entry_method_root_xmpp },
|
||||
#ifdef DATAMODEL_TR181
|
||||
{ DMROOT"Wifi.", 1, NULL, 0, &entry_method_root_Wifi },
|
||||
{ DMROOT"Ethernet.", 1, NULL, 0, &entry_method_root_Ethernet },
|
||||
|
|
|
|||
|
|
@ -222,13 +222,13 @@ char *get_softwaremodules_version(char *uuid)
|
|||
|
||||
inline int entry_softwaremodules_deploymentunit(struct dmctx *ctx)
|
||||
{
|
||||
char *idu = NULL;
|
||||
char *idu = NULL, *idu_last = NULL;
|
||||
char *permission = "1";
|
||||
struct uci_section *s = NULL;
|
||||
|
||||
uci_foreach_sections("dmmap", "deploymentunit", s) {
|
||||
init_args_du_entry(ctx, s);
|
||||
idu = update_instance(s, idu, "duinstance");
|
||||
idu = handle_update_instance(1, ctx, &idu_last, update_instance_alias, 3, s, "duinstance", "duinstance_alias");
|
||||
SUBENTRY(entry_softwaremodules_deploymentunit_instance, ctx, idu);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -203,8 +203,7 @@ inline int entry_xmpp_connection(struct dmctx *ctx)
|
|||
|
||||
uci_foreach_sections("cwmp", "xmpp_connection", s) {
|
||||
init_args_connection_entry(ctx, s);
|
||||
iconnection = update_instance(s, iconnection, "connection_instance");
|
||||
//iconnection = handle_update_instance(1, ctx, &iconnection_last, update_instance_alias, 3, s, "connection_instance", "connection_instance_alias");
|
||||
iconnection = handle_update_instance(1, ctx, &iconnection_last, update_instance_alias, 3, s, "connection_instance", "connection_instance_alias");
|
||||
SUBENTRY(entry_xmpp_connection_instance, ctx, iconnection);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue