I've read https://en.wikipedia.org/wiki/YANG but still having problems to understand the practical use of YANG
, and the benefits it provides. As I understand, it now is used not only by NETCONF, as was originally designed. YANG
is not a language in a common sense, as C
or python
for instance, i.e. whatever we write in YANG
is not compiled or translated; as I understand is is used as a reference model for a higher level library or application. Then the question is how does the high level code understand YANG
?
相关问题
- Rails how to handle error and exceptions in model
- Laravel model returns “Undefined property: stdClas
- Confluent Schema Registry Persistence
- Rails Models and unique combinations
- Inspect Hsqldb Schema
相关文章
- laravel create model from custom stub when using p
- Twitter name length in DB
- Spark: Programmatically creating dataframe schema
- Rails: always include the milliseconds with create
- Loading and using a codeigniter model from another
- Rails: How do I run a before_save only if certain
- How to return an array instead of a collection in
- MVC3 View With Abstract Property
YANG is a specialized schema language, akin to XSD Schema or RelaxNG but (was) specific to NETCONF. Its goal is to model all content that is exchanged during protocol sessions between peers, as described in RFC6020:
The model defined by YANG may be consumed in the usual way - code generation for example, like what JAXB does for XSD Schema and Java. There are tools and server implementations out there that simply consume the YANG module set (a YANG model) and are ready to be used as dummy implementations. There are also tools that use the model to enable users to query a device, without actually implementing anything specific about the device. You could say that a set of YANG modules exposes the interface provided by a device. What you do with this interface is entirely up to you.
I suggest reading the high level overview provided in the specification:
Also check the wiki page of the ietf-netmod-yang tag.
Edit: You may also benefit from reading the An Architecture for Network Management Using NETCONF and YANG document. It further explains the architecture which YANG a is part of, including how different roles such as application developers should approach it (in the context of network management).