3  SDK QuickStart

This section gives a quick overview for those who want to get started with the netconfd-pro server without reading the entire manual first.  It is assumed that the appropriate programs have been installed and configured correctly.

3.1  Get the YANG Modules Ready

3.2  Generate the Instrumentation Code Stubs

The server instrumentation code stubs are used to hook YANG data models to system instrumentation.

3.2.1  SIL

 

  > make_sil_dir_pro --split test --sil-get2 --sil-edit2

 

 

3.2.2  SIL Bundle

 

  > make_sil_bundle if-bundle ietf-interfaces acme-interface-extensions \
    
--sil-get2 --sil-edit2

 

 

3.2.3  SIL-SA

 

  > make_sil_sa_dir --split test --sil-get2 --sil-edit2

 

 

 

3.2.4  SIL-SA Bundle

 

  > make_sil_sa_bundle if-bundle ietf-interfaces iana-if-type \

    acme-interface-extensions --sil-get2 --sil-edit2

 

 

3.3  Fill in the Instrumentation Code Stubs

The code stubs will contain comments indicating where you need to add instrumentation code to process a configuration edit or retrieval request.  Refer to the SIL Callback Interface section on the details of these functions.

Generally, the val_value_t parameter “newval” contains the new value for an edit and the parameter “curval” contains the current value.  This will be NULL if the node is being created. The macros in ncx/val.c (e.g, VAL_UINT32(val)) are used to access these parameters.