c39759a2ea4785b9149bafebeda5bdfe35318675
[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 opendaylight-inventory {prefix "inv";}
10     import network-topology {prefix "topo"; revision-date "2013-10-21"; }
11
12     organization "TBD";
13
14     contact "WILL-BE-DEFINED-LATER";
15
16     revision 2013-10-30 {
17         description
18             "Initial revision.";
19     }
20
21     identity node-type {
22     
23     }
24     
25     typedef node-type-ref {
26         type identityref {
27             base node-type;
28        }
29     }
30     
31     identity topology-context {
32     
33     }
34     
35     identity topology-node-context {
36         
37     }
38
39     grouping node-identifiers {
40         list node-identifier {
41             key "type identifier";
42             leaf type {
43                 type node-type-ref;
44             }
45             leaf identifier {
46                 type inet:uri;
47             }
48         }
49     }
50
51     augment "/topo:network-topology/topo:topology" {
52         ext:context-instance "topology-context";
53     }
54
55     /* Inventory Augmentations */
56     augment "/topo:network-topology/topo:topology/topo:node" {
57         ext:context-instance "topology-node-context";
58     }
59
60     augment "/topo:network-topology/topo:topology/topo:node" {
61         ext:augment-identifier "identifiable-node";
62         uses node-identifiers;
63     }
64 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.