Skip to content

Commit 9c6078c

Browse files
authored
Merge pull request #3714 from ktbyers/ocnos_commit_comment
Ocnos commit description map to 'comment' argument
2 parents 5883020 + 3c0c3dc commit 9c6078c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

netmiko/ipinfusion/ipinfusion_ocnos.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def commit(
4848
self,
4949
confirm: bool = False,
5050
confirm_delay: Optional[int] = None,
51-
description: str = "",
51+
comment: str = "",
5252
read_timeout: float = 120.0,
5353
) -> str:
5454
"""
@@ -58,8 +58,8 @@ def commit(
5858
command_string = commit
5959
confirm and confirm_delay:
6060
command_string = commit confirmed timeout <confirm_delay>
61-
description:
62-
command_string = commit description <description>
61+
comment (mapped to 'description' on device):
62+
command_string = commit description <comment>
6363
6464
failed commit message example:
6565
% Failed to commit .. As error(s) encountered during commit operation...
@@ -83,8 +83,8 @@ def commit(
8383
command_string += " confirmed"
8484
if confirm_delay:
8585
command_string += f" timeout {str(confirm_delay)}"
86-
if description:
87-
command_string += f" description {description}"
86+
if comment:
87+
command_string += f" description {comment}"
8888

8989
# Enter config mode (if necessary)
9090
output = self.config_mode()

0 commit comments

Comments
 (0)