1 // vi: set smarttab sw=4 tabstop=4:
2 module abstract-topology {
4 namespace "pre:simple.test.demo";
7 import ietf-inet-types { prefix "inet"; }
8 import abstract-prefixes { prefix "abs-pref"; }
10 organization "OPEN DAYLIGHT";
11 contact "http://www.opendaylight.org/";
14 This module contains the definitions of elements that creates network
15 topology i.e. definition of network nodes and links. This module is
16 not designed to be used solely for network representation. This module
17 SHOULD be used as base module in defining the network topology.
20 revision "2012-02-08" {
21 reference " WILL BE DEFINED LATER";
24 typedef topology-id-ref {
26 path "/tp:topology/tp:topology-id";
28 description "This type is used for leafs that reference topology identifier instance.";
31 typedef network-node-id-ref {
33 path "/tp:topology/tp:network-nodes/tp:network-node/tp:node-id";
35 description "This type is used for leafs that reference network node instance.";
40 path "/tp:topology/tp:network-links/tp:network-link/tp:link-id";
42 description "This type is used for leafs that reference network link instance.";
47 This is the model of abstract topology which contains only Network
48 Nodes and Network Links. Each topology MUST be identified by
49 unique topology-id for reason that the store could contain many
56 It is presumed that datastore will contain many topologies. To
57 distinguish between topologies it is vital to have UNIQUE
62 container network-nodes {
64 description "The list of network nodes defined for topology.";
70 description "The Topology identifier of network-node.";
73 container attributes {
75 Additional attributes that can Network Node contains.
81 container network-links {
84 The Network Link which is defined by Local (Source) and
85 Remote (Destination) Network Nodes. Every link MUST be
86 defined either by identifier and his local and remote
87 Network Nodes (in real applications it is common that many
88 links are originated from one node and end up in same
89 remote node). To ensure that we would always know to
90 distinguish between links, every link SHOULD have
103 description "Source node identifier.";
107 container destination {
110 description "Destination node identifier.";
114 container attributes {
115 description "Aditional attributes that can Network Link contains.";
121 //TODO: add base operations