Statistics
| Branch: | Tag: | Revision:

root / ncclient / operations / __init__.py @ 0cdb8b3c

History | View | Annotate | Download (1.6 kB)

1
# Copyright 2009 Shikhar Bhushan
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
#    http://www.apache.org/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14

    
15
'NETCONF protocol operations'
16

    
17
from errors import OperationError, MissingCapabilityError
18
from rpc import RPCError
19
from retrieve import Get, GetConfig
20
from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges
21
from session import CloseSession, KillSession
22
from lock import Lock, Unlock, LockContext
23
from subscribe import CreateSubscription
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

    
40
__all__ = [
41
    'RPCError',
42
    'OPERATIONS',
43
    'Get',
44
    'GetConfig',
45
    'EditConfig',
46
    'CopyConfig',
47
    'Validate',
48
    'Commit',
49
    'DiscardChanges',
50
    'DeleteConfig',
51
    'Lock',
52
    'Unlock',
53
    'LockContext',
54
    'CloseSession',
55
    'KillSession',
56
    'CreateSubscription',
57
]