- Print
- PDF
The Yet Another Next Generation (YANG) models are stored on the device as part of the firmware package. In order to retrieve them the user must use a NETCONF tool, for instance:
- SSH console
- Tools from Cisco orchestrator (e.g.: Yang Explorer): https://github.com/CiscoDevNet/yang-explorer or Cisco YANG suite: https://github.com/CiscoDevNet/yangsuite
- Tools from MG-Soft (e.g.: MG Soft NETCONF Browser)
Basic SSH Console NETCONF Tool
For the most basic NETCONF tool, SSH console, YANG models can be acquired by sending specific requests.
Note: Both NETCONF request and response are in XML format.
To send the proper requests:
Connect Accedian NETCONF device by entering:
ssh admin@10.230.111.130 -p 830 -s netconfSend HELLO message to device by entering:
< ?xml version="1.0" encoding="UTF-8"? >
< hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" >
< capabilities >
< capability >urn:ietf:params:netconf:base:1.0< /capability>
< /capabilities >
< /hello >
]]>]]>Send the request to acquire information regarding all available YANG schema by entering:
< rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" >
< get >
< filter >
< netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"
< schemas/ >
< /netconf-state >
< /filter >
< /get >
< ]>]]>Send the request to acquire a specific YANG schema, for example “accedian-alarm” model, by entering:
< rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" >
< get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring" >
< identifier >accedian-alarm< /identifier >
< version >2017-12-15< /version >
< format >yang< /format >
< /get-schema >
< /rpc >
]]>]]>Close the session by entering:
< rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" >< close-session/ >
< /rpc >]]>]]>
Additional UI NETCONF Tools
For additional UI NETCONF tools (YANG Explorer, or MG Soft NETCONF browser), the Accedian device must be connected prior to running the corresponding built-in UI functions.
To acquire YANG models by using YANG Explorer:
The overview information regarding all YANG schemas on the device can be listed as shown below:
The request can be sent in order to get a specific YANG file. Note that the RPC created automatically by YANG Explorer will not work. The request must be customized by removing the lines that read < get > and < filter >.
YANG Explorer 0.8.0 (Beta) supports the functionality to download YANG files directly, but can be unstable.
To acquire YANG models by using YANG Suite:
Install Cisco YANG Suite: https://github.com/CiscoDevNet/yangsuite (Cisco YANG Suite document: https://developer.cisco.com/docs/yangsuite/ )
Access Docker via WEB browser:
a. Login: http://localhost:8480/
b. Create a new device profile and SSH session:
c. Check the connection to profile created:
d. Create defualt Repository and YANG set from profile created:
e. Copy yand-files from: "/usr/share/yang"
Note: Yang-files are stored in < yang-suite-data-dir >/ysdata/ users/< name > /repositories/< repo-name >. Example: /ysdata/users/admin/repositories/test-10-230-116-41-default-repo).
f. Select YANG set from YANG repository:
g. Load modules and explore YANG models
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks