Invalid port range
When making an RPC call, if, for a range of ports, you specify a starting number that is greater than the ending number, the following error message is returned.
[port-range] port-range start must be lower than or equal to port-range end
The following example shows the XML structure of an RPC call that is equivalent to the twping localhost session-count 1 port-range 6000-5000 CLI command and the error message that is returned in the RPC reply.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<host>localhost</host>
<session-count>1</session-count>
<port-range>
<start>6000</start>
<end>5000</end>
</port-range>
</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 - [port-range]
port-range start must be lower than or equal to port-range end
[port-range]
Size of the port-range must be at least as large as session-count
<twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<host>localhost</host>
<session-count>1</session-count>
<port-range>
<start>6000</start>
<end>5000</end>
</port-range>
</twping>
</error-message>
</rpc-error>
</rpc-reply>
]]>]]>