Vyatta Network OS Documentation

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

NETCONF error: "missing-element"

Condition

You ran a command like this:

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <validate>
    <target>
      <candidate/>
    </target>
  </validate>
</rpc>
]]>]]>

And you see an error message like this:

<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <rpc-error>
    <error-type>protocol</error-type>
    <error-tag>missing-element</error-tag>
    <error-severity>error</error-severity>
    <error-message>An expected element is missing.</error-message>
    <error-info>
      <bad-element>source</bad-element>
    </error-info>
  </rpc-error>
</rpc-reply>
]]>]]>

Cause

You ran a command that does not contain all of the required elements.

In this example, the <validate> operation uses <target> to specify the datastore. It should use <source>. The error message clearly indicates that the source element is missing from the <validate> operation.

Remedy

Insert the missing element into the <validate> operation, and populate it as appropriate.
In this example, insert the <source> element.