home

Supported platforms

Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

List the YANG schemas of the device — <get>

An example of how to use the <get> RPC to list the YANG schemas that the device supports.

Use the <get> RPC.
<rpc message-id="101" 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>
]]>]]>
A typical reply might look like this:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <data>
    <netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
      <schemas>
        <schema>
          <identifier>vyatta-system-login-v1</identifier>
          <version>2021-01-18</version>
          <format>yang</format>
          <namespace>urn:vyatta.com:mgmt:vyatta-system-login:1</namespace>
          <location>NETCONF</location>
        </schema>
        <schema>
          <identifier>vyatta-dpi-application-names-v1</identifier>
          <version>2020-05-12</version>
          <format>yang</format>
          <namespace>urn:vyatta.com:mgmt:vyatta-dpi-application-names:1</namespace>
          <location>NETCONF</location>
        </schema>
        ...
        <schema>
          <identifier>vyatta-resources-protocol-group-v1</identifier>
          <version>2019-12-09</version>
          <format>yang</format>
          <namespace>urn:vyatta.com:mgmt:vyatta-resources-group:1</namespace>
          <location>NETCONF</location>
        </schema>
      </schemas>
    </netconf-state>
  </data>
</rpc-reply>
]]>]]>