Update namespaces according to RFC8515
[scp/oam/modeling.git] / data-model / yang / working / o-ran-sc / o-ran-du / o-ran-sc-du-alarms-v1.yang
index e19c245..53ac683 100644 (file)
@@ -1,76 +1,85 @@
 module o-ran-sc-du-alarms-v1 {
-    yang-version 1.1;
-    namespace "urn:o-ran-sc:du:alarms:1.0";
-    prefix osc-du-al;
+  yang-version 1.1;
+  namespace "urn:o-ran-sc:yang:o-ran-sc-du-alarms-v1";
+  prefix osc-du-al;
 
-    import ietf-alarms {
-        prefix al;
-    }
+  import ietf-alarms {
+    prefix al;
+  }
 
-    organization
-      "O-RAN Software Community";
-    contact
-      "www.o-ran-sc.org";
+  organization
+    "O-RAN Software Community";
+  contact
+    "www.o-ran-sc.org";
+  description
+    "This module defines the alarm identities for the O-RAN-SC Distributed Unit.
+
+     Copyright 2021 the O-RAN Software Community.
+
+     Licensed under the Apache License, Version 2.0 (the 'License');
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an 'AS IS' BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.";
+
+  revision 2021-03-09 {
+    description
+      "The namespace was updated according to O-RAN-SC yang guidelines.
+       The namespace must end with the full module name.";
+    reference
+      "https://jira.o-ran-sc.org/browse/OAM-168";
+  }
+  revision 2020-03-08 {
     description
-      "This module defines the alarm identities for the O-RAN-SC Distributed Unit.
-       
-       Copyright 2020 the O-RAN Software Community.
-       
-       Licensed under the Apache License, Version 2.0 (the 'License');
-       you may not use this file except in compliance with the License.
-       You may obtain a copy of the License at
-       
-        http://www.apache.org/licenses/LICENSE-2.0
-       
-       Unless required by applicable law or agreed to in writing, software
-       distributed under the License is distributed on an 'AS IS' BASIS,
-       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-       See the License for the specific language governing permissions and
-       limitations under the License.";
+      "initial revision";
+    reference
+      "O-RAN-OAM-Interface-Specification (O1)";
+  }
 
-    revision 2020-03-08 {
-        description
-          "initial revision";
-        reference
-          "O-RAN-OAM-Interface-Specification (O1)";
-    }
+  identity alarm-type-id {
+    base al:alarm-type-id;
+    description
+      "An abstract alarm type used for all O-RAN-SC specific alarm types for
+       Managed Function O-DU.";
+  }
 
-    identity alarm-type-id {
-        base al:alarm-type-id;
-        description
-          "An abstract alarm type used for all O-RAN-SC specific alarm types for
-           Managed Function O-DU.";
-    }
+  identity loss-of-timing-synchronization {
+    base alarm-type-id;
+    description
+      "O-DU loss of time synchronization.
+        Instructions:
+        1) Verify the configuration of time synchronization on the O-DU.
+        2) Verify the connectivity between the O-DU and the synchronization
+           source in terms of routing and firewall settings along the path.
+        3) Check if QoS requirements between O-DU and synchronization source
+           are met.";
+  }
 
-    identity loss-of-timing-synchronization {
-        base alarm-type-id;
-        description
-          "O-DU loss of time synchronization.
-            Instructions:
-            1) Verify the configuration of time synchronization on the O-DU.
-            2) Verify the connectivity between the O-DU and the synchronization
-               source in terms of routing and firewall settings along the path.
-            3) Check if QoS requirements between O-DU and synchronization source
-               are met.";
-    }
-    identity connection-loss-to-o-ru {
-        base alarm-type-id;
-        description
-          "O-DU loss of connection to O-RU.
-            Instructions:
-              1) Verify the configuration on O-DU and on O-RU.
-              2) Verify the connectivity between O-DU and O-RU in terms of 
-                 routing
-           and firewall settings along the path.";
-    }
-    identity o-du-low-configuration-loss-from-o-du-high {
-        base alarm-type-id;
-        description
-          "O-DU Low loss of configuration from O-DU High.
-           Instructions:
-             Create an JIRA issue and provide the following information:
-             - SMO version, build number or git hash
-             - O-DU version, build number or git hash
-             - A procedure to reproduce the alarm.";
-    }
-}
\ No newline at end of file
+  identity connection-loss-to-o-ru {
+    base alarm-type-id;
+    description
+      "O-DU loss of connection to O-RU.
+        Instructions:
+          1) Verify the configuration on O-DU and on O-RU.
+          2) Verify the connectivity between O-DU and O-RU in terms of
+             routing
+       and firewall settings along the path.";
+  }
+
+  identity o-du-low-configuration-loss-from-o-du-high {
+    base alarm-type-id;
+    description
+      "O-DU Low loss of configuration from O-DU High.
+       Instructions:
+         Create an JIRA issue and provide the following information:
+         - SMO version, build number or git hash
+         - O-DU version, build number or git hash
+         - A procedure to reproduce the alarm.";
+  }
+}