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;
57 iit:mountpoint "mnt-extension";
61 type instance-identifier;
65 type service-type-ref;
70 description "crypto-id description";
71 iit:mountpoint "mnt-extension";
74 identity crypto-base {
75 description "crypto-base description";
80 description "crypto-alg description";
85 description "crypto-def description";
93 bit auto-sense-speed {
100 default "auto-sense-speed";
106 description "An unknown or unspecified version of the Internet protocol.";
110 description "The IPv4 protocol as defined in RFC 791.";
114 description "The IPv6 protocol as defined in RFC 2460.";
117 description "default ip";
122 identity service-type {
124 "Service identity base type. All service identities must be
125 derived from this type. A service type uniquely defines a single
126 atomic API contract, such as a Java interface, a set of C
127 function declarations, or similar.
129 If the service type has a corresponding Java interface, the name
130 of that interface should be attached to the derived identity MUST
131 include a java-class keyword, whose name argument points to that
135 typedef service-type-ref {
137 "Internal type of references to service type identity.";