Bump versions by x.y.(z+1)
[topoprocessing.git] / topoprocessing-api / src / main / yang / topology-link-computation.yang
1 /*
2  * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 module topology-link-computation {
10
11     namespace "urn:opendaylight:topology:link:computation";
12     prefix "link-comp";
13
14     import network-topology {prefix topo; revision-date "2013-10-21";}
15     import ietf-inet-types {prefix inet;}
16     import yang-ext {prefix ext; revision-date "2013-07-09";}
17     import topology-correlation {prefix topo-corr; revision-date "2015-01-21";}
18     import ietf-network {prefix i2rs; revision-date "2015-06-08";}
19
20     revision "2015-08-24" {
21         description "Topology Processing Framework - Link-computation module request definition";
22     }
23
24     augment "/topo:network-topology/topo:topology" {
25         ext:augment-identifier "link-computation-augment";
26         uses link-computation-grouping;
27     }
28
29     augment "/i2rs:network" {
30         ext:augment-identifier "i2rs-link-computation-augment";
31         uses link-computation-grouping;
32     }
33
34     grouping link-computation-grouping {
35         container link-computation {
36             presence "Configuration for link computation";
37             leaf output-model {
38                 type identityref {
39                     base topo-corr:model;
40                 }
41                 description "Desired output model for computed links.";
42             }
43             container node-info {
44                 leaf node-topology {
45                     type string;
46                     mandatory true;
47                     description "Topology that contains aggregated nodes.
48                                  This topology will be used for storing computed links.";
49                 }
50                 uses topo-corr:input-model-grouping;
51             }
52             list link-info {
53                 key "link-topology input-model";
54                 leaf link-topology {
55                     type string;
56                     mandatory true;
57                     description "Topology that contains underlay (base) links.";
58                 }
59                 leaf aggregated-links {
60                     type boolean;
61                     description "Defines if link computation should be based on supporting-links.";
62                 }
63                 uses topo-corr:input-model-grouping;
64             }
65         }
66     }
67 }