Merge "When a node is going down, remove edges in both directions associated with...
[controller.git] / opendaylight / sal / yang-prototype / yang / 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:custom.types.demo";
5     prefix "iit";
6
7     organization "opendaylight";
8     contact "WILL-BE-DEFINED-LATER";
9         revision 2012-04-16 {
10     }
11
12     typedef access-operations-type {
13         type bits {
14             bit create {
15                 description "Any protocol operation that creates a new data node.";
16             }
17             bit read {
18                 description "Any protocol operation or notification that returns the value of a data node.";
19                 position 500;
20             }
21             bit update {
22                 description "Any protocol operation that alters an existing data node.";
23             }
24             bit delete {
25                 description "Any protocol operation that removes a data node.";
26                 position 365;
27             }
28             bit exec {
29                 description "Execution access to the specified protocol operation.";
30             }
31         }
32         description "NETCONF Access Operation.";
33     }
34
35     leaf inst-id-leaf1 {
36         type instance-identifier {
37             require-instance false;
38         }
39     }
40
41     leaf inst-id-leaf2 {
42         type instance-identifier;
43     }
44
45     leaf type {
46         type service-type-ref;
47     }
48
49     identity crypto-base {
50         description "crypto-base description";
51     }
52      
53     identity crypto-alg {
54         base "crypto-base";
55         description "crypto-alg description";
56     }
57
58     leaf mybits {
59         type bits {
60             bit disable-nagle {
61                 position 0;
62             }
63             bit auto-sense-speed {
64                 position 1;
65             }
66             bit 10-Mb-only {
67                 position 2;
68             }
69         }
70         default "auto-sense-speed";
71     }
72
73     typedef ip-version {
74         type enumeration {
75             enum unknown {
76                 description "An unknown or unspecified version of the Internet protocol.";
77             }
78             enum ipv4 {
79                 value "19";
80                 description "The IPv4 protocol as defined in RFC 791.";
81             }
82             enum ipv6 {
83                 value "7";
84                 description "The IPv6 protocol as defined in RFC 2460.";
85             }
86             enum default {
87                 description "default ip";
88             }
89         }
90     }
91
92     identity service-type {
93         description
94             "Service identity base type. All service identities must be
95              derived from this type. A service type uniquely defines a single
96              atomic API contract, such as a Java interface, a set of C
97              function declarations, or similar.
98
99              If the service type has a corresponding Java interface, the name
100              of that interface should be attached to the derived identity MUST
101              include a java-class keyword, whose name argument points to that
102              interface.";
103     }
104
105     typedef service-type-ref {
106         description
107             "Internal type of references to service type identity.";
108         type identityref {
109             base service-type;
110         }
111     }
112
113 }