Statistics
| Branch: | Tag: | Revision:

root / ncclient / operations / __init__.py @ 216bb34c

History | View | Annotate | Download (1.7 kB)

1 2acc860a Shikhar Bhushan
# Copyright 2009 Shikhar Bhushan
2 2acc860a Shikhar Bhushan
#
3 2acc860a Shikhar Bhushan
# Licensed under the Apache License, Version 2.0 (the "License");
4 2acc860a Shikhar Bhushan
# you may not use this file except in compliance with the License.
5 2acc860a Shikhar Bhushan
# You may obtain a copy of the License at
6 2acc860a Shikhar Bhushan
#
7 2acc860a Shikhar Bhushan
#    http://www.apache.org/licenses/LICENSE-2.0
8 2acc860a Shikhar Bhushan
#
9 2acc860a Shikhar Bhushan
# Unless required by applicable law or agreed to in writing, software
10 2acc860a Shikhar Bhushan
# distributed under the License is distributed on an "AS IS" BASIS,
11 2acc860a Shikhar Bhushan
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 2acc860a Shikhar Bhushan
# See the License for the specific language governing permissions and
13 2acc860a Shikhar Bhushan
# limitations under the License.
14 2acc860a Shikhar Bhushan
15 216bb34c Shikhar Bhushan
from errors import OperationError, TimeoutExpiredError, MissingCapabilityError
16 a7cb58ce Shikhar Bhushan
from rpc import RPC, RPCReply, RPCError
17 a7cb58ce Shikhar Bhushan
from retrieve import Get, GetConfig, GetReply
18 216bb34c Shikhar Bhushan
from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges
19 efed7d4c Shikhar Bhushan
from session import CloseSession, KillSession
20 a6c00291 Shikhar Bhushan
from lock import Lock, Unlock, LockContext
21 a7cb58ce Shikhar Bhushan
#from subscribe import CreateSubscription
22 efed7d4c Shikhar Bhushan
23 d771dffc Shikhar Bhushan
OPERATIONS = {
24 d771dffc Shikhar Bhushan
    'get': Get,
25 d771dffc Shikhar Bhushan
    'get-config': GetConfig,
26 d771dffc Shikhar Bhushan
    'edit-config': EditConfig,
27 d771dffc Shikhar Bhushan
    'copy-config': CopyConfig,
28 d771dffc Shikhar Bhushan
    'validate': Validate,
29 d771dffc Shikhar Bhushan
    'commit': Commit,
30 d771dffc Shikhar Bhushan
    'discard-changes': DiscardChanges,
31 d771dffc Shikhar Bhushan
    'delete-config': DeleteConfig,
32 d771dffc Shikhar Bhushan
    'lock': Lock,
33 d771dffc Shikhar Bhushan
    'unlock': Unlock,
34 d771dffc Shikhar Bhushan
    'close_session': CloseSession,
35 d771dffc Shikhar Bhushan
    'kill-session': KillSession,
36 d771dffc Shikhar Bhushan
}
37 d771dffc Shikhar Bhushan
38 efed7d4c Shikhar Bhushan
__all__ = [
39 a7cb58ce Shikhar Bhushan
    'RPC',
40 a7cb58ce Shikhar Bhushan
    'RPCReply',
41 ebf2bbc6 Shikhar Bhushan
    'RPCError',
42 d771dffc Shikhar Bhushan
    'OPERATIONS',
43 11d9e642 Shikhar Bhushan
    'Get',
44 11d9e642 Shikhar Bhushan
    'GetConfig',
45 a7cb58ce Shikhar Bhushan
    'GetReply',
46 11d9e642 Shikhar Bhushan
    'EditConfig',
47 1fca349b Shikhar Bhushan
    'CopyConfig',
48 1fca349b Shikhar Bhushan
    'Validate',
49 1fca349b Shikhar Bhushan
    'Commit',
50 1fca349b Shikhar Bhushan
    'DiscardChanges',
51 11d9e642 Shikhar Bhushan
    'DeleteConfig',
52 6625258b Shikhar Bhushan
    'Lock',
53 6625258b Shikhar Bhushan
    'Unlock',
54 a6c00291 Shikhar Bhushan
    'LockContext',
55 efed7d4c Shikhar Bhushan
    'CloseSession',
56 216bb34c Shikhar Bhushan
    'KillSession',
57 216bb34c Shikhar Bhushan
    'OperationError',
58 216bb34c Shikhar Bhushan
    'TimeoutExpiredError',
59 216bb34c Shikhar Bhushan
    'MissingCapabilityError'
60 6625258b Shikhar Bhushan
]