Clean up unused subprojects and configurations
[alto.git] / alto-core / standard-service-models / model-base / src / main / yang / service-model-base.yang
1 module alto-model-base {
2     yang-version 1;
3
4     namespace "urn:opendaylight:alto:service:model";
5
6     prefix "alto-model-base";
7
8     import "alto-basic-types" {
9         prefix "alto-types";
10     }
11
12     import "alto-resourcepool" {
13         prefix "alto-resourcepool";
14     }
15
16     import "yang-ext" {
17         prefix "yang-ext";
18     }
19
20     organization "Yale University";
21
22     contact "alto-dev@lists.opendaylight.org";
23
24
25     revision "2015-10-21" {
26         description "Initial revision of ALTO base service model";
27     }
28
29     grouping "alto-request-base" {
30         leaf "service-reference" {
31             yang-ext:context-reference "alto-resourcepool:service-context";
32
33             type "instance-identifier";
34         }
35
36         leaf "type" {
37             type "identityref" {
38                 base "alto-resourcepool:resource-type";
39             }
40         }
41
42         choice "request" {
43         }
44     }
45
46     grouping "alto-response-base" {
47         leaf "type" {
48             type "identityref" {
49                 base "alto-resourcepool:resource-type";
50             }
51         }
52
53         choice "response" {
54         }
55     }
56
57     identity "resource-type-error" {
58         base "alto-resourcepool:resource-type";
59         description
60             "The identity for ALTO error";
61     }
62
63     grouping "alto-response-error" {
64         uses "alto-response-base" {
65             augment "response" {
66                 case "error-response" {
67                     container "error" {
68                         leaf "error-code" {
69                             type "string";
70                         }
71
72                         //TODO
73                     }
74                 }
75             }
76         }
77     }
78
79     rpc query {
80         input {
81             uses "alto-request-base";
82         }
83
84         output {
85             uses "alto-response-error";
86         }
87     }
88 }