mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
Index: obuspa-9.0.0.13/src/core/cli_server.c
|
|
===================================================================
|
|
--- obuspa-9.0.0.13.orig/src/core/cli_server.c
|
|
+++ obuspa-9.0.0.13/src/core/cli_server.c
|
|
@@ -753,6 +753,15 @@ int ExecuteCli_Get(char *arg1, char *arg
|
|
}
|
|
#endif
|
|
|
|
+ char *path[2] = {0};
|
|
+
|
|
+ path[0] = arg1;
|
|
+ if (arg1 == NULL) {
|
|
+ vendor_create_dm_cache(path, 0);
|
|
+ } else {
|
|
+ vendor_create_dm_cache(path, 1);
|
|
+ }
|
|
+
|
|
// Exit if unable to get a list of all parameters referenced by the expression
|
|
STR_VECTOR_Init(¶ms);
|
|
INT_VECTOR_Init(&group_ids);
|
|
Index: obuspa-9.0.0.13/src/core/data_model.h
|
|
===================================================================
|
|
--- obuspa-9.0.0.13.orig/src/core/data_model.h
|
|
+++ obuspa-9.0.0.13/src/core/data_model.h
|
|
@@ -371,5 +371,6 @@ bool DM_PRIV_IsChildOf(char *path, dm_no
|
|
bool DM_PRIV_IsChildNodeOf(dm_node_t *node, dm_node_t *parent_node);
|
|
bool DM_PRIV_AreAllChildrenGroupId(dm_node_t *parent, int group_id);
|
|
|
|
+int vendor_create_dm_cache(char *paths[], int num_paths);
|
|
#endif
|
|
|
|
Index: obuspa-9.0.0.13/src/core/handle_get.c
|
|
===================================================================
|
|
--- obuspa-9.0.0.13.orig/src/core/handle_get.c
|
|
+++ obuspa-9.0.0.13/src/core/handle_get.c
|
|
@@ -143,6 +143,7 @@ void MSG_HANDLER_HandleGet(Usp__Msg *usp
|
|
ExpandGetPathExpression(i, path_exprs[i], (int)depth, &get_expr_info[i], &ggv);
|
|
}
|
|
|
|
+ vendor_create_dm_cache(path_exprs, num_path_expr);
|
|
// Get all parameters
|
|
GROUP_GET_VECTOR_GetValues(&ggv);
|
|
|