def update_driver(self, prompt): """Update driver based on the prompt.""" logger.debug(prompt) # Do not update the driver if not target device platform = pattern_manager.platform(prompt) if self.device.is_target else None if platform: logger.debug('{} -> {}'.format(self.platform, platform)) return platform else: logger.debug('No update: {}'.format(self.platform)) return self.platform
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" logger.debug(prompt) platform = pattern_manager.platform(prompt) if platform == 'IOS': platform = 'NX-OS' if platform: logger.debug('{} -> {}'.format(self.platform, platform)) return platform else: logger.debug('No update: {}'.format(self.platform)) return self.platform
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" logger.debug(prompt) platform = pattern_manager.platform(prompt) if platform == 'IOS': platform = 'NX-OS' if platform: logger.debug('{} -> {}'.format(self.platform, platform)) return platform else: logger.debug('No update: {}'.format(self.platform)) return self.platform
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" logger.debug(prompt) platform = pattern_manager.platform(prompt) # to avoid the XR platform detection as eXR and XR prompts are the same if platform == 'XR': platform = 'eXR' if platform: logger.debug('{} -> {}'.format(self.platform, platform)) return platform else: logger.debug('No update: {}'.format(self.platform)) return self.platform
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" logger.debug(prompt) platform = pattern_manager.platform(prompt) # to avoid the XE platform detection as IOS and XE and IOS prompts are the same if platform == 'IOS': platform = 'XE' if platform: logger.debug('{} -> {}'.format(self.platform, platform)) return platform else: logger.debug('No update: {}'.format(self.platform)) return self.platform
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" if "-stby" in prompt: raise ConnectionError("Standby console detected") return pattern_manager.platform(prompt, ['XE'])
def update_driver(self, prompt): """Update driver based on the prompt.""" # Do not update the driver if not target device return pattern_manager.platform( prompt) if self.device.is_target else None
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" return pattern_manager.platform(prompt, ['QNX', 'XR'])
def update_driver(self, prompt): """Return driver name based on prompt analysis.""" return pattern_manager.platform(prompt, ['Calvados', 'Windriver', 'eXR'])