Revision b2d60e49 ncclient/operations/edit.py
b/ncclient/operations/edit.py | ||
---|---|---|
27 | 27 |
|
28 | 28 |
"*<edit-config>* RPC" |
29 | 29 |
|
30 |
def request(self, target, config, default_operation=None, test_option=None, |
|
31 |
error_option=None): |
|
30 |
def request(self, target, config, default_operation=None, test_option=None, error_option=None): |
|
32 | 31 |
node = new_ele("edit-config") |
33 | 32 |
node.append(util.datastore_or_url("target", target, self._assert)) |
34 | 33 |
if error_option is not None: |
... | ... | |
95 | 94 |
self._assert(":confirmed-commit") |
96 | 95 |
sub_ele(node, "confirmed") |
97 | 96 |
if timeout is not None: |
98 |
# TODO check if timeout is a valid integer? |
|
99 | 97 |
sub_ele(node, "confirm-timeout").text = timeout |
100 | 98 |
return self._request(node) |
101 | 99 |
|
Also available in: Unified diff