Debian Codegraph @

ncclient/operations/__init__.py

raw
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 from ncclient.operations.errors import OperationError, TimeoutExpiredError, MissingCapabilityError
16 from ncclient.operations.rpc import RPC, RPCReply, RPCError, RaiseMode, GenericRPC
17
18 # rfc4741 ops
19
20 from ncclient.operations.retrieve import Get, GetConfig, GetSchema, GetReply, Dispatch
21 from ncclient.operations.edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges, CancelCommit
22 from ncclient.operations.session import CloseSession, KillSession
23 from ncclient.operations.lock import Lock, Unlock, LockContext
24 from ncclient.operations.subscribe import CreateSubscription
25
26 # others...
27 from ncclient.operations.flowmon import PoweroffMachine, RebootMachine
28
29 __all__ = [
30 'RPC',
31 'RPCReply',
32 'RPCError',
33 'RaiseMode',
34 'GenericRPC',
35 'Get',
36 'GetConfig',
37 'GetSchema',
38 'Dispatch',
39 'GetReply',
40 'EditConfig',
41 'CopyConfig',
42 'Validate',
43 'Commit',
44 'DiscardChanges',
45 'CancelCommit',
46 'DeleteConfig',
47 'Lock',
48 'Unlock',
49 'CreateSubscription',
50 'PoweroffMachine',
51 'RebootMachine',
52 ]