Skip to content

[minigraph_facts] Refactor such that port names and aliases are never stored together#832

Merged
lguohan merged 2 commits intosonic-net:masterfrom
jleveque:fix_port_index_map
Apr 5, 2019
Merged

[minigraph_facts] Refactor such that port names and aliases are never stored together#832
lguohan merged 2 commits intosonic-net:masterfrom
jleveque:fix_port_index_map

Conversation

@jleveque
Copy link
Copy Markdown
Contributor

  • This is a more fundamental way to address the potential problems if port names/aliases happen to overlap mentioned here: Fix port alias mapping in minigraph_facts #830. Port names and aliases should never be combined in the same data structure.

  • Now, once the minigraph is parsed, the resulting output will refer to all ports by their SONiC port name (portchannel members, VLAN members, etc.).

  • If a play book needs to map between name/alias, the parser generates minigraph_port_name_to_alias_map and minigraph_port_alias_to_name_map for this purpose.

  • Also update port name/alias map names to make their purposes more clear.

Copy link
Copy Markdown
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but wait for other reviewers

@lguohan lguohan merged commit 06467a1 into sonic-net:master Apr 5, 2019
@jleveque jleveque deleted the fix_port_index_map branch April 5, 2019 17:57
yxieca pushed a commit that referenced this pull request Sep 25, 2019
…r stored together (#832)

* [minigraph_facts] Refactor such that port names and aliases are never stored together

* Update affected playbooks to reflect the new change
deerao02 pushed a commit to deerao02/sonic-mgmt that referenced this pull request Dec 18, 2025
…tly test (sonic-net#832)

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->
It seems that the empty test_sfputil.py is causing an error to be seen while running nightly test.
Hence, removing this file since the file was originally added as a placeholder.

Summary:
Fixes # (issue)

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
 - [ ] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
It seems that the empty test_sfputil.py is causing an error to be seen while running nightly test.
Hence, removing this file since the file was originally added as a placeholder.

#### How did you do it?
Removed test_sfputil.py

#### How did you verify/test it?

#### Any platform specific information?

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->

ADO - 33833045
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Make sure db_migrator is run after all config are loaded during (sonic-net#926)
Vnet alias mapping (sonic-net#924)
Changes to make lldp show command for multi-npu platforms. (sonic-net#914)
[Mellanox] Fix thermal control issue: use natural sort for fan
status and thermal status (sonic-net#836)
[Mellanox] add document for thermal control related cli (sonic-net#832)
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.

5 participants