Revision d771dffc ncclient/operations/__init__.py
b/ncclient/operations/__init__.py | ||
---|---|---|
14 | 14 |
|
15 | 15 |
'NETCONF protocol operations' |
16 | 16 |
|
17 |
from ncclient import NCClientError |
|
18 |
|
|
19 |
from rpc import RPC, RPCError |
|
20 |
from errors import MissingCapabilityError |
|
17 |
from errors import OperationError, MissingCapabilityError |
|
18 |
from rpc import RPCError |
|
21 | 19 |
from retrieve import Get, GetConfig |
22 | 20 |
from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges |
23 | 21 |
from session import CloseSession, KillSession |
24 | 22 |
from lock import Lock, Unlock, LockContext |
25 | 23 |
from subscribe import CreateSubscription |
26 | 24 |
|
25 |
OPERATIONS = { |
|
26 |
'get': Get, |
|
27 |
'get-config': GetConfig, |
|
28 |
'edit-config': EditConfig, |
|
29 |
'copy-config': CopyConfig, |
|
30 |
'validate': Validate, |
|
31 |
'commit': Commit, |
|
32 |
'discard-changes': DiscardChanges, |
|
33 |
'delete-config': DeleteConfig, |
|
34 |
'lock': Lock, |
|
35 |
'unlock': Unlock, |
|
36 |
'close_session': CloseSession, |
|
37 |
'kill-session': KillSession, |
|
38 |
} |
|
39 |
|
|
27 | 40 |
__all__ = [ |
28 |
'RPC', |
|
29 |
'RPCReply', |
|
30 | 41 |
'RPCError', |
42 |
'OPERATIONS', |
|
31 | 43 |
'Get', |
32 | 44 |
'GetConfig', |
33 | 45 |
'EditConfig', |
Also available in: Unified diff