1 module custom-types-test {
4 namespace "urn:custom.types.demo";
7 // imports added only for testing purposes
14 import iana-timezones {
17 import ietf-inet-types {
20 import ietf-yang-types {
24 organization "opendaylight";
25 contact "WILL-BE-DEFINED-LATER";
29 extension mountpoint {
30 description "enter point";
36 typedef access-operations-type {
39 description "Any protocol operation that creates a new data node.";
42 description "Any protocol operation or notification that returns the value of a data node.";
46 description "Any protocol operation that alters an existing data node.";
49 description "Any protocol operation that removes a data node.";
53 description "Execution access to the specified protocol operation.";
56 description "NETCONF Access Operation.";
60 type instance-identifier {
61 require-instance false;
66 type instance-identifier;
70 type service-type-ref;
73 identity crypto-base {
74 description "crypto-base description";
79 description "crypto-alg description";
87 bit auto-sense-speed {
94 default "auto-sense-speed";
100 description "An unknown or unspecified version of the Internet protocol.";
104 description "The IPv4 protocol as defined in RFC 791.";
108 description "The IPv6 protocol as defined in RFC 2460.";
111 description "default ip";
116 identity service-type {
118 "Service identity base type. All service identities must be
119 derived from this type. A service type uniquely defines a single
120 atomic API contract, such as a Java interface, a set of C
121 function declarations, or similar.
123 If the service type has a corresponding Java interface, the name
124 of that interface should be attached to the derived identity MUST
125 include a java-class keyword, whose name argument points to that
129 typedef service-type-ref {
131 "Internal type of references to service type identity.";