RUGGEDCOM NETCONF
Reference Guide
Chapter 4
Getting Data
Getting YIN and YANG Files from the Device
37
3. Review the list and locate the
<schema>
entries for items you want to retrieve. For example, shown here are
the
<schema>
entries for the
rmf_admin
namespace:
<schema>
<identifier>rmf_admin</identifier>
<version>2012-03-07</version>
<format>yin</format>
<namespace>http://ruggedcom.com/ns/rmf_admin</namespace>
<location>NETCONF</location>
</schema>
<schema>
<identifier>rmf_admin</identifier>
<version>2012-03-07</version>
<format>yang</format>
<namespace>http://ruggedcom.com/ns/rmf_admin</namespace>
<location>NETCONF</location>
</schema>
4. Make a note of the
<identifier>
,
<format>
, and
<version>
data. You need this information to retrieve
the YIN or YANG file from the device.
5. After finding the
<identifier>
,
<format>
, and
<version>
for the schema you want to download, you
can retrieve the YIN and YANG files. For instructions, refer to
Section 4.6.2, “Getting YIN and YANG Files from
Section 4.6.2
Getting YIN and YANG Files from the Device
To retrieve a specific YIN or YANG file, do the following:
1. Log in to the device and start a NETCONF session. For instructions on how to initiate a NETCONF session, refer
Section 3.2, “Connecting to the NETCONF Service”
.
2. Download a list of schemas from RUGGEDCOM NETCONF and determine the identifier, version and format of
the schema associated with the target YIN or YANG file. For more information, refer to
3. Issue this command:
<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>
{identifier}
</identifier>
<version>
{version}
</version>
<format>
{format}
</format>
</get-schema>
</rpc>]]>]]>
•
{identifier}
Specifies the schema name.
•
{version}
Specifies the schema version number.
•
{format}
Specifies the schema format: yin or yang.
For example, this command retrieves the
rmf_admin
YIN file:
<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>rmf_admin</identifier>
Содержание RUGGEDCOM MX5000RE
Страница 8: ...Table of Contents RUGGEDCOM NETCONF Reference Guide viii ...
Страница 12: ...Preface RUGGEDCOM NETCONF Reference Guide xii Customer Support ...
Страница 26: ...Chapter 1 Introduction RUGGEDCOM NETCONF Reference Guide 14 Sample Session Editing Data ...
Страница 40: ...Chapter 3 NETCONF Sessions RUGGEDCOM NETCONF Reference Guide 28 Killing a Session ...
Страница 64: ...Chapter 5 Changing Configuration Data RUGGEDCOM NETCONF Reference Guide 52 Committing Changes ...
Страница 148: ...Chapter 8 NETCONF XML Elements RUGGEDCOM NETCONF Reference Guide 136 validate ...