-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gearbox] Add support for "hwinfo" field (#1547)
This commit propagates the new "hwinfo" field parsed from gearbox_config.json to the create_switch SAI PHY call. This information is currently expected to be used to propagate the MDIO interface/phy_id to be used for a particular PHY by the SAI. Signed-off-by: Baptiste Covolato <baptiste@arista.com>
- Loading branch information
Showing
28 changed files
with
176 additions
and
46 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
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
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
46 changes: 46 additions & 0 deletions
46
gearsyncd/tests/configs/negative/gearbox_config_missing_phy_hwinfo.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"phys": [ | ||
{ | ||
"phy_id": 0, | ||
"name": "example-1", | ||
"address": "0x1000", | ||
"lib_name": "libsai_phy_example1.so", | ||
"firmware_path": "/tmp/phy-example1.bin", | ||
"config_file": "tests/configs/positive/phy1_config_1.json", | ||
"phy_access": "mdio", | ||
"bus_id": 0 | ||
}, | ||
{ | ||
"phy_id": 1, | ||
"name": "example-2", | ||
"address": "0x2000", | ||
"lib_name": "libsai_phy_example2.so", | ||
"firmware_path": "/tmp/phy-example2.bin", | ||
"config_file": "tests/configs/positive/phy2_config_1.json", | ||
"sai_init_config_file": "/usr/share/sonic/hwsku/example-2.bcm", | ||
"phy_access": "i2c", | ||
"bus_id": 1, | ||
"hwinfo": "" | ||
} | ||
], | ||
"interfaces": [ | ||
{ | ||
"index": 1, | ||
"phy_id" : 0, | ||
"system_lanes": [38,39], | ||
"line_lanes": [30,31,32,33] | ||
}, | ||
{ | ||
"index": 1, | ||
"phy_id" : 0, | ||
"system_lanes": [40,41], | ||
"line_lanes": [34,35,36,37] | ||
}, | ||
{ | ||
"index": 1, | ||
"phy_id" : 1, | ||
"system_lanes": [4,5], | ||
"line_lanes": [0,1,2,3] | ||
} | ||
] | ||
} |
Oops, something went wrong.