Revision dd225c7a ncclient/operations/retrieve.py
b/ncclient/operations/retrieve.py | ||
---|---|---|
21 | 21 |
|
22 | 22 |
class GetReply(RPCReply): |
23 | 23 |
|
24 |
# TESTED |
|
25 |
|
|
26 | 24 |
"""Adds attributes for the *<data>* element to :class:`RPCReply`, which |
27 | 25 |
pertains to the :class:`Get` and :class:`GetConfig` operations.""" |
28 | 26 |
|
29 | 27 |
def _parsing_hook(self, root): |
30 | 28 |
self._data = None |
31 | 29 |
if not self._errors: |
32 |
self._data = xml_.find(root, 'data', |
|
33 |
nslist=[xml_.BASE_NS, |
|
34 |
xml_.CISCO_BS]) |
|
30 |
self._data = xml_.find(root, 'data', nslist=xml_.NSLIST) |
|
35 | 31 |
|
36 | 32 |
@property |
37 | 33 |
def data_ele(self): |
... | ... | |
58 | 54 |
|
59 | 55 |
class Get(RPC): |
60 | 56 |
|
61 |
# TESTED |
|
62 |
|
|
63 | 57 |
"The *<get>* RPC" |
64 | 58 |
|
65 | 59 |
SPEC = {'tag': 'get', 'subtree': []} |
... | ... | |
80 | 74 |
|
81 | 75 |
class GetConfig(RPC): |
82 | 76 |
|
83 |
# TESTED |
|
84 |
|
|
85 | 77 |
"The *<get-config>* RPC" |
86 | 78 |
|
87 | 79 |
SPEC = {'tag': 'get-config', 'subtree': []} |
Also available in: Unified diff