Skip to content
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

[bgpcfgd]: Use peer commands for BBR, not peer-group #6048

Merged

Conversation

pavel-shirshov
Copy link
Contributor

@pavel-shirshov pavel-shirshov commented Nov 26, 2020

- Why I did it
FRR 7.2.1 has a bug: when 'allowas-in' is configured on peer-group, and we remove that configuration, the neighbors, which had that configuration, keeps that configuration.

- How I did it
To fix the bug I apply the configuration to all neighbors, which are configured with the peer-groups, which should support BBR.

- How to verify it

  1. Build an image
  2. Run on your dut
  3. Check that the test https://github.com/Azure/sonic-mgmt/blob/master/tests/bgp/test_bgp_bbr.py not fails

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@xumia
Copy link
Collaborator

xumia commented Nov 26, 2020

retest mellanox please

@lguohan
Copy link
Collaborator

lguohan commented Nov 26, 2020

retest broadcom please

@lguohan
Copy link
Collaborator

lguohan commented Nov 26, 2020

retest mellanox please

Copy link
Contributor

@wangxin wangxin left a comment

Choose a reason for hiding this comment

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

LGTM

@pavel-shirshov pavel-shirshov merged commit 9e0ea83 into sonic-net:201911 Nov 26, 2020
StormLiangMS pushed a commit to StormLiangMS/sonic-buildimage that referenced this pull request Jul 18, 2022
[bgp templates]: BBR per peer

Update to support sonic-net#6048

Tests result

ps@linux:~/work/Networking-acs-buildimage/src/sonic-bgpcfgd$ python -m pytest
================================================================== test session starts ==================================================================
platform linux2 -- Python 2.7.12, pytest-4.6.9, py-1.8.1, pluggy-0.13.1
rootdir: /home/ps/work/Networking-acs-buildimage/src/sonic-bgpcfgd, inifile: pytest.ini
plugins: cov-2.10.1, mock-2.0.0, flaky-3.6.1
collected 97 items

tests/test_allow_list.py .............                                                                                                            [ 13%]
tests/test_bbr.py .........................                                                                                                       [ 39%]
tests/test_config.py .................                                                                                                            [ 56%]
tests/test_frr.py .                                                                                                                               [ 57%]
tests/test_ipv6_nexthop_global.py .                                                                                                               [ 58%]
tests/test_pfx_filter.py ...........                                                                                                              [ 70%]
tests/test_sonic-cfggen.py .................                                                                                                      [ 87%]
tests/test_templates.py ............                                                                                                              [100%]

=================================================================== warnings summary ====================================================================
tests/test_ipv6_nexthop_global.py::test_v6_next_hop_global
  /home/ps/work/Networking-acs-buildimage/src/sonic-bgpcfgd/tests/util.py:8: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
    data = yaml.load(f) # FIXME" , Loader=yaml.FullLoader)

-- Docs: https://docs.pytest.org/en/latest/warnings.html

---------- coverage: platform linux2, python 2.7.12-final-0 ----------
Name                             Stmts   Miss  Cover
----------------------------------------------------
bgpcfgd/__init__.py                  0      0   100%
bgpcfgd/__main__.py                  3      3     0%
bgpcfgd/config.py                   69      0   100%
bgpcfgd/directory.py                63     34    46%
bgpcfgd/frr.py                      49     35    29%
bgpcfgd/log.py                      15      3    80%
bgpcfgd/main.py                     53     53     0%
bgpcfgd/manager.py                  41     23    44%
bgpcfgd/managers_allow_list.py ...
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.

5 participants