-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update y_cable_simulator_client to address SFP issue. (#2952)
Summary: Fixes # (issue) In topo dualtor_56, a 100G interfaces are splited into two 50G interfaces according to port_config.ini. As a result, the physical port id got from SFP is different with host interface index, which is used as the name of mux bridge. For example, the physical port id for Ethernet4 is 2 according port_config.ini, but the interface is connect to mux bridge mbr-vms17-8-2. Therefore, we need to calculate host interface index from physical port id. This PR addressed the issue by calculating host interface index according to port config file. Most of the logic is same with read_porttab_mappings in sfputilhelper.py
- Loading branch information
1 parent
a4cc76e
commit 9b41a7a
Showing
1 changed file
with
120 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