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
116 } // container toaster
121 The toastDone notification will be sent when
122 the toast is finished.
123 An 'in-use' error will be returned if toast
124 is already being made.
125 A 'resource-denied' error will be returned
126 if the toaster service is disabled.";
128 leaf toasterDoneness {
134 "This variable controls how well-done is the
135 ensuing toast. It should be on a scale of 1 to 10.
136 Toast made at 10 generally is considered unfit
137 for human consumption; toast made at 1 is warmed
141 leaf toasterToastType {
143 base toast:toast-type;
145 default 'wheat-bread';
147 "This variable informs the toaster of the type of
148 material that is being toasted. The toaster
149 uses this information, combined with
150 toasterDoneness, to compute for how
151 long the material must be toasted to achieve
152 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 notification toastDone {
174 "Indicates that the toast in progress has completed.";
179 description "The toast is done.";
184 "The toast was cancelled.";
189 "The toaster service was disabled or
190 the toaster is broken.";
194 "Indicates the final toast status";
196 } // notification toastDone