Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (918 Bytes)

1 5858a82c Shikhar Bhushan
# Copyright 2009 Shikhar Bhushan
2 5858a82c Shikhar Bhushan
#
3 5858a82c Shikhar Bhushan
# Licensed under the Apache License, Version 2.0 (the "License");
4 5858a82c Shikhar Bhushan
# you may not use this file except in compliance with the License.
5 5858a82c Shikhar Bhushan
# You may obtain a copy of the License at
6 5858a82c Shikhar Bhushan
#
7 5858a82c Shikhar Bhushan
#    http://www.apache.org/licenses/LICENSE-2.0
8 5858a82c Shikhar Bhushan
#
9 5858a82c Shikhar Bhushan
# Unless required by applicable law or agreed to in writing, software
10 5858a82c Shikhar Bhushan
# distributed under the License is distributed on an "AS IS" BASIS,
11 5858a82c Shikhar Bhushan
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 5858a82c Shikhar Bhushan
# See the License for the specific language governing permissions and
13 5858a82c Shikhar Bhushan
# limitations under the License.
14 5858a82c Shikhar Bhushan
15 4de03d63 Shikhar Bhushan
from rpc import RPC
16 5858a82c Shikhar Bhushan
17 3e022b7b Shikhar Bhushan
from ncclient.glue import Listener
18 1fca349b Shikhar Bhushan
from ncclient.content import qualify as _
19 3e022b7b Shikhar Bhushan
20 179b00d4 Shikhar Bhushan
# TODO when can actually test it...
21 179b00d4 Shikhar Bhushan
22 5858a82c Shikhar Bhushan
class CreateSubscription(RPC):    
23 179b00d4 Shikhar Bhushan
    # tested: no
24 3e022b7b Shikhar Bhushan
    
25 1fca349b Shikhar Bhushan
    SPEC = {
26 179b00d4 Shikhar Bhushan
        'tag': _('create-subscription', NOTIFICATION_NS)
27 1fca349b Shikhar Bhushan
    }
28 5858a82c Shikhar Bhushan
29 179b00d4 Shikhar Bhushan
class Notification: pass
30 3e022b7b Shikhar Bhushan
31 179b00d4 Shikhar Bhushan
class NotificationListener(Listener): pass