Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / schema3.xml
1 <rpc-reply message-id="102"
2            xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
3            <data
4            xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
5 module toaster {
6
7     namespace "http://netconfcentral.org/ns/toaster";
8
9     prefix "toast";
10
11     organization
12         "Netconf Central";
13
14     contact
15         "Andy Bierman <andy@netconfcentral.org>";
16
17     description
18         "YANG version of the TOASTER-MIB.";
19
20
21     revision 2009-11-20 {
22         description "Toaster module in progress.";
23     }
24
25     identity toast-type {
26         description
27           "Base for all bread types supported by the toaster.
28            New bread types not listed here nay be added in the
29            future.";
30     }
31
32     identity white-bread {
33         description
34           "White bread.";
35         base toast:toast-type;
36     }
37
38     identity wheat-bread {
39         description
40           "Wheat bread.";
41         base toast-type;
42     }
43
44     identity wonder-bread {
45         description
46           "Wonder bread.";
47         base toast-type;
48     }
49
50     identity frozen-waffle {
51         description
52           "Frozen waffle.";
53         base toast-type;
54     }
55
56     identity frozen-bagel {
57         description
58           "Frozen bagel.";
59         base toast-type;
60     }
61
62     identity hash-brown {
63         description
64           "Hash browned potatos.";
65         base toast-type;
66     }
67
68     typedef DisplayString {
69         description
70           "YANG version of the SMIv2 DisplayString TEXTUAL-CONVENTION.";
71         reference "RFC 2579, section 2.";
72         type string {
73             length "0 .. 255";
74         }
75     }
76
77     container toaster {
78         presence
79           "Indicates the toaster service is available";
80
81         description
82           "Top-level container for all toaster database objects.";
83
84         leaf toasterManufacturer {
85             type DisplayString;
86             config false;
87             mandatory true;
88             description
89               "The name of the toaster's manufacturer. For instance,
90                 Microsoft Toaster.";
91         }
92
93         leaf toasterModelNumber {
94             type DisplayString;
95             config false;
96             mandatory true;
97             description
98               "The name of the toaster's model. For instance,
99                Radiant Automatic.";
100         }
101
102         leaf toasterStatus {
103             type enumeration {
104                 enum up {
105                   value 1;
106                   description
107                     "The toaster knob position is up.
108                       No toast is being made now.";
109                 }
110                 enum down {
111                   value 2;
112                   description
113                     "The toaster knob position is down.
114                       Toast is being made now.";
115
116                 }
117             }
118             config false;
119             mandatory true;
120             description
121               "This variable indicates the current state of
122                the toaster.";
123         }
124     }
125
126     rpc make-toast {
127         description
128           "Make some toast.
129            The toastDone notification will be sent when
130            the toast is finished.
131            An 'in-use' error will be returned if toast
132            is already being made.
133            A 'resource-denied' error will be returned
134            if the toaster service is disabled.";
135         input {
136             leaf toasterDoneness {
137                 type uint32 {
138                     range "1 .. 10";
139                 }
140                 default 5;
141                 description
142                   "This variable controls how well-done is the
143                    ensuing toast. It should be on a scale of 1 to 10.
144                    Toast made at 10 generally is considered unfit
145                    for human consumption; toast made at 1 is warmed
146                    lightly.";
147             }
148             leaf toasterToastType {
149                 type identityref {
150                     base toast:toast-type;
151                 }
152                 default toast:wheat-bread;
153                 description
154                   "This variable informs the toaster of the type of
155                    material that is being toasted. The toaster
156                    uses this information, combined with
157                    toasterDoneness, to compute for how
158                    long the material must be toasted to achieve
159                    the required doneness.";
160             }
161         }
162     }
163
164     rpc cancel-toast {
165         description
166           "Stop making toast, if any is being made.
167            A 'resource-denied' error will be returned
168            if the toaster service is disabled.";
169     }
170
171     notification toastDone {
172         description
173           "Indicates that the toast in progress has completed.";
174
175         leaf toastStatus {
176            description
177              "Indicates the final toast status";
178            type enumeration {
179                enum done {
180                   description
181                     "The toast is done.";
182                }
183                enum cancelled {
184                   description
185                     "The toast was cancelled.";
186                }
187                enum error {
188                   description
189                     "The toaster service was disabled or
190                      the toaster is broken.";
191                }
192             }
193         }
194     }
195 }
196  </data>
197 </rpc-reply>