Skip to content

[action] [PR:11779] [bgp]: Don't flush link-local addr during teardown#11887

Merged
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/11779
Mar 5, 2024
Merged

[action] [PR:11779] [bgp]: Don't flush link-local addr during teardown#11887
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/11779

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

During the teardown for bgp/test_bgp_dual_asn.py::test_bgp_dual_asn_v4, the PTF interface used for the test is flushed of all IPv4 and IPv6 addresses, including the IPv6 link local address. As a result, NDP and other IPv6 functionality is broken for the flushed interface.

How did you do it?

Specify 'global' scope when flushing the PTF interface to avoid removing IPv6 link local addresses.

How did you verify/test it?

Run the test, verify that all PTF addresses still have an IPv6 link local address after the test is finished.

Any platform specific information?

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

Documentation

What is the motivation for this PR?
During the teardown for bgp/test_bgp_dual_asn.py::test_bgp_dual_asn_v4, the PTF interface used for the test is flushed of all IPv4 and IPv6 addresses, including the IPv6 link local address. As a result, NDP and other IPv6 functionality is broken for the flushed interface.

How did you do it?
Specify 'global' scope when flushing the PTF interface to avoid removing IPv6 link local addresses.

How did you verify/test it?
Run the test, verify that all PTF addresses still have an IPv6 link local address after the test is finished.
@mssonicbld
Copy link
Collaborator Author

Original PR: #11779

@mssonicbld mssonicbld merged commit affeab8 into sonic-net:202305 Mar 5, 2024
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.

2 participants