forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vs] VoQ Switch objects initialization - Local Port OID mapping to Sy…
…stem Ports (sonic-net#703) SAI emulation support added for VOQ system ports. The changes include association of local port id to sytems ports that correspond ot the local ports. In real SAI, mapping between system port and local port is done by matching the system ports's <switch_id, core index, core port index> tuple. In VOQ switches, each port blongs to a switch core and is assigned an index. This mapping is done in hardware configurations. For VS, the mapping is emulated via a new file coreportindexmap.ini. This file is made available in /usr/share/sonic/hwsku in the same way how lanemap.ini is made avaialble. The loading and and parsing of coreportindexmap.ini is done in similar way as it is done for lanemap.ini. While emulating configuration system ports, if a system port is found to be a local port (determined using its switch_id), the local port oid corresponding system port is retrieved from m_port_list and local port atribute is set in the system port object. This is used by orchagent (portsorch) for system port initialization.
- Loading branch information
1 parent
6ace7d3
commit 9fb6fe9
Showing
6 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters