avoid printing error if no neighbors are present#2502
avoid printing error if no neighbors are present#2502gechiang merged 3 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
gechiang
left a comment
There was a problem hiding this comment.
Please make the string change as this is what was being returned by older image (20181130) such as guaga based BGP and there are services that are depended on this same output.
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
@gechiang updated the error strings in the latest commit |
tests/bgp_commands_test.py
Outdated
| """ | ||
|
|
||
| show_error_no_v6_neighbor = """\ | ||
| % No IPv6 neighbor is configured |
There was a problem hiding this comment.
Please remove "% " (% and the space after it) as that is not in the original error message or the service that needs to parse it will not match...
Thanks!
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
* avoid printing error if no neighbors are present Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
* avoid printing error if no neighbors are present Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
* avoid printing error if no neighbors are present Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
|
This commit could not be cleanly cherry-picked to 202012. Please submit another PR. |
What I did Fix #2492. port #2502 in 202012 branch How I did it Use click.echo and exit instead of ctx.fail in cli handler when no neighbor information is returned from bgp container. How to verify it Test on target and add UT new output when no neighbors are present Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
|
202012 branch PR merged: #2594 |
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]
What I did
Fixes #2492
How I did it
Use
click.echoandexitinstead ofctx.failin cli handler when no neighbor information is returned from bgp container.How to verify it
Test on target and add UT
new output when no neighbors are present
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)