-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
None
Please include the "name" (module or submodule or file name...)
Requirement enforced by Yang parser to convert the source to schema.
When receiving the file first time, we have this information.
So we need to save it for when we will doing the inverse process (string ->schema)
https://tools.ietf.org/html/rfc6020#section-5.2
5.2. File Layout
YANG modules and submodules are typically stored in files, one module
or submodule per file. The name of the file SHOULD be of the form:
module-or-submodule-name ['@' revision-date] ( '.yang' / '.yin' ) YANG compilers can find imported modules and included submodules via
this convention. While the YANG language defines modules, tools may
compile submodules independently for performance and manageability
reasons. Errors and warnings that cannot be detected during
submodule compilation may be delayed until the submodules are linked
into a cohesive module.