Skip to content

Commit 7a9e32c

Browse files
authored
Fix pluribus paging issue #3566 (#3572)
1 parent bb699c1 commit 7a9e32c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

netmiko/pluribus/pluribus_ssh.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import time
2-
from typing import Any
2+
from typing import Any, Optional
33

44
from netmiko.no_config import NoConfig
55
from netmiko.base_connection import BaseConnection
@@ -20,3 +20,24 @@ def session_preparation(self) -> None:
2020
# Clear the read buffer
2121
time.sleep(0.3 * self.global_delay_factor)
2222
self.clear_buffer()
23+
24+
def disable_paging(
25+
self,
26+
command: str = "pager off",
27+
delay_factor: Optional[float] = None,
28+
cmd_verify: bool = True,
29+
pattern: Optional[str] = None,
30+
) -> str:
31+
"""Disable paging on Pluribus devices.
32+
33+
:param command: Command to disable pagination of output
34+
:param delay_factor: Deprecated in Netmiko 4.x. Will be eliminated in Netmiko 5.
35+
:param cmd_verify: Verify command echo before proceeding
36+
:param pattern: Pattern to terminate reading of channel
37+
"""
38+
return super().disable_paging(
39+
command=command,
40+
delay_factor=delay_factor,
41+
cmd_verify=cmd_verify,
42+
pattern=pattern,
43+
)

0 commit comments

Comments
 (0)