QSFP Hardware Test Config
The test configuration required to run QSFP hardware tests is modeled as the QsfpServiceConfig Thrift structure, which is defined here.
Key Fields
QsfpTestConfig
The QsfpTestConfig struct contains the topology information for your switch.
struct QsfpTestConfig {
  1: list<CabledTestPair> cabledPortPairs;
  2: TransceiverFirmware firmwareForUpgradeTest;
}
Example Configuration
For example, if port eth1/1/1 is connected to eth1/3/1 in 400G-4 optical mode, then QsfpTestConfig will be:
"qsfpTestConfig": {
 "cabledPortPairs": [
   {
     "aPortName": "eth1/1/1",
     "zPortName": "eth1/3/1",
     "profileID": 38
   }
 ]
}
Note: The
profileIDfield is thePortProfileIDenum defined inswitch_config.thrifthere.
General Guidelines for Generating QSFP Hardware Test Config
- Use the QSFP hardware test config of an existing platform as a starting point — QSFP Test Configs.
- Replace the modefield in thedefaultCommandLineArgswith the name of the platform you are testing.
- Replace the cabledPortPairsfield according to your topology.
- Run tests with the new config.