-
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
[7.2] vtysh: fix searching commands in parent nodes #5084
Conversation
Seems reasonable on the surface, but what bug in particular is this fixing? Marking DNM for now so I can get a better understanding |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9088/ This is a comment from an automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings
CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base1 Static Analyzer issues remaining.See details at |
aef820c
to
ce95469
Compare
I cannot find a serious bug for this fix. It's rather unexpected behavior, for example: host# conf t I expect something like this: host# conf t We can break configuration in case of command "r" will be matched in a parent node |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9092/ This is a comment from an automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base1 Static Analyzer issues remaining.See details at |
@zays26 I'm okay with this patch, however you need to apply the same behavior everywhere else this code has been copy-pasted. Unfortunately this is one of the worst bits of code in the whole codebase. There's another copy of this code around line 790 that I am pretty sure needs to be changed as well, and maybe in command.c. |
Do not check parent command nodes in case of ambiguous and incomplete commands Signed-off-by: Pavel Ivashchenko <pivashchenko@nfware.com>
ce95469
to
288f2f8
Compare
@qlyoung I have updated code in vtysh.c and command.c |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9167/ This is a comment from an automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings
CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base1 Static Analyzer issues remaining.See details at |
@zays26 sorry, 7.2 is now a stable release branch. We're not taking any more patches for 7.2 if I'm not mistaken. |
Do not check parent command nodes in case of ambiguous and incomplete commands
Signed-off-by: Pavel Ivashchenko pivashchenko@nfware.com