Missing mandatory parameters
When making an RPC call, you must supply the following parameters.
- host (always mandatory)
- user (mandatory when authentication is required)
- passphrase (mandatory when authentication is required)
If any parameter is missing, the following error message is returned.
Missing mandatory node
The following example shows the XML structure of an RPC call and the returned error message. In this example, the RPC call does not specify a host. In addition, even though the call requires authentication, no user or passphrase is specified.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<authentication>
<mode>authenticate</mode>
</authentication>
</twping>
</rpc>]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>Failed to parse xml input: Invalid XML - []
Missing mandatory node host
[authentication]
Missing mandatory node user
[authentication]
Missing mandatory node passphrase
<twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<authentication>
<mode>authenticate</mode>
</authentication>
</twping>
</error-message>
</rpc-error>
</rpc-reply>