Using Data models
![](/c/dam/en/us/td/i/300001-400000/360001-370000/364001-365000/364902.eps/_jcr_content/renditions/364902.jpg)
The above illustration gives a quick snap shot of how YANG can be used with Netconf in configuring a network device using a client application.
The tasks that help the user to implement Data model configuration are listed here.
-
Load the software image ; the YANG models are a part of the software image. Alternatively, the YANG models can also be downloaded from: https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
Users can also query using NETCONF to get the list of models. <?xml version="1.0" encoding="utf-8"?> <rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type="subtree"> <netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"> <schemas/> </netconf-state> </filter> </get> </rpc>
-
Communication between the router and the application happens by SSH on Netconf. Enable Netconf on the router on a suitable port.
-
From the client application, connect to the router using Netconf on SSH. Run Netconf operations to make configuration changes or get operational data.
![](/c/dam/en/us/td/i/300001-400000/360001-370000/365001-366000/365313.eps/_jcr_content/renditions/365313.jpg)