yumapro  23.10T-8
YumaPro SDK
Loading...
Searching...
No Matches
agt_sm.c File Reference

Handler for handling yumaworks-schema-mount module and parsing process for sm-config CLI parameter. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "procdefs.h"
#include "agt.h"
#include "agt_profile.h"
#include "agt_util.h"
#include "agt_sm.h"
#include "agt_sm_ietf.h"
#include "agt_sil_lib.h"
#include "agt_ncx_load.h"
#include "dlq.h"
#include "json_parse.h"
#include "xml_parse.h"
#include "log.h"
#include "ncx.h"
#include "ncxconst.h"
#include "ncxmod.h"
#include "obj.h"
#include "status.h"
#include "typ.h"
#include "val.h"
#include "val_child.h"
#include "val_util.h"
#include "sm.h"
#include "yumaworks-sm-yanglib.h"
Include dependency graph for agt_sm.c:

Functions

status_t agt_sm_init (void)
 Phase 1: Initialize the yumaworks-schema-mount server instrumentation library and other server SM handling. More...
 
void agt_sm_cleanup (void)
 Cleanup the yumaworks-schema-mount server instrumentation library and other server SM handling. More...
 
val_value_tagt_sm_get_config (void)
 Get the sm-config value node. More...
 
status_t agt_sm_stop_wait_bundle (ncx_sm_rootcb_t *rootcb, const xmlChar *bundle)
 Stop waiting for the specified bundle. More...
 

Detailed Description

Handler for handling yumaworks-schema-mount module and parsing process for sm-config CLI parameter.

module: yumaworks-schema-mount structure schema-mount: +–rw sm-config* [mp-module mp-label] +–rw mp-module yang:yang-identifier +–rw mp-label yang:yang-identifier +–rw mp-config? boolean +–rw mp-cli +–rw annotation* yt:NcModuleSpec +–rw bundle* nt:NcxName +–rw deviation* yt:NcModuleSpec +–rw feature-enable-default? boolean +–rw feature-enable* yt:FeatureSpec +–rw feature-disable* yt:FeatureSpec +–rw loadpath? yt:NcPathList +–rw module* yt:NcModuleSpec

Example of JSON sm-coinfig file: { "yumaworks-schema-mount:schema-mount" : { "sm-config" : [ { "mp-module" : "sm-example", "mp-label" : "example1", "mp-config" : true, "mp-cli" : { "module" : [ "sm-example2" ] } } ] } }