yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
Agent Support for YANG Schema Mount
Collaboration diagram for Agent Support for YANG Schema Mount:

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

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" ]
               }
           }
        ]
    }
}

Function Documentation

◆ agt_sm_cleanup()

void agt_sm_cleanup ( void  )

Cleanup the yumaworks-schema-mount server instrumentation library and other server SM handling.

Called by server when module is unloaded.

Here is the call graph for this function:

◆ agt_sm_get_config()

val_value_t * agt_sm_get_config ( void  )

Get the sm-config value node.

Used for the SIL-SA <config-response> message

Returns
pointer to the sm-config val_value_t tree

◆ agt_sm_init()

status_t agt_sm_init ( void  )

Phase 1: Initialize the yumaworks-schema-mount server instrumentation library and other server SM handling.

Called by server when module is loaded.

Returns
return status.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ agt_sm_stop_wait_bundle()

status_t agt_sm_stop_wait_bundle ( ncx_sm_rootcb_t rootcb,
const xmlChar *  bundle 
)

Stop waiting for the specified bundle.

Make the yanglib for the node if no more bundles waiting

Parameters
rootcbroot control block to use
bundlebundle name to load YANG library for
Returns
status
Here is the call graph for this function:
Here is the caller graph for this function: