Have you ever tried out Cisco YANG Suite but? YANG Suite offers community operators with a set of instruments and plugins to work together with and take a look at YANG programmable interfaces together with NETCONF, RESTCONF, gNMI, and extra.
In Episode 58 of DevNet Snack Minute, Jeremy Cohoe (Technical Advertising Engineer with Cisco Programs) offers us with an outline of the brand new updates included within the newest model of Cisco YANG Suite.
To seek out out much more about YANG Suite, take a look at the sooner Snack Minute, Episode 9, the place Jeremy offers an introduction to the preliminary public launch of YANG Suite.
YANG Suite Introduction
Jeremy begins by giving us an introduction to the YANG API Testing and Validation Atmosphere, also called YANG Suite. YANG Suite is a set of tooling which can be utilized to work together with Cisco working techniques and the YANG-based APIs (NETCONF, RESTCONF, gNMI, gRPC).
YANG Suite was initially launched in January of 2021 (see Episode 9). Now, YANG Suite is preparing for its second launch, which incorporates plugins for RESTCONF and gNMI.
Tip: To get began with YANG Suite your self, begin on the fundamental YANG Suite web page, the place yow will discover hyperlinks to documentation and the Studying Lab. It’s also possible to clone the repo instantly from GitHub, construct the Docker container, and get began there. Moreover, the following launch will help set up by pip.
YANG Suite RESTCONF plugin
Bounce to this part of the video.
Jeremy then offers us an outline of the primary new plugin, YANG Suite RESTCONF. This plugin permits us to load that knowledge mannequin and work together with it utilizing the Swagger UI, a point-and-click interface to REST. YANG Suite abstracts the YANG knowledge fashions right into a REST format that builders are accustomed to, making it simpler to work with the API.
Subsequent, Jeremy offers us a quick demonstration of the RESTCONF plugin, strolling by loading the Cisco-iOS-XE-native knowledge mannequin and dealing with the Loopback interface.
From the NETCONF plugin, YANG Suite may also generate Python scripts in addition to Ansible YAML, which might be plugged into Ansible or to different CI/CD techniques as wanted. This performance may additionally come quickly to the RESTCONF plugin.
How YANG Suite is used
Jeremy defined to us that YANG Suite is primarily getting used for administration and testing—to know the APIs, extract that knowledge, and put it into different techniques and toolings.
Within the subsequent launch, gRPC Dial-Out with TLS Assist will permit YANG Suite to function an energetic middleman to obtain telemetry knowledge and push it out for integrations with different companies equivalent to Elasticsearch.
YANG Suite has been round for 5 years internally at Cisco, however it has been growing shortly since its public launch.
YANG Suite gNMI plugin
The second function from this newest launch is the YANG Suite gNMI plugin. This can be a full-featured gNMI consumer which helps Get, Set, and Subscribe operations. It really works with each OpenConfig and native knowledge fashions. Jeremy notes that that is just like NETCONF, the place we construct the info mannequin, make config modifications (for instance, get/set), after which ship that JSON-encoded payload to the API. He then walks us by an indication.
We stay up for the brand new options popping out within the subsequent launch of YANG Suite, anticipated quickly in 2022!
Need extra? DevNet Snack Minute is your weekly, ten-minute protection of all issues DevNet. Every episode is hosted by Matt DeNapoli, Supervisor of Developer Advocacy (@theDeNap) and Kareem Iskander, Sr. Tech Advocate with Cisco Studying & Certifications (@Kareem_isk). It’s an effective way to study Cisco APIs, coding, and different cool stuff. Subscribe to the DevNet Snack Minute YouTube Channel to remain linked!
We’d love to listen to what you assume. Ask a query or depart a remark beneath.
And keep linked with Cisco DevNet on social!
LinkedIn | Twitter @CiscoDevNet | Fb | Developer Video Channel