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
136 The toastDone notification will be sent when
137 the toast is finished.
138 An 'in-use' error will be returned if toast
139 is already being made.
140 A 'resource-denied' error will be returned
141 if the toaster service is disabled.";
143 leaf toasterDoneness {
149 "This variable controls how well-done is the
150 ensuing toast. It should be on a scale of 1 to 10.
151 Toast made at 10 generally is considered unfit
152 for human consumption; toast made at 1 is warmed
156 leaf toasterToastType {
158 base toast:toast-type;
160 default 'wheat-bread';
162 "This variable informs the toaster of the type of
163 material that is being toasted. The toaster
164 uses this information, combined with
165 toasterDoneness, to compute for how
166 long the material must be toasted to achieve
167 the required doneness.";
174 "Stop making toast, if any is being made.
175 A 'resource-denied' error will be returned
176 if the toaster service is disabled.";
177 } // rpc cancel-toast
179 rpc restock-toaster {
181 "Restocks the toaster with the amount of bread specified.";
184 leaf amountOfBreadToStock {
187 "Indicates the amount of bread to re-stock";
192 notification toasterOutOfBread {
194 "Indicates that the toaster has run of out bread.";
195 } // notification toasterOutOfStock
197 notification toasterRestocked {
199 "Indicates that the toaster has run of out bread.";
203 "Indicates the amount of bread that was re-stocked";
205 } // notification toasterOutOfStock