6 "http://netconfcentral.org/ns/toaster";
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,
86 leaf toasterModelNumber {
91 "The name of the toaster's model. For instance,
100 "The toaster knob position is up.
101 No toast is being made now.";
106 "The toaster knob position is down.
107 Toast is being made now.";
113 "This variable indicates the current state of
117 leaf darknessFactor {
122 "The darkness factor. Basically, the number of ms to multiple the doneness value by.";
124 } // container toaster
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.";
136 leaf toasterDoneness {
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
149 leaf toasterToastType {
151 base toast:toast-type;
153 default 'wheat-bread';
155 "This variable informs the toaster of the type of
156 material that is being toasted. The toaster
157 uses this information, combined with
158 toasterDoneness, to compute for how
159 long the material must be toasted to achieve
160 the required doneness.";
167 "Stop making toast, if any is being made.
168 A 'resource-denied' error will be returned
169 if the toaster service is disabled.";
170 } // rpc cancel-toast
172 rpc restock-toaster {
174 "Restocks the toaster with the amount of bread specified.";
177 leaf amountOfBreadToStock {
180 "Indicates the amount of bread to re-stock";
185 notification toasterOutOfBread {
187 "Indicates that the toaster has run of out bread.";
188 } // notification toasterOutOfStock
190 notification toasterRestocked {
192 "Indicates that the toaster has run of out bread.";
196 "Indicates the amount of bread that was re-stocked";
198 } // notification toasterOutOfStock