* Generilized top-level yang parsing functions

* Clarified semantics of main yang module:
    * -y option to commands MUST specify filename
    * CLICON_YANG_MODULE_MAIN MUST specify a module
    * yang_parse() changed to take either filename or module name and revision.
  * Removed clicon_dbspec_name[_set]().
    * Use yang_main_module_name() instead.
  * Replaced yang_spec_main with yang_spec_parse_module
  * Added yang_spec_parse_file
This commit is contained in:
Olof hagsand 2018-10-07 11:04:33 +02:00
parent 782f75a7b9
commit acb8748470
21 changed files with 369 additions and 340 deletions

View file

@ -351,9 +351,9 @@ module clixon-config {
}
leaf CLICON_MODULE_LIBRARY_RFC7895 {
type boolean;
default false;
default true;
description "Enable RFC 7895 YANG Module library support as state
data. Ifenabled, module info will appear when doing
data. If enabled, module info will appear when doing
netconf get or restconf GET";
}
leaf CLICON_STREAM_DISCOVERY_RFC5277 {