Merge "Refactor frontend JS"
[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     contact "WILL-BE-DEFINED-LATER";
9     
10     
11     typedef access-operations-type {
12         type bits {
13             bit create {
14                 description "Any protocol operation that creates a new data node.";
15             }
16             bit read {
17                 description "Any protocol operation or notification that returns the value of a data node.";
18                 position 500;
19             }
20             bit update {
21                 description "Any protocol operation that alters an existing data node.";
22             }
23             bit delete {
24                 description "Any protocol operation that removes a data node.";
25                 position 365;
26             }
27             bit exec {
28                 description "Execution access to the specified protocol operation.";
29             }
30         }
31         description "NETCONF Access Operation.";
32     }
33      
34     leaf inst-id-leaf1 {
35         type instance-identifier {
36             require-instance false;
37         }
38     }
39      
40     leaf inst-id-leaf2 {
41         type instance-identifier;
42     }
43
44     identity crypto-base {
45         description "crypto-base description";
46     }
47      
48     identity crypto-alg {
49         base "crypto-base";
50         description "crypto-alg description";
51     }
52     
53     leaf mybits {
54         type bits {
55             bit disable-nagle {
56                 position 0;
57             }
58             bit auto-sense-speed {
59                 position 1;
60             }
61             bit 10-Mb-only {
62                 position 2;
63             }
64         }
65         default "auto-sense-speed";
66     }
67         
68 }