Remove unused model imports
[controller.git] / opendaylight / model / model-topology / src / main / yang / opendaylight-topology.yang
1 module opendaylight-topology {
2     yang-version 1;
3     namespace "urn:opendaylight:model:topology:general";
4     // replace with IANA namespace when assigned
5     prefix "nt";
6
7     import yang-ext { prefix "ext"; }
8     import ietf-inet-types { prefix "inet"; }
9     import network-topology {prefix "topo"; revision-date "2013-10-21"; }
10
11     organization "TBD";
12
13     contact "WILL-BE-DEFINED-LATER";
14
15     revision 2013-10-30 {
16         description
17             "Initial revision.";
18     }
19
20     identity node-type {
21     
22     }
23     
24     typedef node-type-ref {
25         type identityref {
26             base node-type;
27        }
28     }
29     
30     identity topology-context {
31     
32     }
33     
34     identity topology-node-context {
35         
36     }
37
38     grouping node-identifiers {
39         list node-identifier {
40             key "type identifier";
41             leaf type {
42                 type node-type-ref;
43             }
44             leaf identifier {
45                 type inet:uri;
46             }
47         }
48     }
49
50     augment "/topo:network-topology/topo:topology" {
51         ext:context-instance "topology-context";
52     }
53
54     /* Inventory Augmentations */
55     augment "/topo:network-topology/topo:topology/topo:node" {
56         ext:context-instance "topology-node-context";
57     }
58
59     augment "/topo:network-topology/topo:topology/topo:node" {
60         ext:augment-identifier "identifiable-node";
61         uses node-identifiers;
62     }
63 }