Skip to content
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

Revert "Support for gen-mg for multi-asic linecards in VoQ chassis" #4351

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

SuvarnaMeenakshi
Copy link
Contributor

Reverts #3746
Reverting due to issue seen: #4343

@SuvarnaMeenakshi SuvarnaMeenakshi requested a review from a team as a code owner September 24, 2021 17:00
@SuvarnaMeenakshi SuvarnaMeenakshi merged commit aa9c059 into master Sep 25, 2021
sanmalho-git added a commit to sanmalho-git/sonic-mgmt that referenced this pull request Sep 30, 2021
abdosi added a commit to abdosi/sonic-mgmt that referenced this pull request Oct 4, 2021
abdosi pushed a commit that referenced this pull request Oct 13, 2021
* Revert "Revert "[chassis] Support for gen-mg for multi-asic linecards in VoQ chassis (#3746)" (#4351)"

This reverts commit aa9c059.

* Fix for issue #4343 when running gen-mg for multi-asic kvm

- Use empty list as the default for switchids in the call to port_alias.
- In port_alias ansible library, check the length of switchids before using it.
- In minigraph_png,
  - For supporting not all ports connected to fanout, in minigraph_png.j2, we added DeviceInterfaceLink for only ports that are defined in the device_conn (from connection graph). But, for masic KVM,
device_conn is not defined, and thus we were not adding any port. The fix is that if the inventory_hostname is not present in the device_conn, then add DeviceInterfaceLink for all front_panel_asic_ifnames
  - 'Bandwidth' for each DeviceInterfaceLink was hard-coded to 40G, we added code to get it from port_speed which also gets populated from the connection graph. However, port_speed is empty for KVM, and thus generation
was failing. Fix is to check if the port is present in port_speed, and if so, use the speed defined in port_speed. Else, use default 40G.
abdosi pushed a commit to abdosi/sonic-mgmt that referenced this pull request Oct 13, 2021
* Revert "Revert "[chassis] Support for gen-mg for multi-asic linecards in VoQ chassis (sonic-net#3746)" (sonic-net#4351)"

This reverts commit aa9c059.

* Fix for issue sonic-net#4343 when running gen-mg for multi-asic kvm

- Use empty list as the default for switchids in the call to port_alias.
- In port_alias ansible library, check the length of switchids before using it.
- In minigraph_png,
  - For supporting not all ports connected to fanout, in minigraph_png.j2, we added DeviceInterfaceLink for only ports that are defined in the device_conn (from connection graph). But, for masic KVM,
device_conn is not defined, and thus we were not adding any port. The fix is that if the inventory_hostname is not present in the device_conn, then add DeviceInterfaceLink for all front_panel_asic_ifnames
  - 'Bandwidth' for each DeviceInterfaceLink was hard-coded to 40G, we added code to get it from port_speed which also gets populated from the connection graph. However, port_speed is empty for KVM, and thus generation
was failing. Fix is to check if the port is present in port_speed, and if so, use the speed defined in port_speed. Else, use default 40G.
@wangxin wangxin deleted the revert-3746-gen-mg branch February 18, 2022 05:51
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.

2 participants