ffd81c49f5c76ece3da37407ef359e56d3a626da
[scp/oam/modeling.git] / data-model / yang / working / o-ran-sc / template / o-ran-sc-TEMPLATE-v1.yang
1 module o-ran-sc-TEMPLATE-v1 {
2   yang-version 1.1;
3   namespace "urn:o-ran:sc:TEMPLATE:1.0";
4   prefix template;
5
6   import o-ran-sc-root-v1 {
7     prefix root;
8   }
9   import o-ran-sc-types-v1 {
10     prefix ot;
11   }
12
13   organization
14     "O-RAN Software Community";
15   contact
16     "www.o-ran.org";
17   description
18     "This module shows how to add component specific artifacts to
19      a common root module -> TEMPLATE.
20
21      Copyright 2020 the O-RAN Alliance.
22
23      Licensed under the Apache License, Version 2.0 (the 'License');
24      you may not use this file except in compliance with the License.
25      You may obtain a copy of the License at
26
27      http://www.apache.org/licenses/LICENSE-2.0
28
29      Unless required by applicable law or agreed to in writing, software
30      distributed under the License is distributed on an 'AS IS' BASIS,
31      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32      See the License for the specific language governing permissions and
33      limitations under the License.";
34
35   revision 2020-02-20 {
36     description
37       "initial revision";
38     reference
39       "O-RAN-OAM-Interface-Specification (O1)";
40   }
41
42   // identity
43
44   identity template {
45     base ot:control-function-type;
46     description
47       "TODO: Nice description";
48   }
49
50   // grouping
51
52   grouping template-specific-grp {
53     description
54       "TODO: add your specific leafs, lists, containers here.";
55   }
56
57   // Inherit from controlled-function
58   augment "/root:controlled-element/root:controlled-function" {
59     when "derived-from-or-self(./root:function-type, 'template:template')";
60     uses template-specific-grp;
61     description
62       "TODO: Nice description";
63   }
64 }