-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vtysh / issue with command parser when some vty commands are set/unset upon configuration #2232
Comments
issue 1968. I want to hide the table ID |
in 1968, I have 2 vty commands:; using solution#2 would know which command has to be parsed ( at compilation time ?)
|
|
This is what i did in #1968, but vtysh parser fails -> Ambiguous command: I dont know how to put the if backend=netns on vtysh |
You're right, I forgot you can't do it that way because
I agree it sucks. |
I updated #1976 accordingly. I would also check with Donald if he thinks it is ok to keep table as argument ( meaning that the parameter will be visible) |
example:
When starting zebra, some vty commands are installed or not, depending on the vrf backend kind.
The issue #1976 illustrates the issue.
Actually, the vtysh parser that forges the vtysh client to populate the various vty commands does not know what is the vrf backend used. As such, it will parse both lines in zebra containing install_element, and will install it in vtysh client, thus resulting in the following message:
this ticket should solve that issue; among possibilities to resolve this:
The text was updated successfully, but these errors were encountered: