Introduced advanced strategy for parsing of YANG schemas
- This strategy increases convergence time, because it does not
parse files with unsatisfied dependencies.
- New strategy for schema parsing in runtime uses two separate parser
Minimalistic - is used when YANG source is discovered and scans only
for module name, revision and dependency information
Full - parses set of YANG sources and creates model representation.
When bundle is added / removed - tracker gets yang sources,
registers it to SchemaResolver, which immediatelly uses
Minimalistic parser to obtain base information.
Then context of all known sources and their dependencies is sorted
and filtered only to use sources which has their dependencies resolved.
Full parser is then invoked only for models, which have dependencies
resolved.
Change-Id: Ic62fbd86929866a21f4dbd3c62e73a02d423d7bf
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>