def inquiry(self, **kwargs): """ Returns a Inquiry Instance :param evpd = 0: a byte indicating if vital product data is supported :param page_code = 0: a byte representing a page code for vpd :param alloc_len = 96: a integer , the size of the data_in buffer :return: a Inquiry instance """ return Inquiry(self, **kwargs)
def inquiry(self, **kwargs): """ Returns a Inquiry Instance :param kwargs: a dict with key/value pairs evpd = 0, a byte indicating if vital product data is supported page_code = 0, a byte representing a page code for vpd alloc_len = 96, the size of the data_in buffer :return: a Inquiry instance """ opcode = self.device.opcodes.INQUIRY cmd = Inquiry(opcode, **kwargs) self.execute(cmd) SCSI.unmarshall(cmd) return cmd
def inquiry(self, evpd=0, page_code=0, alloclen=96): """ Returns a Inquiry Instance :param evpd: a byte indicating if vital product data is supported :param page_code: a byte representing a page code for vpd :param alloclen: the size of the data_in buffer :return: a Inquiry instance """ opcode = self.device.opcodes.INQUIRY cmd = Inquiry(opcode, evpd=evpd, page_code=page_code, alloclen=alloclen) self.execute(cmd) cmd.unmarshall(evpd=evpd) return cmd