Skip to content

[action] [PR:8823] Get peer fanout from the first interface on the dut connected to the …#8951

Merged
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/8823
Jul 13, 2023
Merged

[action] [PR:8823] Get peer fanout from the first interface on the dut connected to the …#8951
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/8823

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Get peer fanout from the first interface on the dut which is connected to the fanout instead of Ethernet0

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

In is_mellanox_fanout definition interface Ethernet0 is hard coded as the interface that is connected to the fanout.
This is fine for a T2 max topology since all interfaces are connected to a fanout.
For a T2 min topology if Ethernet0 is not used (not connected to a fanout), it will produce an error:

fanout_host = dut_facts["device_conn"][duthost.hostname]["Ethernet0"]["peerdevice"]
E KeyError: 'Ethernet0'

Therefore, we should get the peer fanout from the first interface that is connected to a fanout.

How did you do it?

We get the peer fanout using the first interface that is connected to the fanout.

How did you verify/test it?

It was tested on multi ASICs T2 chassis with min topology and made sure the connected interface is not Ethernet0.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator Author

Original PR: #8823

@mssonicbld mssonicbld merged commit 448c1e1 into sonic-net:202205 Jul 13, 2023
@mssonicbld mssonicbld deleted the cherry/202205/8823 branch February 4, 2024 09:03
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