Vyatta Network OS Documentation

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

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

&lt;twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1"&gt;
    &lt;host&gt;localhost&lt;/host&gt;
    &lt;session-count&gt;1&lt;/session-count&gt;
    &lt;port-range&gt;
      &lt;start&gt;6000&lt;/start&gt;
      &lt;end&gt;5000&lt;/end&gt;
    &lt;/port-range&gt;
  &lt;/twping&gt;
</error-message>
  </rpc-error>
</rpc-reply>
]]>]]>