public interface ToasterData
extends org.opendaylight.yangtools.yang.binding.DataRoot
This class represents the following YANG schema fragment defined in module toaster
module toaster {
yang-version 1;
namespace "http://netconfcentral.org/ns/toaster";
prefix toast;
revision 2009-11-20 {
}
identity toast-type {
}
identity white-bread {
base toast:toast-type;
}
identity wheat-bread {
base toast-type;
}
identity wonder-bread {
base toast-type;
}
identity frozen-waffle {
base toast-type;
}
identity frozen-bagel {
base toast-type;
}
identity hash-brown {
base toast-type;
}
typedef DisplayString {
type string {
length "0 .. 255";
}
}
container toaster {
presence "Indicates the toaster service is available";
leaf toasterManufacturer {
type DisplayString;
config false;
}
leaf toasterModelNumber {
type DisplayString;
config false;
}
leaf toasterStatus {
type enumeration {
enum up {
value 1;
}
enum down {
value 2;
}
}
config false;
}
leaf darknessFactor {
type uint32;
default 1000;
}
}
rpc make-toast {
input {
leaf toasterDoneness {
type uint32 {
range "1 .. 10";
}
default 5;
}
leaf toasterToastType {
type identityref {
base toast:toast-type;
}
default wheat-bread;
}
}
output;
}
rpc cancel-toast {
input;
output;
}
rpc restock-toaster {
input {
leaf amountOfBreadToStock {
type uint32;
}
}
output;
}
notification toasterOutOfBread {
}
notification toasterRestocked {
leaf amountOfBread {
type uint32;
}
}
}
| Modifier and Type | Method and Description |
|---|---|
@Nullable Toaster |
getToaster()
Top-level container for all toaster database objects.
|
@Nullable Toaster getToaster()
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster toaster, or null if not presentCopyright © 2019 OpenDaylight. All rights reserved.