Added Yang validator.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / types / custom-types-test@2012-4-4.yang
1 module custom-types-test {
2
3         yang-version 1;
4     namespace "urn:simple.container.demo";
5     prefix "iit";
6     
7     organization "opendaylight";
8     revision 2012-04-16 {
9     }
10     contact "WILL-BE-DEFINED-LATER";
11     
12     
13     typedef access-operations-type {
14         type bits {
15             bit create {
16                 description "Any protocol operation that creates a new data node.";
17             }
18             bit read {
19                 description "Any protocol operation or notification that returns the value of a data node.";
20                 position 500;
21             }
22             bit update {
23                 description "Any protocol operation that alters an existing data node.";
24             }
25             bit delete {
26                 description "Any protocol operation that removes a data node.";
27                 position 365;
28             }
29             bit exec {
30                 description "Execution access to the specified protocol operation.";
31             }
32         }
33         description "NETCONF Access Operation.";
34     }
35      
36     leaf inst-id-leaf1 {
37         type instance-identifier {
38             require-instance false;
39         }
40     }
41      
42     leaf inst-id-leaf2 {
43         type instance-identifier;
44     }
45
46     identity crypto-base {
47         description "crypto-base description";
48     }
49      
50     identity crypto-alg {
51         base "crypto-base";
52         description "crypto-alg description";
53     }
54     
55     leaf mybits {
56         type bits {
57             bit disable-nagle {
58                 position 0;
59             }
60             bit auto-sense-speed {
61                 position 1;
62             }
63             bit 10-Mb-only {
64                 position 2;
65             }
66         }
67         default "auto-sense-speed";
68     }
69         
70 }