CiscoTestAutomation / pyats

Cisco DevNet pyATS Test Framework Bug Tracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"goto_enable" key option does not disable enabling

austintruong55 opened this issue · comments

Error:

Exception has occurred: ConnectionError
failed to connect to <hostname>
Failed while bringing device to "enable" state

The device located in testbed:

hostname:{
    "os": "ios",
    "credentials": {
        "default": {
            "username": username,
            "password": password,
        }
    },
    "connections": {
        "cli": {
            "init_exec_commands": [],
            "init_config_commands": [],
            "goto_enable": False,
            "protocol": protocol,
            "ip": ip,
            "proxy": proxy,
        }
    }
}

When logging you can see that the device attempts to enable, but fails, because I have purposefully not provided the enable password.

Hi @austintruong55,
Can you please share a complete log of your test?
Which pyats version are you using?