Updated toaster sample to match new Binding specification of YANG Tools.
[controller.git] / opendaylight / sal / yang-prototype / sal / samples / toaster / src / main / yang / toaster.yang
index fc9b6656c07e59e59814e0717babdd85f439b19a..15c0ac83edea5e3f0bfd80a4889c859541b23f93 100644 (file)
@@ -1,4 +1,4 @@
-module toaster {
+  module toaster {
 
     yang-version 1;
 
@@ -23,7 +23,7 @@ module toaster {
 
     identity toast-type {
       description
-          "Base for all bread types supported by the toaster.
+        "Base for all bread types supported by the toaster.
            New bread types not listed here nay be added in the 
            future.";
     }
@@ -59,7 +59,9 @@ module toaster {
     }
 
     typedef DisplayString {
-      type string;
+      type string {
+        length "0 .. 255";
+      }
       description
         "YANG version of the SMIv2 DisplayString TEXTUAL-CONVENTION.";
       reference