Project

General

Profile

Bug #12

Optional Flag is not completed on enter

Added by Anonymous almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/30/2014
Due date:
% Done:

0%


Description

What steps will reproduce the problem?
1. Define a command with an optional flag at the end of it.
2. Enter the command with part of the unique flag and hit enter.

<COMMAND name="ip address" 
help="Set the IP address of an interface">
<PARAM name="ip_method" 
help="Method to get IP"
ptype="SUBCOMMAND"
mode="switch">
<PARAM name="dhcp" 
help="IP Address negotiated via DHCP"
ptype="SUBCOMMAND"
mode="subcommand"/>
<PARAM name="ip" 
help="IP address"
ptype="IP_ADDR_MASK">
<PARAM name="secondary" 
help="Make this a secondary IP address"
ptype="SUBCOMMAND"
mode="subcommand"
optional="true"/>
</PARAM>
</PARAM>
<ACTION>
echo ${secondary}
</ACTION>
</COMMAND>

What is the expected output? What do you see instead?

I expect the optional command to be completed and past on. What I am seeing is an Illegal command line error.

"test(config-if-eth0)# ip address 1.1.1.1/24 sec
Syntax error: Illegal command line"

What version of the product are you using? On what operating system?
1.7.0 on ubuntu

Also available in: Atom PDF