Revision b5d5a1b1 ncclient/operations/edit.py
b/ncclient/operations/edit.py | ||
---|---|---|
47 | 47 |
:arg default_operation: optional; one of {'merge', 'replace', 'none'} |
48 | 48 |
:type default_operation: `string` |
49 | 49 |
|
50 |
:arg test_option: optional; one of {'stop-on-error', 'continue-on-error', 'rollback-on-error'}. Last option depends on the *:rollback-on-error* capability |
|
50 |
:arg error_option: optional; one of {'stop-on-error', 'continue-on-error', 'rollback-on-error'}. Last option depends on the *:rollback-on-error* capability |
|
51 |
:type error_option: string |
|
52 |
|
|
53 |
:arg test_option: optional; one of {'test-then-set', 'set'}. Depends on *:validate* capability. |
|
51 | 54 |
:type test_option: string |
52 | 55 |
|
53 | 56 |
:seealso: :ref:`return` |
... | ... | |
55 | 58 |
spec = deepcopy(EditConfig.SPEC) |
56 | 59 |
subtree = spec['subtree'] |
57 | 60 |
subtree.append(util.store_or_url('target', target, self._assert)) |
58 |
subtree.append(content.validated_element(config, ('config', content.qualify('config')))) |
|
59 | 61 |
if default_operation is not None: |
60 | 62 |
subtree.append({ |
61 | 63 |
'tag': 'default-operation', |
... | ... | |
74 | 76 |
'tag': 'error-option', |
75 | 77 |
'text': error_option |
76 | 78 |
}) |
79 |
subtree.append(content.validated_element(config, ('config', content.qualify('config')))) |
|
77 | 80 |
return self._request(spec) |
78 | 81 |
|
79 | 82 |
class DeleteConfig(RPC): |
Also available in: Unified diff