This will invoke the command to install the image, and then
        cause the device to reboot.
        :param timeout: time/seconds to perform the install action

def run(self, timeout=10 * 60):
        """
        This will invoke the command to install the image, and then
        cause the device to reboot.
        :param timeout: time/seconds to perform the install action
        """

        cmd = 'install all nxos {dir}:{bin}'.format(
            dir=self.DESTDIR, bin=self.image)

        # Don't prompt when upgrading
        self.device.api.exec_opcmd('terminal dont-ask',
                                   msg_type='cli_show_ascii',
                                   timeout=timeout)
        run = self.device.api.exec_opcmd
        run(cmd, msg_type='cli_show_ascii', timeout=timeout)