yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
yp-system Library

The optional yp-system library provides system-wide vendor hooks into the server. More...

Collaboration diagram for yp-system Library:

Functions

void agt_static_syslib_init_profile (void)
 Override the agt_profile default initialization. More...
 
status_t agt_static_syslib_init1 (boolean pre_cli)
 Call the init1 function for the yp_system-static.a library. More...
 
status_t agt_static_syslib_init2 (boolean pre_load)
 Call the init2 function for the yp_system-static.a library. More...
 
void agt_static_syslib_cleanup (void)
 Call the cleanup function for the yp_system-static.a library. More...
 

Detailed Description

The optional yp-system library provides system-wide vendor hooks into the server.

It is generally not used for YANG module specific callbacks.

The libyp-system.so file is usually used (dlopen) but if STATIC_SERVER=1 then it can be integrated with APIs in the server instead.

Note that STATIC_SERVER=1 is more static than STATIC_LINK=1. It means that the dynamic load library (dlopen) will not be used at all and not linked into the server image.

Function Documentation

◆ agt_static_syslib_cleanup()

void agt_static_syslib_cleanup ( void  )

Call the cleanup function for the yp_system-static.a library.

Used only if STATIC_SERVER=1. Called by the server during shutdown.

◆ agt_static_syslib_init1()

status_t agt_static_syslib_init1 ( boolean  pre_cli)

Call the init1 function for the yp_system-static.a library.

Used only if STATIC_SERVER=1. This function is called twice in the server boot INIT1 phase.

  • before CLI and .conf parameters loaded
  • after CLI and .conf parameters loaded
Parameters
pre_cliTRUE if before CLI load; FALSE if after CLI load
Returns
status

◆ agt_static_syslib_init2()

status_t agt_static_syslib_init2 ( boolean  pre_load)

Call the init2 function for the yp_system-static.a library.

Used only if STATIC_SERVER=1. This function is called twice in the server boot INIT2 phase

  • before <running> datastore is loaded
  • after <running> datastore is loaded
Parameters
pre_loadTRUE if before config load; FALSE if after config load
Returns
status

◆ agt_static_syslib_init_profile()

void agt_static_syslib_init_profile ( void  )

Override the agt_profile default initialization.

Used only if STATIC_SERVER=1. Allows vendor override of agt_profile fields. Use with extreme caution!

Called after the agt_profile_t is initialized with the server defaults. Then the server will adjust (hack) the YANG module default nodes to hold the vendor values.

Here is the call graph for this function: