Loading YANG Models¶
When you start NETCONFc, the main window shows all YANG modules found in the current YANG model (or module) path. YANG Model and YANG Module are used interchangeably throughout this document.
The best practice is to organize YANG models supported by each server into its own folder, which may contain sub-folders. When connecting to a NETCONF server, only the YANG models supported by that server should be loaded into the application.
You can Modify YANG model paths, Add or Delete YANG models.
You can double-click to open a YANG module to view its contents.
Organize YANG Models¶
There are usually two ways to organize your YANG modules.
You can use a single directory to hold all YANG module files supported by a particular server. In this case NETCONFc’s YANG module path will only have a single path. This is the most simple and easy approach.
Alternatively, you may split your YANG modules and store them into different directories. In this case NETCONFc’s YANG module path will contain multiple paths.
YANG Model Path¶
In order for NETCONFc to understand the data received from the server, the YANG modules supported by the server must be loaded into NETCONFc.
When you add a YANG module file into NETCONFc, it will be validated and a syntax checking result file .res is created. After that is done a YIN (.yin) format file will also be generated in the same folder. Therefore it is critical to ensure that the NETCONFc application has permission to write to all YANG model directories chosen.
All model files (with
.yang
extension) available in the YANG Model Path are automatically loaded into NETCONFc.You can modify YANG Model Path easily by clicking the
Modify Module Path
toolbar button. Note when the recursive checkbox is turned on, all sub-folders will alao be included in the YANG model path.![]()
You can select a path from the YANG model path list to view YANG files in that directory. You can also add to or delete YANG files from that directory.
To add or delete YANG modules into an existing YANG model path, from the YANG model path list window, select a path from the dropdown list and then click Add or Delete button
![]()
NETCONFc will only attempt to regenerate .yin format file when it finds a .yin file’s timestamp is behind the corresponding .yang file.