Use 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:
Users can also query using NETCONF to get the list of models.https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
<?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 Netconf over SSH. Enable Netconf on the router on a suitable port.
-
From the client application, connect to the router using Netconf over SSH. Run Netconf operations to make configuration changes or get operational data.
Figure 2. Lane Diagram to show the router and client application operations