CI: Update RTD configuration file
[sim/o1-interface.git] / ntsimulator / deploy / base / yang / onap-system.yang
1 module onap-system {
2   yang-version 1.1;
3   namespace "urn:onap:system";
4   prefix os;
5
6   import ietf-inet-types {
7     prefix inet;
8   }
9   import ietf-system {
10     prefix sys;
11   }
12
13   organization
14     "ONAP - Open Network Automation Platform";
15   contact
16     "Web: <https://www.onap.org>
17      Editors:
18         Alex Stancu <mailto:alexandru.stancu@highstreet-technologies.com>
19         Adrian Lita <mailto:adrian.lita@highstreet-technologies.com>
20         Martin Skorupski <mailto:martin.skorupski@highstreet-technologies.com>";
21   description
22     "This module augments ietf-system with ONAP details.
23
24      Copyright 2020 the O-RAN Alliance.
25
26      Licensed under the Apache License, Version 2.0 (the 'License');
27      you may not use this file except in compliance with the License.
28      You may obtain a copy of the License at
29
30      http://www.apache.org/licenses/LICENSE-2.0
31
32      Unless required by applicable law or agreed to in writing, software
33      distributed under the License is distributed on an 'AS IS' BASIS,
34      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35      See the License for the specific language governing permissions and
36      limitations under the License.";
37
38   revision 2022-11-04 {
39     description
40       "Geographical location added to 'system'.";
41     reference
42       "Project specific";
43   }
44
45   revision 2020-10-26 {
46     description
47       "Initial revision for the ietf-system augmentation for ONAP.";
48     reference
49       "https://jira.onap.org/browse/SDNC-1396";
50   }
51
52   typedef geographic-coordinate-degree {
53     type decimal64 {
54       fraction-digits 8;
55     }
56     description
57       "Decimal degree (DD) used to express latitude and longitude
58        geographic coordinates.";
59   }
60
61   augment "/sys:system" {
62     description
63       "Enhancing the system information.";
64     leaf name {
65       type string;
66       description
67         "The name of the system.";
68     }
69     leaf web-ui {
70       type inet:uri;
71       description
72         "The URI of the system Web UI.";
73     }
74     container geographical-location {
75       description
76         "Containes information about geo location";
77       leaf altitude {
78         type int64;
79         units "millimeter";
80         description
81           "Distance above the sea level.";
82       }
83       leaf latitude {
84         type geographic-coordinate-degree {
85           range "-90..90";
86         }
87         description
88           "Relative position north or south on the Earth's surface.";
89       }
90       leaf longitude {
91         type geographic-coordinate-degree {
92           range "-180..180";
93         }
94         description
95           "Angular distance east or west on the Earth's surface.";
96       }
97     }
98   }
99 }