Revision 2acc860a ncclient/rpc.py

b/ncclient/rpc.py
20 20

  
21 21
class RPC:
22 22
    
23
    metadata = {
24
        'tag': 'rpc',
25
        'xmlns': 'urn:ietf:params:xml:ns:netconf:base:1.0',
26
        }
27
    
23 28
    def __init__(self, session, async=False, parse=True):
24 29
        self._session = session
25 30
        self._async = async
......
36 41
    
37 42
    def _do_request(self, op):
38 43
        self._session.send(content.make_rpc(self._id, op))
44
        # content.make(RPC, attrs={'message-id': self._id}, children=(op,))
39 45
        if not self._async:
40 46
            self._reply_event.wait()
41 47
        return self._reply
......
66 72
    def session(self):
67 73
        return self._session
68 74

  
69

  
70 75
class RPCReply:
71
    pass
72

  
73
class RPCError:
74
    pass
76
    
77
    class RPCError:
78
        
79
        pass

Also available in: Unified diff