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"; }
12 contact "WILL-BE-DEFINED-LATER";
15 This module contains the definitions of elements that creates network
16 topology i.e. definition of network nodes and links. This module is
17 not designed to be used solely for network representation. This module
18 SHOULD be used as base module in defining the network topology.
21 revision "2012-02-08" {
22 reference " WILL BE DEFINED LATER";
25 typedef topology-id-ref {
27 path "/tp:topology/tp:topology-id";
29 description "This type is used for leafs that reference topology identifier instance.";
32 typedef network-node-id-ref {
34 path "/tp:topology/tp:network-nodes/tp:network-node/tp:node-id";
36 description "This type is used for leafs that reference network node instance.";
41 path "/tp:topology/tp:network-links/tp:network-link/tp:link-id";
43 description "This type is used for leafs that reference network link instance.";
48 This is the model of abstract topology which contains only Network
49 Nodes and Network Links. Each topology MUST be identified by
50 unique topology-id for reason that the store could contain many
57 It is presumed that datastore will contain many topologies. To
58 distinguish between topologies it is vital to have UNIQUE
63 container network-nodes {
65 description "The list of network nodes defined for topology.";
71 description "The Topology identifier of network-node.";
74 container attributes {
76 Additional attributes that can Network Node contains.
82 container network-links {
85 The Network Link which is defined by Local (Source) and
86 Remote (Destination) Network Nodes. Every link MUST be
87 defined either by identifier and his local and remote
88 Network Nodes (in real applications it is common that many
89 links are originated from one node and end up in same
90 remote node). To ensure that we would always know to
91 distinguish between links, every link SHOULD have
104 description "Source node identifier.";
108 container destination {
111 description "Destination node identifier.";
115 container attributes {
116 description "Aditional attributes that can Network Link contains.";
122 //TODO: add base operations