You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parser logic is to take user to the (config-if) mode, since the interface syntax matches.
However in this case, it is a component in the interface command (OSPFv3 for IPv6).
Possibly expected that the % Command incomplete message is returned in this case.
.
.
Setup:
FRR-2.0 on CentOS 7.
.
.
Example:
CentOS(config)# router ospf6
CentOS(config-ospf6)# router-id 1.1.1.1
CentOS(config-ospf6)# interface
IFNAME Interface name(e.g. ep0)
CentOS(config-ospf6)# interface ens33 <-- If ? is used
area Specify the OSPF6 area ID
CentOS(config-ospf6)# interface ens33 <-- If character return is enacted, config hierarchy changes
CentOS(config-if)#
The text was updated successfully, but these errors were encountered:
jhiggins-NZ
changed the title
OSPFv3 (IPv6) - Parser takes user to (if-config) instead of rejecting, when incomplete "interface" cmd is entered
OSPFv3 (IPv6) - Parser takes user to (config-if) instead of rejecting, when incomplete "interface" cmd is entered
Apr 6, 2017
When you enter a command that's invalid for the current mode, the CLI will 'walk up' to parent nodes and attempt to execute the command in those contexts. If the command succeeds, the current mode changes to the mode where the command was successful, and executes the command there. What's happening here is that while interface ens33 is not valid for the ospf6 config mode, it is valid for the top level configuration mode (with prompt (config)). So the CLI changes modes to that mode, executes the command, and then by the action of the interface command, you enter the interface configuration mode.
This behavior has been around for a long time. We recognize that it can be confusing at times, and we are looking at ways to improve it. Unfortunately in this instance, it's behaving as expected, so I'm closing this issue for now; whatever solution we come up with for the bigger issue at hand will hopefully address this as well.
Issue: (Potential Issue)
.
.
Setup:
.
.
Example:
The text was updated successfully, but these errors were encountered: