Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Get an individual YANG schema — <get-schema>

An example of how to use the <get-schema> RPC to get an individual YANG schema.

Use the <get-schema> RPC. In this example, we use it to get vyatta-resources-protocol-group-v1.
As get-schema is not in the NETCONF 'base' namespace, you must specify its namespace.
<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">
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">submodule vyatta-resources-protocol-group-v1 {
        belongs-to vyatta-resources-group-v1 {
                prefix res-group;
        import vyatta-resources-v1 {
                prefix resources;