Skip to content

remove quagga for bgp show cli #3982

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lipxu
Copy link
Contributor

@lipxu lipxu commented Jul 17, 2025

What I did

The PR #3960 check the docker container's name.
Check the docker's name whether is exactly same with "bgp"
However, on multiple asic devices, there are several bgp containers, and named bgp0, bgp1 ....

How I did it

In master, return frr directly since there would no quagga in new release version and Remove quagga related UT code

How to verify it

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)

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lipxu lipxu changed the title [debug] remove quagga for bgp show cli remove quagga for bgp show cli Jul 17, 2025
@lipxu lipxu marked this pull request as ready for review July 17, 2025 16:13
BYGX-wcr
BYGX-wcr previously approved these changes Jul 17, 2025
Copy link
Contributor

@BYGX-wcr BYGX-wcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the code cleaner

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).


return result

return "frr"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move the get_routing-stack function to utilities_common?

@@ -88,17 +88,7 @@
# location (configdb?), so that we prevent the continous execution of this
# bash oneliner. To be revisited once routing-stack info is tracked somewhere.
def get_routing_stack():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we directly return frr, the show ip bgp command will become callable on any SONiC device even if the BGP container is not running on that device. This is different than before. For example, on the DPUs of smartswitches, are show ip bgp commands valid to execute?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks for reminder, let me check it first. thanks.

@lipxu lipxu marked this pull request as draft July 29, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants