Revision dd225c7a ncclient/operations/__init__.py

b/ncclient/operations/__init__.py
14 14

  
15 15
from errors import OperationError, TimeoutExpiredError, MissingCapabilityError
16 16
from rpc import RPC, RPCReply, RPCError
17

  
18
# rfc4741 ops
17 19
from retrieve import Get, GetConfig, GetReply
18 20
from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges
19 21
from session import CloseSession, KillSession
20 22
from lock import Lock, Unlock, LockContext
21
#from subscribe import CreateSubscription
23
# others...
24
from flowmon import PoweroffMachine, RebootMachine
22 25

  
23
OPERATIONS = {
26
INDEX = {
24 27
    'get': Get,
25
    'get-config': GetConfig,
26
    'edit-config': EditConfig,
27
    'copy-config': CopyConfig,
28
    'get_config': GetConfig,
29
    'edit_config': EditConfig,
30
    'copy_config': CopyConfig,
28 31
    'validate': Validate,
29 32
    'commit': Commit,
30
    'discard-changes': DiscardChanges,
31
    'delete-config': DeleteConfig,
33
    'discard_changes': DiscardChanges,
34
    'delete_config': DeleteConfig,
32 35
    'lock': Lock,
33 36
    'unlock': Unlock,
34
    'close-session': CloseSession,
35
    'kill-session': KillSession,
37
    'close_session': CloseSession,
38
    'kill_session': KillSession,
39
    'poweroff_machine': PoweroffMachine,
40
    'reboot_machine': RebootMachine
36 41
}
37 42

  
38 43
__all__ = [
......
51 56
    'DeleteConfig',
52 57
    'Lock',
53 58
    'Unlock',
59
    'PoweroffMachine',
60
    'RebootMachine',
54 61
    'LockContext',
55 62
    'CloseSession',
56 63
    'KillSession',

Also available in: Unified diff