yumapro
24.10-3
YumaPro SDK
|
RESTCONF protocol operation support. More...
Functions | |
status_t | agt_restconf_setup_fields_nodes (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, boolean *errdone) |
Setup fields nodes if parameter is used. More... | |
status_t | agt_restconf_validate_method_params (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg) |
validate that the operation is supported for the URI parameters given. More... | |
status_t | agt_restconf_init (void) |
Initialize the agt_restconf module. More... | |
void | agt_restconf_cleanup (void) |
Cleanup the agt_yangapi module. More... | |
boolean | agt_restconf_dispatch (ses_cb_t *scb) |
Dispatch an incoming RESTCONF request. More... | |
boolean | agt_restconf_dispatch_ex (ses_cb_t *scb, boolean scb_is_static) |
Dispatch an incoming RESTCONF request (Extended) More... | |
boolean | agt_restconf_dispatch_gnmi_get (ses_cb_t *scb) |
Dispatch an incoming gNMI GET request with help of RESTCONF. More... | |
agt_restconf_data_t * | agt_restconf_get_context (void) |
Get the RESTCONF Context structure. More... | |
val_value_t * | agt_restconf_get_root (void) |
Get the RESTCONF Context root val_value_t node. More... | |
status_t | agt_restconf_static_restmon_init1 (void) |
Load the ietf-restconf-monitoring SIL even if it is statically linked. More... | |
status_t | agt_restconf_static_restmon_init2 (void) |
Call the ietf-restconf-monitoring init2 function. More... | |
void | agt_restconf_static_restmon_cleanup (void) |
Call the cleanup function for the ietf-restconf-monitoring module. More... | |
RESTCONF protocol operation support.
Handle request URIs by mapping to a request control block. Then process with RESTCONF and/or NETCONF response handling code
void agt_restconf_cleanup | ( | void | ) |
Cleanup the agt_yangapi module.
Called by the server during shutdown.
boolean agt_restconf_dispatch | ( | ses_cb_t * | scb | ) |
Dispatch an incoming RESTCONF request.
scb | session control block |
boolean agt_restconf_dispatch_ex | ( | ses_cb_t * | scb, |
boolean | scb_is_static | ||
) |
Dispatch an incoming RESTCONF request (Extended)
scb | session control block if scb->type already set to SES_TYPE_COAP then the IO will be collected in the session |
scb_is_static | true if this is a static scb entry, such as CoAP |
boolean agt_restconf_dispatch_gnmi_get | ( | ses_cb_t * | scb | ) |
Dispatch an incoming gNMI GET request with help of RESTCONF.
The output will not be written into the stream.
scb->stream_output = FALSE !!!
The server will generate &scb->outQ Queue with output buffers, gNMI agent will utilize this buffers to write the actual output to connected subsystem.
scb | session control block |
agt_restconf_data_t * agt_restconf_get_context | ( | void | ) |
Get the RESTCONF Context structure.
val_value_t * agt_restconf_get_root | ( | void | ) |
Get the RESTCONF Context root val_value_t node.
status_t agt_restconf_init | ( | void | ) |
Initialize the agt_restconf module.
status_t agt_restconf_setup_fields_nodes | ( | ses_cb_t * | scb, |
yangapi_cb_t * | rcb, | ||
rpc_msg_t * | msg, | ||
boolean * | errdone | ||
) |
Setup fields nodes if parameter is used.
scb | session to use | |
rcb | restapi control block to use | |
msg | message in progress | |
[out] | errdone | address of error done flag *errdone TRUE if error already recorded |
void agt_restconf_static_restmon_cleanup | ( | void | ) |
Call the cleanup function for the ietf-restconf-monitoring module.
Only present if STATIC_LINK=1
status_t agt_restconf_static_restmon_init1 | ( | void | ) |
Load the ietf-restconf-monitoring SIL even if it is statically linked.
Only present if STATIC_LINK=1
status_t agt_restconf_static_restmon_init2 | ( | void | ) |
Call the ietf-restconf-monitoring init2 function.
Only present if STATIC_LINK=1
status_t agt_restconf_validate_method_params | ( | ses_cb_t * | scb, |
yangapi_cb_t * | rcb, | ||
rpc_msg_t * | msg | ||
) |
validate that the operation is supported for the URI parameters given.
Errors are recorded by this function. Do not call record_error again if error returned
scb | session control block to use |
rcb | restapi control block to use |
msg | msg to use for storing error records |