Merge "OF plugin classes must have a strict dependency on Connection Service"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-impl / src / test / resources / augment-relative-xpath-models / abstract-topology@2013-02-08.yang
1 module abstract-topology {
2     yang-version 1;
3     namespace "urn:model:abstract:topology";
4     prefix "tp";
5
6     import ietf-inet-types { 
7         prefix "inet"; 
8         revision-date 2010-09-24;
9     }
10
11     organization "OPEN DAYLIGHT";
12     contact "http://www.opendaylight.org/";
13
14     description
15         "This module contains the definitions of elements that creates network 
16     topology i.e. definition of network nodes and links. This module is not designed 
17     to be used solely for network representation. This module SHOULD be used as base 
18     module in defining the network topology.";
19
20     revision "2013-02-08" {
21         reference "http://www.opendaylight.org/";
22     }
23     
24     typedef node-id-ref {
25         type leafref {
26             path "/tp:topology/tp:network-nodes/tp:network-node/tp:node-id";
27         }
28         description "This type is used for leafs that reference network node instance.";
29     }
30
31     typedef link-id-ref {
32         type leafref {
33             path "/tp:topology/tp:network-links/tp:network-link/tp:link-id";
34         }
35         description "This type is used for leafs that reference network link instance.";
36     }
37
38     container topology {
39         description "This is the model of abstract topology which contains 
40         only Network Nodes and Network Links. Each topology MUST be identified by unique 
41         topology-id for reason that the store could contain many topologies.";
42
43         leaf topology-id {
44             type inet:uri;
45             description "It is presumed that datastore will contain many topologies. 
46             To distinguish between topologies it is vital to have
47             UNIQUE topology identifier.";
48         }
49
50         container network-nodes {
51             list network-node {
52                 key "node-id";
53
54                 leaf node-id {
55                     type inet:uri;
56                     description "The Topology identifier of network-node.";
57                 }
58
59                 container attributes {
60                     description "Aditional attributes that can Network Node contains.";
61                 }
62                 description "The list of network nodes defined for topology.";
63             }
64         }
65         
66         container network-links {
67             list network-link {
68                 key "link-id";
69
70                 leaf link-id {
71                     type inet:uri;
72                     description "";
73                 }
74
75                 container source-node {
76                     leaf id {
77                         type node-id-ref;
78                         description "Source node identifier.";
79                     }
80                 }
81
82                 container destination-node {
83                     leaf id {
84                         type node-id-ref;
85                         description "Destination node identifier.";
86                     }
87                 }
88
89                 container attributes {
90                     description "Aditional attributes that can Network Link contains.";
91                 }
92                 description "The Network Link which is defined by Local (Source) and Remote (Destination) 
93                 Network Nodes. Every link MUST be defined either by identifier and
94                 his local and remote Network Nodes (In real applications it is common that 
95                 many links are originated from one node and end up in same remote node). 
96                 To ensure that we would always know to distinguish between links, every link 
97                 SHOULD have identifier.";
98             }
99         }
100     }
101 }