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
def _get_qsfp_service_client(self, hostname: str) -> QsfpServiceClient: qsfp_client = QsfpServiceClient(hostname, None, timeout=DEFAULT_THRIFT_TIMEOUT) return qsfp_client
def qsfp_thrift(self): return QsfpServiceClient(self.switch.name, self.qsfp_port)