Added support for union yang types to netconf.
[controller.git] / opendaylight / config / yang-test / src / main / yang / types / test-types.yang
1 module test-types {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:test:types";
4     prefix "tt";
5
6     description
7         "Types generated for testing";
8
9     revision "2013-11-27";
10
11     typedef extend-once {
12         type uint16;
13     }
14
15     typedef extend-twice {
16         type extend-once;
17     }
18
19     typedef extend-enum {
20         type enumeration {
21             enum "ONE";
22             enum "TWO";
23         }
24     }
25
26       typedef unionTest {
27         type union {
28           type string;
29           type uint32;
30           type extend-twice;
31         }
32       }
33
34 }