async def exit_config_mode(self):
    'Exit from configuration mode'
    logger.info('Host {}: Exiting from configuration mode'.format(self._host))
    output = ''
    config_exit = type(self)._config_exit
    if (await self.check_config_mode()):
        self._stdin.write(self._normalize_cmd(config_exit))
        output += (await self._read_until_prompt())
        if (await self.check_config_mode()):
            raise ValueError('Failed to exit from configuration mode')
    return output
Exit from configuration mode
async def exit_config_mode(self):
    
    logger.info('Host {}: Exiting from configuration mode'.format(self._host))
    output = 
    config_exit = type(self)._config_exit
    if (await self.check_config_mode()):
        self._stdin.write(self._normalize_cmd(config_exit))
        output += (await self._read_until_prompt())
        if (await self.check_config_mode()):
            raise ValueError('Failed to exit from configuration mode')
    return output