Revision bfcf8aea ncclient/operations/edit.py

b/ncclient/operations/edit.py
29 29
    
30 30
    def request(self, target, config, default_operation=None, test_option=None,
31 31
                error_option=None):
32
        #:arg default_operation: optional; one of {'merge', 'replace', 'none'}
33
        #:type default_operation: `string`
34
        #
35
        #:arg error_option: optional; one of {'stop-on-error', 'continue-on-error', 'rollback-on-error'}. Last option depends on the *:rollback-on-error* capability
36
        #:type error_option: string
37
        #
38
        #:arg test_option: optional; one of {'test-then-set', 'set'}. Depends on *:validate* capability.
39
        #:type test_option: string
40 32
        node = new_ele("edit-config")
41 33
        node.append(util.datastore_or_url("target", target, self._assert))
42 34
        if error_option is not None:
......
93 85

  
94 86
class Commit(RPC):
95 87

  
96
    "*<commit>* RPC. Depends on the *:candidate* capability."
88
    "*<commit>* RPC. Depends on the *:candidate* capability, and the *:confirmed-commit* "
97 89

  
98 90
    DEPENDS = [':candidate']
99 91
    
100 92
    def request(self, confirmed=False, timeout=None):
101
        """
102
        Requires *:confirmed-commit* capability if *confirmed* argument is
103
        :const:`True`.
104
        """
105
        #:arg confirmed: optional; request a confirmed commit
106
        #:type confirmed: `bool`
107
        #
108
        #:arg timeout: specify timeout for confirmed commit
109
        #:type timeout: `int`
110 93
        node = new_ele("commit")
111 94
        if confirmed:
112 95
            self._assert(":confirmed-commit")

Also available in: Unified diff