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 {
64 "YANG version of the SMIv2 DisplayString TEXTUAL-CONVENTION.";
66 "RFC 2579, section 2.";
72 "Indicates the toaster service is available";
74 "Top-level container for all toaster database objects.";
75 leaf toasterManufacturer {
80 "The name of the toaster's manufacturer. For instance,
84 leaf toasterModelNumber {
89 "The name of the toaster's model. For instance,
98 "The toaster knob position is up.
99 No toast is being made now.";
104 "The toaster knob position is down.
105 Toast is being made now.";
111 "This variable indicates the current state of
114 } // container toaster
119 The toastDone notification will be sent when
120 the toast is finished.
121 An 'in-use' error will be returned if toast
122 is already being made.
123 A 'resource-denied' error will be returned
124 if the toaster service is disabled.";
126 leaf toasterDoneness {
132 "This variable controls how well-done is the
133 ensuing toast. It should be on a scale of 1 to 10.
134 Toast made at 10 generally is considered unfit
135 for human consumption; toast made at 1 is warmed
139 leaf toasterToastType {
141 base toast:toast-type;
143 default 'wheat-bread';
145 "This variable informs the toaster of the type of
146 material that is being toasted. The toaster
147 uses this information, combined with
148 toasterDoneness, to compute for how
149 long the material must be toasted to achieve
150 the required doneness.";
157 "Stop making toast, if any is being made.
158 A 'resource-denied' error will be returned
159 if the toaster service is disabled.";
160 } // rpc cancel-toast
162 notification toastDone {
164 "Indicates that the toast in progress has completed.";
169 description "The toast is done.";
174 "The toast was cancelled.";
179 "The toaster service was disabled or
180 the toaster is broken.";
184 "Indicates the final toast status";
186 } // notification toastDone