1 module custom-types-test {
4 namespace "urn:custom.types.demo";
7 // imports added only for testing purposes
8 import iana-timezones {
11 import ietf-inet-types {
14 import ietf-yang-types {
18 organization "opendaylight";
19 contact "WILL-BE-DEFINED-LATER";
23 extension mountpoint {
24 description "enter point";
30 typedef access-operations-type {
33 description "Any protocol operation that creates a new data node.";
36 description "Any protocol operation or notification that returns the value of a data node.";
40 description "Any protocol operation that alters an existing data node.";
43 description "Any protocol operation that removes a data node.";
47 description "Execution access to the specified protocol operation.";
50 description "NETCONF Access Operation.";
54 type instance-identifier {
55 require-instance false;
60 type instance-identifier;
64 type service-type-ref;
69 description "crypto-id description";
72 identity crypto-base {
73 description "crypto-base description";
78 description "crypto-alg description";
83 description "crypto-def description";
91 bit auto-sense-speed {
98 default "auto-sense-speed";
104 description "An unknown or unspecified version of the Internet protocol.";
108 description "The IPv4 protocol as defined in RFC 791.";
112 description "The IPv6 protocol as defined in RFC 2460.";
115 description "default ip";
120 identity service-type {
122 "Service identity base type. All service identities must be
123 derived from this type. A service type uniquely defines a single
124 atomic API contract, such as a Java interface, a set of C
125 function declarations, or similar.
127 If the service type has a corresponding Java interface, the name
128 of that interface should be attached to the derived identity MUST
129 include a java-class keyword, whose name argument points to that
133 typedef service-type-ref {
135 "Internal type of references to service type identity.";