Skip to content

async_driver

scrapli_community.alcatel.aos.async_driver

default_async_on_close(conn: AsyncGenericDriver) -> None async

Async alcatel_aos default on_close callable

Parameters:

Name Type Description Default
conn AsyncGenericDriver

AsyncGenericDriver object

required

Returns:

Type Description
None

N/A

Source code in alcatel/aos/async_driver.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
async def default_async_on_close(conn: AsyncGenericDriver) -> None:
    """
    Async alcatel_aos default on_close callable

    Args:
        conn: AsyncGenericDriver object

    Returns:
        N/A

    Raises:
        N/A

    """
    conn.channel.write(channel_input="exit")
    conn.channel.send_return()