Bug fix.
[sim/o1-interface.git] / ntsimulator / yang / o-ran / ru-fh / o-ran-operations.yang
index 19cfdbc..0623202 100644 (file)
@@ -51,32 +51,43 @@ module o-ran-operations {
     contributors may be used to endorse or promote products derived from
     this software without specific prior written permission.";
 
-  revision "2019-04-08" {
+  revision "2019-07-03" {
     description
-      "version 1.0.2
+      "version 2.0.0
 
-      1) added ru-instance-id ";
+      1) added timezone-name
+      2) added ru-instance-id
+      3) backward compatible changes to introduce groupings.";
 
     reference "ORAN-WG4.M.0-v01.00";
   }
 
-  revision "2019-03-07" {
+  revision "2019-02-04" {
     description
-      "version 1.0.1
+      "version 1.0.0
 
-      1) backward compatible changes to introduce groupings.";
+      1) imported model from xRAN
+      2) changed namespace and reference from xran to o-ran";
 
     reference "ORAN-WG4.M.0-v01.00";
   }
 
-  revision "2019-02-04" {
+
+  typedef timezone-name {
+    type string;
     description
-      "version 1.0.0
+      "A time zone name as used by the Time Zone Database,
+      sometimes referred to as the 'Olson Database'.
 
-      1) imported model from xRAN
-      2) changed namespace and reference from xran to o-ran";
+      The complete set of valid values is defined in
+      https://www.iana.org/time-zones.
 
-    reference "ORAN-WG4.M.0-v01.00";
+      The exact set of supported values is an
+      implementation-specific matter.";
+
+    reference
+      "RFC 6557: Procedures for Maintaining the Time Zone Database
+      IANA Time Zone Database https://www.iana.org/time-zones ";
   }
 
   typedef version {
@@ -100,9 +111,14 @@ module o-ran-operations {
 
       leaf ru-instance-id {
         type string;
+       // [ast] added extra concat, because only 3 params are accepted in NTS
+       // must "re-match(current(), concat(/hw:hardware/hw:component/hw:mfg-name,
+        //  '_', /hw:hardware/hw:component/hw:model-name, '_',
+        //  /hw:hardware/hw:component/hw:serial-num ))";
         must "re-match(current(), concat(concat(/hw:hardware/hw:component/hw:mfg-name,
           '_', /hw:hardware/hw:component/hw:model-name), '_',
           /hw:hardware/hw:component/hw:serial-num))";
+       // [ast] end fix
         description
           "a unique instance identifier that may be used to identify a
           particular hardware instance, e.g., when used performing hierarchical
@@ -205,6 +221,19 @@ module o-ran-operations {
       description
         "System date and time properties used by all working groups.";
 
+      leaf timezone-name {
+        type timezone-name;
+        description
+          "An optional TZ database name to use for the system,
+           such as 'Europe/Stockholm'
+
+           Time zone name is an informative leaf and is NOT used in the
+           managed element to convert local time zone.
+
+           The managed element may include time zone name in measurement or
+           fault data.";
+      }
+
       leaf timezone-utc-offset {
         type int16 {
           range "-720 .. 840";