1 module test-type-provider {
3 namespace "urn:opendaylight:org:test:type:provider:model";
6 import base-yang-types { prefix types; }
8 organization "OPEN DAYLIGHT";
9 contact "http://www.opendaylight.org/";
11 description "This module contains model for providing test data for Type Provider Test implementation.";
13 revision "2014-09-12" {
14 reference "Initial Revision.";
19 "Base identity from which all crypto algorithms
27 typedef extended-yang-int8 {
28 type types:yang-int8 {
41 typedef restricted-string {
44 pattern "[0-9a-fA-F]*";
48 typedef empty-pattern-string {
54 typedef complex-union {
56 type restricted-string;
68 typedef complex-string-int-union {
75 typedef aes-identityref-type {
81 typedef bar-item-leafref-id {
83 path "/foo/bars/bar-item/id";
93 type types:yang-int16;
102 leaf bug-1862-restricted-typedef {
103 type types:yang-int8 {
108 leaf restricted-int8-type {
109 type types:yang-int8-restricted;
112 leaf restricted-int {
118 leaf resolve-enum-leaf {
119 type types:yang-enumeration;
122 leaf resolve-direct-use-of-enum {
130 leaf-list list-of-enums {
148 path "../../foo/yang-int8-type";
153 container use-of-unions {
158 leaf complex-string-int-union {
159 type complex-string-int-union;
162 leaf simple-int-types-union {
163 type types:yang-union;
167 container construction-type-test {
169 type types:yang-boolean;
173 type types:yang-empty;
176 leaf yang-enumeration {
177 type types:yang-enumeration;
180 leaf direct-use-of-enum {
189 type types:yang-int8;
192 leaf yang-int8-restricted {
193 type types:yang-int8-restricted;
197 type types:yang-int16;
201 type types:yang-int32;
205 type types:yang-int64;
209 type types:yang-string;
212 leaf yang-decimal64 {
213 type types:yang-decimal64;
217 type types:yang-uint8;
221 type types:yang-uint16;
225 type types:yang-uint32;
229 type types:yang-uint64;
236 leaf complex-string-int-union {
237 type complex-string-int-union;
240 leaf simple-int-types-union {
241 type types:yang-union;
244 leaf direct-union-leaf {
253 type types:yang-binary;
257 type types:yang-bits;
261 type bar-item-leafref-id;
265 leaf foo-leafref-value {
267 path "../../foo/yang-int8-type";
271 leaf foo-cond-bar-item {
273 path "../../foo/bars/bar-item[id=current()/../bar-id]";
277 leaf aes-identityref-type {
278 type aes-identityref-type;
281 leaf foo-container-id {
282 type instance-identifier;
286 leaf root-bits-leaf {
291 bit auto-sense-speed {
298 default "auto-sense-speed";
301 leaf root-union-leaf {