Remove "response" from yang.
[packetcable.git] / packetcable-consumer / src / main / yang / pcmm-service-impl.yang
1 module pcmm-service-impl {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:pcmm-service:impl";
5     prefix "pcmm-service-impl";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import rpc-context { prefix rpcx; revision-date 2013-06-17; }    
9     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
10
11     description
12         "This module contains the base YANG definitions for
13         pcmm-service impl implementation.";
14
15     revision "2014-08-10" {
16         description
17             "Initial revision.";
18     }
19
20     // This is the definition of pcmm service interface identity.
21     identity pcmm-service {
22         base "config:service-type";
23         config:java-class "org.opendaylight.controller.org.pcmm.api.PcmmService";
24     }
25
26     // This is the definition of pcmm service implementation module identity. 
27     identity pcmm-service-impl {
28             base config:module-type;
29             config:provided-service pcmm-service;
30             config:java-name-prefix PcmmService;
31     }
32
33     augment "/config:modules/config:module/config:configuration" {
34         case pcmm-service-impl {
35             when "/config:modules/config:module/config:type = 'pcmm-service-impl'";
36
37             container rpc-registry {
38                 uses config:service-ref {
39                     refine type {
40                         mandatory true;
41                         config:required-identity mdsal:binding-rpc-registry;
42                     }
43                 }
44             }
45
46             container notification-service {
47                 uses config:service-ref {
48                     refine type {
49                         mandatory true;
50                         config:required-identity mdsal:binding-notification-service;
51                     }
52                 }
53             }
54         }
55     }
56     
57     augment "/config:modules/config:module/config:state" {
58         case pcmm-service-impl {
59             when "/config:modules/config:module/config:type = 'pcmm-service-impl'";
60             
61             rpcx:rpc-context-instance "send-gate-set-rpc";
62             rpcx:rpc-context-instance "send-gate-delete-rpc";
63             rpcx:rpc-context-instance "send-gate-info-rpc";
64             rpcx:rpc-context-instance "send-gate-synchronize-rpc";
65               
66         }
67     }
68
69     identity send-gate-set-rpc;
70
71     rpc send-gate-set {
72         description
73           "Shortcut JMX call to send a gate-set message for testing.";
74           
75         input {
76             uses rpcx:rpc-context-ref {
77                 refine context-instance {
78                     rpcx:rpc-context-instance send-gate-set-rpc;
79                 }
80             }
81         }
82         
83         output {
84             leaf result {
85                 type boolean;
86             }
87         }
88     }
89     
90       identity send-gate-delete-rpc;
91
92     rpc send-gate-delete {
93         description
94           "Shortcut JMX call to send a gate-delete message for testing.";
95           
96         input {
97             uses rpcx:rpc-context-ref {
98                 refine context-instance {
99                     rpcx:rpc-context-instance send-gate-delete-rpc;
100                 }
101             }
102         }
103         
104         output {
105             leaf result {
106                 type boolean;
107             }
108         }
109     }
110     
111      identity send-gate-synchronize-rpc;
112
113     rpc send-gate-synchronize {
114         description
115           "Shortcut JMX call to send a gate-Synchronize message for testing.";
116           
117         input {
118             uses rpcx:rpc-context-ref {
119                 refine context-instance {
120                     rpcx:rpc-context-instance send-gate-synchronize-rpc;
121                 }
122             }
123         }
124         
125         output {
126             leaf result {
127                 type boolean;
128             }
129         }
130     }
131     
132           identity send-gate-info-rpc;
133
134     rpc send-gate-info {
135         description
136           "Shortcut JMX call to send a gate-info message for testing.";
137           
138         input {
139             uses rpcx:rpc-context-ref {
140                 refine context-instance {
141                     rpcx:rpc-context-instance send-gate-info-rpc;
142                 }
143             }
144         }
145         
146         output {
147             leaf result {
148                 type boolean;
149             }
150         }
151     }
152 }