![]() ![]() ![]() YANG its self is not sent to a network device, rather an XML document or JSON object is created based on a YANG model. When configuring network gear with NETCONF or RESTCONF the data you send must be of the proper type and structure that the router can understand, this is what YANG helps with. You can think of YANG as a set of rules detailing how data should be structured and what type the data is. It can be used to model both configuration data and operational data. A Brief YANG Introduction to Set the Stage This is also not a deep dive into YANG, though I will touch on some things as it is necessary. I will not go in depth about NETCONF/RESTCONF or automation tools in this post. The intent of this post is to demonstrate a few methods to interpret a YANG model and begin creating an XML document. So I wanted to talk about a few methods I used to help understand YANG. I found YANG to be difficult to interpret and often I came up short when searching google for help. When I first began exploring NETCONF building a proper XML document was a struggle for me. Something I feel like I don’t see enough of is information on interpreting YANG models and building XML documents to be used for network configuration.
0 Comments
Leave a Reply. |