Migrate to odlparent 2.0.0
[alto.git] / alto-core / standard-service-models / model-ird / api / src / main / yang / alto-model-ird.yang
1 module alto-model-ird {
2     yang-version 1;
3
4     namespace "urn:opendaylight:alto:service:model:ird";
5
6     prefix "alto-model-ird";
7
8     import "alto-basic-types" {
9         prefix "alto-types";
10     }
11
12     import "alto-resourcepool" {
13         prefix "alto-resourcpool";
14     }
15
16     import "alto-model-base" {
17         prefix "base";
18     }
19
20     import "ietf-inet-types" {
21         prefix "ietf-inet";
22     }
23
24     organization "Yale University";
25
26     contact "alto-dev@lists.opendaylight.org";
27
28     revision "2015-10-21" {
29         description "Initial revision of alto ird";
30     }
31
32     identity "resource-type-ird" {
33         base "alto-resourcepool:resource-type";
34         description
35             "The resource type for IRD";
36     }
37
38     grouping "alto-ird-request" {
39         container "ird-request" {
40         }
41     }
42
43     grouping "alto-ird-response" {
44         container "ird" {
45             container "meta" {
46             }
47
48             list "resource" {
49                 key "resource-id";
50
51                 leaf "resource-id" {
52                     type "alto-types:resource-id";
53                 }
54             }
55         }
56     }
57
58     augment "/base:query/base:input/base:request" {
59         case "ird-request-data" {
60             uses "alto-ird-request";
61         }
62     }
63
64     augment "/base:query/base:output/base:response" {
65         case "ird-response-data" {
66             uses "alto-ird-response";
67         }
68     }
69 }