Bug fix.
[sim/o1-interface.git] / ntsimulator / yang / o-ran / ru-fh / o-ran-laa.yang
1 module o-ran-laa {
2   yang-version 1.1;
3   namespace "urn:o-ran:laa:1.0";
4   prefix "o-ran-laa";
5
6   import o-ran-module-cap {
7     prefix "mcap";
8     revision-date 2019-07-03;
9   }
10
11   organization "O-RAN Alliance";
12
13   contact
14     "www.o-ran.org";
15
16   description
17     "This module defines the configuration for Carrier-selection and dynamic frequency selection (DFS).
18     Also this module defines operations for DFS measurement.
19
20     Copyright 2019 the O-RAN Alliance.
21
22     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
23     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32     POSSIBILITY OF SUCH DAMAGE.
33
34     Redistribution and use in source and binary forms, with or without
35     modification, are permitted provided that the following conditions are met:
36
37     * Redistributions of source code must retain the above copyright notice,
38     this list of conditions and the above disclaimer.
39     * Redistributions in binary form must reproduce the above copyright notice,
40     this list of conditions and the above disclaimer in the documentation
41     and/or other materials provided with the distribution.
42     * Neither the Members of the O-RAN Alliance nor the names of its
43     contributors may be used to endorse or promote products derived from
44     this software without specific prior written permission.";
45
46   revision "2019-07-03" {
47     description
48       "version 1.1.0
49
50       1) fixing broken constraints (configuration cannot be dependent on
51         operational state). This is a backwards incompatible revision.
52
53         As these constraints only apply when the LAA feature is used, and also
54         when considering the limited number of implementation that need to be
55         taken into consideration for backwards compatibility, it has been
56         agreed to NOT increment the namespace integer.";
57
58     reference "ORAN-WG4.M.0-v01.00";
59   }
60
61   revision "2019-02-04" {
62     description
63       "version 1.0.0
64
65       1) imported model from xRAN
66       2) changed namespace and reference from xran to o-ran";
67
68     reference "ORAN-WG4.M.0-v01.00";
69   }
70
71   grouping laa-configuration {
72     description
73       "Grouping for LAA configuration";
74
75     leaf number-of-laa-scarriers {
76       type uint8;
77       description "Number of LAA secondary carriers to be supported at O-RU.";
78     }
79
80     leaf multi-carrier-type {
81       type enumeration {
82         enum A1;
83         enum A2;
84         enum B1;
85         enum B2;
86       }
87       description
88         "This value indicates the list of multi carrier types which as per the document,
89         3GPP TS 36.213 V13.6.0 (2017-06) 15.1.5 Channel access procedure for transmission(s) on multiple carriers.";
90     }
91
92     leaf multi-carrier-tx {
93       type boolean;
94       description
95         "This value indicates whether self-deferral is activated or not.";
96     }
97
98     leaf multi-carrier-freeze {
99       when "../multi-carrier-type='A1'";
100       type boolean;
101       description "This value indicates if the absence of other technology in the unlicensed band can be guaranteed.";
102     }
103
104     leaf laa-ending-dwpts-supported {
105       type boolean;
106       description
107         "This value indicates whether LAA ending in DwPTS is supported.";
108     }
109
110     leaf laa-starting-in-second-slot-supported {
111       type boolean;
112       description
113         "This value indicates whether LAA starting in second slot is supported";
114     }
115   }
116
117   container laa-config {
118     must "number-of-laa-scarriers <= /mcap:module-capability/mcap:rw-sub-band-info/mcap:rw-number-of-laa-scarriers" {
119       error-message "number of laa secondary carriers must be less than supported number of laa scells.";
120     }
121     presence "indicates LAA configuration";
122     description "Container to specify all LAA specific configuration";
123
124     uses laa-configuration;
125   }
126 }