-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[bgp] Re-add dependency in managers_bgp for bgpcfgd #19088
[bgp] Re-add dependency in managers_bgp for bgpcfgd #19088
Conversation
/azpw ms_conflict |
hi @yaqiangz I remember you mentioned this interface would be monitored in the bgp manager file? why we need to add these two back? |
src/sonic-bgpcfgd/bgpcfgd/main.py |
@StormLiangMS Yes interface change will be monitored by https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-bgpcfgd/bgpcfgd/main.py#L50 The dependency is to make sure Loopback interface exist. With this dependency adding: I removed them previously because I thought these dependencies require |
After discussion, if we configured IPv6 or IPv4 on the loopback interface, it will create LOOPBACK_INTERFACE|Loopback0 in the config_db, no matter a IPv6 or IPv4 addressed configured. In previous assumption, the device could be IPv6 only later, and in either case, there should at least one of them (IPv6 or IPv4) available, no harm to add the dependency on LOOPBACK_INTERFACE|Loopback0 back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Hi @yaqiangz , @StormLiangMS Is this change required for 202405 branch? |
Hi @bingwang-ms it's included in 202405 by this commit d1875c6 |
Why I did it
These 2 dependencies were removed by #18764 and #18727 for decoupling hard dependency between Loopback IPv4 address and BGP.
Actually, these dependencies are to make sure existence of Loopback interface, no need to remove.
Work item tracking
How I did it
Add dependency back
How to verify it
UT passed.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)