-
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
[GCU or bgpcfgd]bgp prefix updating only fail for prefixes_v4 removal when GCU apply-patch #10141
Comments
5 tasks
6 tasks
StormLiangMS
added a commit
that referenced
this issue
Mar 10, 2022
…fix list (#10165) * fix allow list issue Signed-off-by: stormliang <[email protected]> * add the ipaddress in the install list * add unit test Co-authored-by: Ubuntu <azureuser@SONIC-SH-STORM-02.5pu3m0fajw1edcfltykk1gauxa.gx.internal.cloudapp.net> Why I did it Failed to remove part of configuration of bgp allowed prefix list. The details in #10141 How I did it There are two issues: In FRR, ipv6 default route is ::/0, but in the configuration, it is 0::/0, string comparison would be false, but why ipv4 failed to remove the allowed prefix list, ipv6 works? Looks into next one for the answer. The current managers_allow_list doesn’t support removal part of the prefix list. But why IPv6 works in 1? It is because the bug for the IPv6 default route comparison, it would do the update no matter what is the operation (the code will compare the prefix list in the FRR and configuration db, if all configurations in db are presented in FRR, it do nothing, otherwise it will update the prefix list based on the configuration from db). How to verify it Follow the step in #10141
Is this issue fixed by a PR? |
Yes. |
abdosi
pushed a commit
that referenced
this issue
May 19, 2022
…fix list (#10165) * fix allow list issue Signed-off-by: stormliang <[email protected]> * add the ipaddress in the install list * add unit test Co-authored-by: Ubuntu <azureuser@SONIC-SH-STORM-02.5pu3m0fajw1edcfltykk1gauxa.gx.internal.cloudapp.net> Why I did it Failed to remove part of configuration of bgp allowed prefix list. The details in #10141 How I did it There are two issues: In FRR, ipv6 default route is ::/0, but in the configuration, it is 0::/0, string comparison would be false, but why ipv4 failed to remove the allowed prefix list, ipv6 works? Looks into next one for the answer. The current managers_allow_list doesn’t support removal part of the prefix list. But why IPv6 works in 1? It is because the bug for the IPv6 default route comparison, it would do the update no matter what is the operation (the code will compare the prefix list in the FRR and configuration db, if all configurations in db are presented in FRR, it do nothing, otherwise it will update the prefix list based on the configuration from db). How to verify it Follow the step in #10141
StormLiangMS
added a commit
to StormLiangMS/sonic-buildimage
that referenced
this issue
May 19, 2022
…fix list (sonic-net#10165) * fix allow list issue Signed-off-by: stormliang <[email protected]> * add the ipaddress in the install list * add unit test Co-authored-by: Ubuntu <azureuser@SONIC-SH-STORM-02.5pu3m0fajw1edcfltykk1gauxa.gx.internal.cloudapp.net> Why I did it Failed to remove part of configuration of bgp allowed prefix list. The details in sonic-net#10141 How I did it There are two issues: In FRR, ipv6 default route is ::/0, but in the configuration, it is 0::/0, string comparison would be false, but why ipv4 failed to remove the allowed prefix list, ipv6 works? Looks into next one for the answer. The current managers_allow_list doesn’t support removal part of the prefix list. But why IPv6 works in 1? It is because the bug for the IPv6 default route comparison, it would do the update no matter what is the operation (the code will compare the prefix list in the FRR and configuration db, if all configurations in db are presented in FRR, it do nothing, otherwise it will update the prefix list based on the configuration from db). How to verify it Follow the step in sonic-net#10141
6 tasks
qiluo-msft
pushed a commit
that referenced
this issue
May 24, 2022
…fix list (#10165) * fix allow list issue Signed-off-by: stormliang <[email protected]> * add the ipaddress in the install list * add unit test Co-authored-by: Ubuntu <azureuser@SONIC-SH-STORM-02.5pu3m0fajw1edcfltykk1gauxa.gx.internal.cloudapp.net> Why I did it Failed to remove part of configuration of bgp allowed prefix list. The details in #10141 How I did it There are two issues: In FRR, ipv6 default route is ::/0, but in the configuration, it is 0::/0, string comparison would be false, but why ipv4 failed to remove the allowed prefix list, ipv6 works? Looks into next one for the answer. The current managers_allow_list doesn’t support removal part of the prefix list. But why IPv6 works in 1? It is because the bug for the IPv6 default route comparison, it would do the update no matter what is the operation (the code will compare the prefix list in the FRR and configuration db, if all configurations in db are presented in FRR, it do nothing, otherwise it will update the prefix list based on the configuration from db). How to verify it Follow the step in #10141
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Test based on BGP_ALLOWED_PREFIX yang #10142
bgp prefix removal only fails on prefixes_v4 when GCU apply-patch to remove.
Not sure it is a bug from
bgpcfgd
orGCU
.Steps to reproduce the issue:
Describe the results you received:
prefixes_v4 GCU removal complete. But previous config is still there.
Describe the results you expected:
Desired config removal should take effect.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: