Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement rpc timeout #641

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ModuleDocFragment(object):
- password
port:
description:
- The TCP port number or serial device port used to establish the
- The TCP port number or serial device port used to establish the
connection. Mutually exclusive with the I(console) option.
required: false
default: C(830) if C(mode = none), C(23) if C(mode = 'telnet'),
Expand Down Expand Up @@ -231,7 +231,7 @@ class ModuleDocFragment(object):
- username
cs_user:
description:
- The username used to authenticate with the console server over SSH.
- The username used to authenticate with the console server over SSH.
This option is only required if you want to connect to a device over console
using SSH as transport. Mutually exclusive with the I(console) option.
required: false
Expand All @@ -240,7 +240,7 @@ class ModuleDocFragment(object):
- console_username
cs_passwd:
description:
- The password used to authenticate with the console server over SSH.
- The password used to authenticate with the console server over SSH.
This option is only required if you want to connect to a device over console
using SSH as transport. Mutually exclusive with the I(console) option.
required: false
Expand Down Expand Up @@ -339,7 +339,7 @@ class ModuleDocFragment(object):
choices:
- INFO
- DEBUG


'''

Expand Down Expand Up @@ -1543,6 +1543,9 @@ def commit_configuration(self, ignore_warning=None, comment=None,
Failures:
- An error returned from committing the configuration.
"""
if self.dev.timeout:
timeout = self.dev.timeout

if self.conn_type != "local":
self._pyez_conn.commit_configuration(ignore_warning, comment, timeout, confirmed, full, sync, force_sync)
return
Expand Down