X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fsal%2Fsamples%2Ftoaster%2Fsrc%2Fmain%2Fyang%2Ftoaster.yang;fp=opendaylight%2Fsal%2Fyang-prototype%2Fsal%2Fsamples%2Ftoaster%2Fsrc%2Fmain%2Fyang%2Ftoaster.yang;h=15c0ac83edea5e3f0bfd80a4889c859541b23f93;hb=52a8a9274273c581593325417863d62a86c5ee4e;hp=fc9b6656c07e59e59814e0717babdd85f439b19a;hpb=2e1c698a2bdfcbc3582fc72bf75424e1dc11f263;p=controller.git diff --git a/opendaylight/sal/yang-prototype/sal/samples/toaster/src/main/yang/toaster.yang b/opendaylight/sal/yang-prototype/sal/samples/toaster/src/main/yang/toaster.yang index fc9b6656c0..15c0ac83ed 100644 --- a/opendaylight/sal/yang-prototype/sal/samples/toaster/src/main/yang/toaster.yang +++ b/opendaylight/sal/yang-prototype/sal/samples/toaster/src/main/yang/toaster.yang @@ -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