Skip to content

async_diver

scrapli_community.aethra.atosnt.async_driver

default_async_on_close(conn: AsyncGenericDriver) -> None async

Async aethra_atosnt default on_close callable

Parameters:

Name Type Description Default
conn AsyncGenericDriver

AsyncGenericDriver object

required

Returns:

Type Description
None

N/A

Source code in aethra/atosnt/async_diver.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 aethra_atosnt default on_close callable

    Args:
        conn: AsyncGenericDriver object

    Returns:
        N/A

    Raises:
        N/A

    """
    conn.channel.write(channel_input="\x04")
    conn.channel.send_return()