# See the License for the specific language governing permissions and
# limitations under the License.
-'NETCONF Remote Procedure Calls (RPC) and protocol operations'
+'NETCONF protocol operations'
-import logging
-logger = logging.getLogger('ncclient.operations')
-
-#from retrieve import Get, GetConfig
-#from edit import EditConfig, DeleteConfig
+from errors import OperationError, MissingCapabilityError
+from rpc import RPCError
+from retrieve import Get, GetConfig
+from edit import EditConfig, CopyConfig, DeleteConfig, Validate, Commit, DiscardChanges
from session import CloseSession, KillSession
-from lock import Lock, Unlock
-#from notification import CreateSubscription
+from lock import Lock, Unlock, LockContext
+from subscribe import CreateSubscription
+
+OPERATIONS = {
+ 'get': Get,
+ 'get-config': GetConfig,
+ 'edit-config': EditConfig,
+ 'copy-config': CopyConfig,
+ 'validate': Validate,
+ 'commit': Commit,
+ 'discard-changes': DiscardChanges,
+ 'delete-config': DeleteConfig,
+ 'lock': Lock,
+ 'unlock': Unlock,
+ 'close_session': CloseSession,
+ 'kill-session': KillSession,
+}
__all__ = [
-# 'Get',
-# 'GetConfig',
-# 'EditConfig',
-# 'DeleteConfig',
-# 'Lock',
-# 'Unlock',
+ 'RPCError',
+ 'OPERATIONS',
+ 'Get',
+ 'GetConfig',
+ 'EditConfig',
+ 'CopyConfig',
+ 'Validate',
+ 'Commit',
+ 'DiscardChanges',
+ 'DeleteConfig',
+ 'Lock',
+ 'Unlock',
+ 'LockContext',
'CloseSession',
'KillSession',
-# 'CreateSubscription',
-# ]
\ No newline at end of file
+ 'CreateSubscription',
+]