Update asic name mapping in the required dicts #9886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
when reading port information from config_db to match with data from
port_config.ini.
Signed-off-by: Suvarna Meenakshi sumeenak@microsoft.com
Why I did it
Update asic name mapping in the required dicts
when reading port information from config_db to match with data from
port_config.ini.
There is a mismatch when retrieving data from port_config.ini and config_db.
This change is to ensure the configuration generated from port_config.ini or config_dbX.json files are the same.
Issue seen: config_db has incorrect interface names as portchannel members also device_neighbor table does not include front end neighbor information.
This change will affect only for multi-asic platform where port_config.ini contains asic_name for each port.
How I did it
if asic_port_name exists in config_db, update the dictionaries with asic_port_name information.
How to verify it
Verified on multi-asic vs testbed. Single asic - no change.
When config_db is not initialized, configuration generated initially will use port_config.ini.
For multi-asic vs (4 asic), the config_db generated for namespace asic0 :