Esempio n. 1
0
 def _get_qsfp_service_client(self, hostname: str) -> QsfpServiceClient:
     qsfp_client = QsfpServiceClient(hostname,
                                     None,
                                     timeout=DEFAULT_THRIFT_TIMEOUT)
     self.assertTrue(
         qsfp_client,
         msg="Invalid QsfpServiceClient",
     )
     return qsfp_client
Esempio n. 2
0
 def _get_qsfp_service_client(self, hostname: str) -> QsfpServiceClient:
     qsfp_client = QsfpServiceClient(hostname,
                                     None,
                                     timeout=DEFAULT_THRIFT_TIMEOUT)
     return qsfp_client
Esempio n. 3
0
 def qsfp_thrift(self):
     return QsfpServiceClient(self.switch.name, self.qsfp_port)