Revision dd8b8dd7 ncclient/operations/retrieve.py
b/ncclient/operations/retrieve.py | ||
---|---|---|
56 | 56 |
REPLY_CLS = GetReply |
57 | 57 |
|
58 | 58 |
def request(self, filter=None): |
59 |
""" |
|
60 |
:arg filter: optional; see :ref:`filter` |
|
61 |
|
|
62 |
:seealso: :ref:`return` |
|
63 |
""" |
|
64 | 59 |
node = new_ele("get") |
65 | 60 |
if filter is not None: |
66 | 61 |
node.append(util.build_filter(filter)) |
... | ... | |
74 | 69 |
REPLY_CLS = GetReply |
75 | 70 |
|
76 | 71 |
def request(self, source, filter=None): |
77 |
""" |
|
78 |
:arg source: See :ref:`source_target` |
|
79 |
|
|
80 |
:arg filter: optional; see :ref:`filter` |
|
81 |
|
|
82 |
:seealso: :ref:`return` |
|
83 |
""" |
|
84 | 72 |
node = new_ele("get-config") |
85 | 73 |
node.append(util.datastore_or_url("source", source, self._assert)) |
86 | 74 |
if filter is not None: |
Also available in: Unified diff