Skip to content

Fix test_bgp_update_timer failure caused by scapy upgrade in sonic-mg docker image#4774

Merged
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:fix-bgp-update-timer
Nov 29, 2021
Merged

Fix test_bgp_update_timer failure caused by scapy upgrade in sonic-mg docker image#4774
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:fix-bgp-update-timer

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Nov 29, 2021

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

The scapy package in sonic-mgmt docker image was upgraded in PR sonic-net/sonic-buildimage#8554.
The new version of scapy uses a different way to represent and dissect BGP messages. This caused the failure of
test_bgp_update_time.py.

How did you do it?

This PR is to address the compatibility issue of scapy. The test_bgp_update_timer.py script was updated to be
be compatible with both old and new scapy versions.

How did you verify/test it?

Run bgp/test_bgp_update_timer.py using both old and new sonic-mgmt docker image.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…mt docker image

The scapy package in sonic-mgmt docker image was upgraded in PR sonic-net/sonic-buildimage#8554.
The new version of scapy uses a different way to represent and dissect BGP messages. This caused the failure of
test_bgp_update_time.py.

This PR is to address the compatibility issue of scapy. The test_bgp_update_timer.py script was updated to be
be compatible with both old and new scapy versions.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested a review from lolyu November 29, 2021 03:48
@wangxin wangxin requested a review from a team as a code owner November 29, 2021 03:48
@wangxin wangxin merged commit c32791f into sonic-net:master Nov 29, 2021
@wangxin wangxin deleted the fix-bgp-update-timer branch December 13, 2021 09:24
AntonHryshchuk pushed a commit to AntonHryshchuk/sonic-mgmt that referenced this pull request Jan 4, 2022
… docker image (sonic-net#4774)

What is the motivation for this PR?
The scapy package in sonic-mgmt docker image was upgraded in PR sonic-net/sonic-buildimage#8554.
The new version of scapy uses a different way to represent and dissect BGP messages. This caused the failure of
test_bgp_update_time.py.

How did you do it?
This PR is to address the compatibility issue of scapy. The test_bgp_update_timer.py script was updated to be
be compatible with both old and new scapy versions.

How did you verify/test it?
Run bgp/test_bgp_update_timer.py using both old and new sonic-mgmt docker image.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants