

def shutdown(time=0):
    "\n    Shuts down the device after the given time.\n\n    Usage:\n\n    .. code-block:: bash\n\n        salt 'device_name' junos.shutdown 10\n\n\n    Options:\n      * time: Time in seconds after which the device should shutdown (default=0)\n    "
    conn = __proxy__['junos.conn']()
    ret = dict()
    sw = SW(conn)
    try:
        shut = sw.poweroff()
        shut(time)
        sw['message'] = 'Successfully powered off.'
        ret['out'] = False
    except Exception as exception:
        ret['message'] = 'Could not poweroff'
        ret['out'] = False
    return ret

dataset/ETHPy150Open saltstack/salt/salt/modules/junos.py shutdown/VarMisuse@53/164 `ret`->`sw`