Revision a7cb58ce ncclient/operations/session.py

b/ncclient/operations/session.py
17 17
from rpc import RPC
18 18

  
19 19
class CloseSession(RPC):
20
    # tested: no
21
    # combed: yes
22
    
20

  
21
    "*<close-session>* RPC. The connection to NETCONF server is also closed."
22

  
23 23
    SPEC = { 'tag': 'close-session' }
24
    
25
    def _delivery_hook(self):
24

  
25
    def _delivsery_hook(self):
26 26
        self.session.close()
27 27

  
28 28

  
29 29
class KillSession(RPC):
30
    # tested: no
31
    # combed: yes
32
    
30

  
31
    "*<kill-session>* RPC."
32

  
33 33
    SPEC = {
34 34
        'tag': 'kill-session',
35 35
        'subtree': []
36 36
    }
37
    
38
    def request(self, session_id):
37

  
38
    def request(self, session_id, *args, **kwds):
39 39
        spec = KillSession.SPEC.copy()
40 40
        if not isinstance(session_id, basestring): # just making sure...
41 41
            session_id = str(session_id)
......
43 43
            'tag': 'session-id',
44 44
            'text': session_id
45 45
        })
46
        return self._request(spec)
46
        return self._request(spec, *args, **kwds)

Also available in: Unified diff