12#if defined(WITH_GNMI) && defined(WITH_RESTCONF) && defined(WITH_YCONTROL)
88typedef struct ypgnmi_get_cb_t_ {
111typedef struct ypgnmi_edit_t_ {
144typedef struct ypgnmi_edit_cb_t_ {
262 const xmlChar *edit_id,
dlq provides general double-linked list and queue support:
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
restconf_content_t
RESTCONF content query param enumeration.
Definition: yangapi.h:215
void ypgnmi_free_gcb(ypgnmi_get_cb_t *cb)
Clean and free a ypgnmi_get_cb_t control block.
Definition: ypgnmi.c:112
ypgnmi_edit_t * get_next_edit_entry(ypgnmi_edit_t *entry)
Get the next edit entry in the editsQ.
Definition: ypgnmi.c:168
ypgnmi_edit_cb_t * ypgnmi_new_ecb(void)
Create a new ypgnmi_edit_cb_t control block.
Definition: ypgnmi.c:270
void ypgnmi_free_edit(ypgnmi_edit_t *entry)
Free a yp-gnmi Edit entries.
Definition: ypgnmi.c:241
ypgnmi_edit_t * get_first_edit_entry(ypgnmi_edit_cb_t *cb)
Get the first edit entry in editsQ.
Definition: ypgnmi.c:141
void ypgnmi_set_edit_status(rpc_msg_t *msg, const xmlChar *edit_id, status_t res)
Set the error status to the gNMI edit.
Definition: ypgnmi.c:341
boolean ypgnmi_check_edits_status(ypgnmi_edit_cb_t *ecb)
Check if any of the requested edits failed.
Definition: ypgnmi.c:380
ypgnmi_get_cb_t * ypgnmi_new_gcb(void)
Create a new ypgnmi_get_cb_t control block.
Definition: ypgnmi.c:89
void ypgnmi_free_ecb(ypgnmi_edit_cb_t *cb)
Clean and free a ypgnmi_edit_cb_t control block.
Definition: ypgnmi.c:294
ypgnmi_edit_t * ypgnmi_new_edit(xmlChar *path_str, xmlChar *input, op_editop_t editop)
Create a new yp-gnmi Edit entriy.
Definition: ypgnmi.c:197
status_t
global error return code
Definition: status_enum.h:210
YANG module data structures Many internal representations of YANG module constructs.
Global error messages for status code enumerations.
global error status code enumerations
One YANG data-def-stmt.
Definition: obj.h:1229
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:181
one value to match one type
Definition: val.h:912
gNMI Edit Control Block
Definition: ypgnmi.h:144
dlq_hdr_t editsQ
edits: Q of ypgnmi_edit_t
Definition: ypgnmi.h:146
xmlChar * prefix_str
malloced! Specified Path for the get request
Definition: ypgnmi.h:149
Delete/Replace/Update edit requests Q.
Definition: ypgnmi.h:111
op_editop_t editop
edit request operation
Definition: ypgnmi.h:125
val_value_t * value
malloced! Specified Value for the Replace/Upodate requests NULL if the op is DELETE
Definition: ypgnmi.h:139
xmlChar * path_str
malloced! back-ptr Specified Path for the delete request
Definition: ypgnmi.h:117
status_t res
status of the edit
Definition: ypgnmi.h:128
const xmlChar * error_details
some specific error details of the edit
Definition: ypgnmi.h:131
obj_template_t * target_obj
backptr inside schema_tree to target object
Definition: ypgnmi.h:134
xmlChar * input
malloced! Specified Input for the Replace/Upodate requests NULL if the op is DELETE
Definition: ypgnmi.h:122
gNMI GET control block
Definition: ypgnmi.h:88
xmlChar * prefix_str
malloced! Specified Path for the get request
Definition: ypgnmi.h:91
xmlChar * path_str
malloced! back-ptr Specified Path for the get request
Definition: ypgnmi.h:94
val_value_t * request_target
backptr inside root_tree to the target value
Definition: ypgnmi.h:105
obj_template_t * target_obj
backptr inside schema_tree to the target object
Definition: ypgnmi.h:102
restconf_content_t content_enum
content parameter from RESTCONF ALL by default
Definition: ypgnmi.h:99
Value Node Basic Support.
YANG-API definitions (pre-RESTCONF)