def __handle_kds_listinterfaces(self, seqno, packet): cmd = datasource_pb2.ListInterfaces() cmd.ParseFromString(packet) if self.listinterfaces is None: self.send_datasource_interfaces_report(seqno, success=True) else: self.listinterfaces(seqno)
def __handle_kds_listinterfaces(self, seqno, packet): cmd = datasource_pb2.ListInterfaces() cmd.ParseFromString(packet) try: self.datasource_listinterfaces(seqno) except AttributeError: self.send_datasource_interfaces_report(seqno, success=True)