blob: 960e1ef64ac7e7e30c1b7ebc41a40a0776bdd417 [file] [log] [blame]
janani be3c59be2017-12-19 19:33:49 +05301module identity-test {
2 yang-version 1;
3 namespace "identity:ns:test:json:ser";
4 prefix "id";
5
6 import identity-types {
7 prefix "type";
8 }
9
10 revision "2013-07-15";
11
12 identity optical {
13 base type:int-type;
14 }
15
16 identity Giga {
17 base type:physical;
18 }
19
20 typedef available {
21 type identityref {
22 base "type:physical";
23 }
24 }
25
26 typedef typed{
27 type union {
28 type int32;
29 type int8;
30 type identityref {
31 base type:int-type;
32 }
33 }
34 }
35
36 container test {
37 leaf l {
38 type string;
39 }
40 container con {
41 leaf interface {
42 type identityref {
43 base "type:int-type";
44 }
45 }
46 container interfaces {
47 list int-list {
48 key "iden";
49 leaf iden {
50 type "id:typed";
51 }
52 container available {
53 leaf-list ll {
54 type available;
55 }
56 }
57 }
58 }
59 }
60 }
61}