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