Statistics
| Branch: | Tag: | Revision:

root / ncclient / operations / __init__.py @ 2f8bc438

History | View | Annotate | Download (1.3 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 ncclient import NCClientError
18

    
19
class OperationError(NCClientError):
20
    pass
21

    
22
class MissingCapabilityError(OperationError):
23
    pass
24

    
25
from retrieve import Get, GetConfig
26
from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges
27
from session import CloseSession, KillSession
28
from lock import Lock, Unlock
29
from subscribe import CreateSubscription
30

    
31

    
32
__all__ = [
33
    'OperationError',
34
    'MissingCapabilityError',
35
    'Get',
36
    'GetConfig',
37
    'EditConfig',
38
    'CopyConfig',
39
    'Validate',
40
    'Commit',
41
    'DiscardChanges',
42
    'DeleteConfig',
43
    'Lock',
44
    'Unlock',
45
    'CloseSession',
46
    'KillSession',
47
    'CreateSubscription',
48
]