6 "http://netconfcentral.org/ns/toaster2";
10 organization "Netconf Central";
13 "Andy Bierman <andy@netconfcentral.org>";
16 "YANG version of the TOASTER-MIB.";
18 revision "2009-11-20" {
20 "Toaster module in progress.";
26 "Base for all bread types supported by the toaster.
27 New bread types not listed here nay be added in the
31 identity white-bread {
32 base toast:toast-type;
33 description "White bread.";
36 identity wheat-bread {
38 description "Wheat bread.";
41 identity wonder-bread {
43 description "Wonder bread.";
46 identity frozen-waffle {
48 description "Frozen waffle.";
51 identity frozen-bagel {
53 description "Frozen bagel.";
58 description "Hash browned potatos.";
61 typedef DisplayString {
66 "YANG version of the SMIv2 DisplayString TEXTUAL-CONVENTION.";
68 "RFC 2579, section 2.";
74 "Indicates the toaster service is available";
76 "Top-level container for all toaster database objects.";
77 leaf toasterManufacturer {
82 "The name of the toaster's manufacturer. For instance,
93 leaf toasterModelNumber {
98 "The name of the toaster's model. For instance,
107 "The toaster knob position is up.
108 No toast is being made now.";
113 "The toaster knob position is down.
114 Toast is being made now.";
120 "This variable indicates the current state of
124 leaf darknessFactor {
129 "The darkness factor. Basically, the number of ms to multiple the doneness value by.";
131 } // container toaster
169 The toastDone notification will be sent when
170 the toast is finished.
171 An 'in-use' error will be returned if toast
172 is already being made.
173 A 'resource-denied' error will be returned
174 if the toaster service is disabled.";
176 leaf toasterDoneness {
182 "This variable controls how well-done is the
183 ensuing toast. It should be on a scale of 1 to 10.
184 Toast made at 10 generally is considered unfit
185 for human consumption; toast made at 1 is warmed
189 leaf toasterToastType {
191 base toast:toast-type;
193 default 'wheat-bread';
195 "This variable informs the toaster of the type of
196 material that is being toasted. The toaster
197 uses this information, combined with
198 toasterDoneness, to compute for how
199 long the material must be toasted to achieve
200 the required doneness.";
207 "Stop making toast, if any is being made.
208 A 'resource-denied' error will be returned
209 if the toaster service is disabled.";
210 } // rpc cancel-toast
212 rpc restock-toaster {
214 "Restocks the toaster with the amount of bread specified.";
217 leaf amountOfBreadToStock {
220 "Indicates the amount of bread to re-stock";
225 notification toasterOutOfBread {
227 "Indicates that the toaster has run of out bread.";
228 } // notification toasterOutOfStock
230 notification toasterRestocked {
232 "Indicates that the toaster has run of out bread.";
236 "Indicates the amount of bread that was re-stocked";
238 } // notification toasterOutOfStock