514053275ff15801057bf4bd96eacc288340e2dc
[alto.git] / alto-hosttracker / model / src / main / yang / alto-hosttracker-cost-service.yang
1 module alto-hosttracker-cost-service {
2     namespace "urn:opendaylight:alto:hosttracker";
3     prefix alto-host-track-cost;
4
5     import ietf-yang-types {prefix yang;}
6     import alto-service {prefix alto-restconf;}
7     import alto-service-types {prefix alto;}
8
9     revision 2015-04-16 {
10         description
11             "augment cost in alto-service-types";
12     }
13
14     grouping cost {
15         description "cost set in hosttracker";
16         leaf cost-value {
17             type int32;
18         }
19     }
20
21     augment "/alto-restconf:resources/alto-restconf:cost-maps/alto-restconf:cost-map/alto-restconf:map/alto-restconf:dst-costs" {
22         when "/alto-restconf:resources/alto-restconf:cost-maps/alto-restconf:cost-map/alto-restconf:meta/alto-restconf:cost-type/alto-restconf:cost-mode == 'numerical'";
23         leaf cost-in-hosttracker {
24             type int32;
25         }
26     }
27 }