Skip to content

[iface_namingmode] Get port_speed from DUT host variables#2164

Merged
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:port_speed_fix
Sep 3, 2020
Merged

[iface_namingmode] Get port_speed from DUT host variables#2164
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:port_speed_fix

Conversation

@lolyu
Copy link
Collaborator

@lolyu lolyu commented Sep 1, 2020

Description of PR

port_alias module retrieves port_speed from port_config.ini. But
for 7060 devices, port_config.ini has no port speed info.
So get port speed from the host variable iface_speed defined in inventory.

Signed-off-by: Longxiang Lyu [email protected]

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

test iface_namingmode

Any platform specific information?

Arista-7060CX-32S-C32

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

Documentation

@lgtm-com
Copy link

lgtm-com bot commented Sep 1, 2020

This pull request introduces 1 alert when merging b8b09b807e7b1fd916dc100a0d4802ed28eff3fb into 710fc2a - view on LGTM.com

new alerts:

  • 1 for Variable defined multiple times

@lolyu
Copy link
Collaborator Author

lolyu commented Sep 1, 2020

Retest this please

@lolyu lolyu requested a review from a team September 1, 2020 12:38
`port_alias` module retrieves `port_speed` from `port_config.ini`. But
for 7060 devices, `port_config.ini` has no port speed info.
So get port speed from host variable `iface_speed` defined in inventory.

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu
Copy link
Collaborator Author

lolyu commented Sep 2, 2020

Retest this please

2 similar comments
@lolyu
Copy link
Collaborator Author

lolyu commented Sep 2, 2020

Retest this please

@lolyu
Copy link
Collaborator Author

lolyu commented Sep 3, 2020

Retest this please

@lolyu lolyu merged commit ed4a89f into sonic-net:master Sep 3, 2020
@lolyu lolyu deleted the port_speed_fix branch September 3, 2020 09:07
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
6a6b711 (HEAD -> 202111, origin/202111) Fix issue: sometimes PFC WD unable to create zero buffer pool (sonic-net#2164)
459aee0 Use abort instead of exit in case calling SAI API failure (sonic-net#2170)
e767137 Fix issue config qos reload causing orchagent aborted via tracking dependencies among QoS tables (sonic-net#2116)
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