Skip to content

sync_driver

scrapli_community.cisco.asa.sync_driver

default_sync_on_close(conn: NetworkDriver) -> None

cisco_asa default on_close callable

Parameters:

Name Type Description Default
conn NetworkDriver

NetworkDriver object

required

Returns:

Type Description
None

N/A

Source code in cisco/asa/sync_driver.py
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
def default_sync_on_close(conn: NetworkDriver) -> None:
    """
    cisco_asa default on_close callable

    Args:
        conn: NetworkDriver object

    Returns:
        N/A

    Raises:
        N/A

    """
    conn.acquire_priv(desired_priv=conn.default_desired_privilege_level)
    conn.channel.write(channel_input="logout")
    conn.channel.send_return()

default_sync_on_open(conn: NetworkDriver) -> None

Async cisco_asa default on_open callable

Parameters:

Name Type Description Default
conn NetworkDriver

NetworkDriver object

required

Returns:

Type Description
None

N/A

Source code in cisco/asa/sync_driver.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
def default_sync_on_open(conn: NetworkDriver) -> None:
    """
    Async cisco_asa default on_open callable

    Args:
        conn: NetworkDriver object

    Returns:
        N/A

    Raises:
        N/A

    """
    conn.acquire_priv(desired_priv=conn.default_desired_privilege_level)
    conn.send_command(command="terminal pager 0")
    conn.send_config(config="terminal width 511")

read_only_sync_on_open(conn: NetworkDriver) -> None

Async cisco_asa read-only on_open callable

Parameters:

Name Type Description Default
conn NetworkDriver

NetworkDriver object

required

Returns:

Type Description
None

N/A

Source code in cisco/asa/sync_driver.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def read_only_sync_on_open(conn: NetworkDriver) -> None:
    """
    Async cisco_asa read-only on_open callable

    Args:
        conn: NetworkDriver object

    Returns:
        N/A

    Raises:
        N/A

    """
    conn.acquire_priv(desired_priv=conn.default_desired_privilege_level)
    conn.send_command(command="terminal pager 0")