-
Notifications
You must be signed in to change notification settings - Fork 851
Increase timeout and set port AutonNeg according to the links file #16647
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
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
a5b8233
to
f886eae
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
f886eae
to
8f02cf7
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
8f02cf7
to
5aa34b0
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Ze Gan <[email protected]>
5aa34b0
to
82224ef
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
{% if port_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][port_name] %} | ||
"autoneg": "{{ device_conn[inventory_hostname][port_name]['autoneg'] }}", | ||
{% else %} | ||
{% if fanout_hwsku == "Mellanox-SN5600-C256S1" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe better to check against platform, since it is needed for all SP3 and SP4 platforms.
Signed-off-by: Ze Gan <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@vdahiya12 Could you please help review? Please confirm this change doesn't conflict with the change you are working on |
{% if port_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][port_name] %} | ||
"autoneg": "{{ device_conn[inventory_hostname][port_name]['autoneg'] }}", | ||
{% else %} | ||
{% if "Mellanox-SN5" in fanout_hwsku or "Mellanox-SN4" in fanout_hwsku %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have Mellanox-SN4600, which doesn't require AN. So better to check a list of HWSKU ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please provide a list of HWSKU to me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may find all the HWSKU here https://github.com/sonic-net/sonic-buildimage/tree/master/device/mellanox/x86_64-mlnx_msn4600c-r0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we already have done the check for autoneg = 'on' in the *links.csv, do we really require a hwsku check ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the default scenario. Because the *links.csv didn't include all ports.
For example, a SKU has 64 ports, but there is only 32 ports in *links.csv.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest checking the port speed. Enable AN if port speed >= 200Gb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pterosaur @bingwang-ms lets discuss this before we merge. I don't think we need to put hwsku specific check here. not right. we should follow SAI spec for AN
Signed-off-by: Ze Gan <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
# Apply Autoneg | ||
default_autoneg_value = None | ||
# For SP4 and SP3, the default autoneg value is "on" | ||
if "nvidia_sn5" in platform or "nvidia_sn4" in platform: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do u still need to have this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't really need them, remove them.
Signed-off-by: Ze Gan <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pterosaur This file change is not needed. The link file has the AN column and the minigraph should be able to generate the configuration for the AN enabled port. @vdahiya12 can you point to that?
@@ -771,6 +771,13 @@ | |||
|
|||
when: "'dualtor-mixed' in topo or 'dualtor-aa' in topo" | |||
|
|||
- name: Apply device conn to config db | |||
apply_device_conn_sonic: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this for applying sonic config?
much of the config DB config will happen via #13990
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the AutoNeg value in minigraph will be applied into the config DB?
Signed-off-by: Ze Gan <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pterosaur are we going to develop this code for each and every new sku in the future. AN should be SKU agnostic
@@ -0,0 +1,66 @@ | |||
#!/usr/bin/env python | |||
|
|||
from ansible.module_utils.basic import AnsibleModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file change should not be needed any more
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Check it in the local physical testbed
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation