Increase onap-system.yang revision. 49/10649/1
authorAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Fri, 3 Mar 2023 11:18:51 +0000 (13:18 +0200)
committerAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Fri, 3 Mar 2023 11:19:21 +0000 (13:19 +0200)
Issue-ID: SIM-106
Change-Id: Ife2803eca8a91234351433b3a9acc69a789b6edc
Signed-off-by: Alex Stancu <alexandru.stancu@highstreet-technologies.com>
ntsimulator/deploy/base/yang/onap-system.yang

index 3e19429..127b081 100644 (file)
@@ -35,6 +35,13 @@ module onap-system {
      See the License for the specific language governing permissions and
      limitations under the License.";
 
+  revision 2022-11-04 {
+    description
+      "Geographical location added to 'system'.";
+    reference
+      "Project specific";
+  }
+
   revision 2020-10-26 {
     description
       "Initial revision for the ietf-system augmentation for ONAP.";
@@ -42,7 +49,18 @@ module onap-system {
       "https://jira.onap.org/browse/SDNC-1396";
   }
 
+  typedef geographic-coordinate-degree {
+    type decimal64 {
+      fraction-digits 8;
+    }
+    description
+      "Decimal degree (DD) used to express latitude and longitude
+       geographic coordinates.";
+  }
+
   augment "/sys:system" {
+    description
+      "Enhancing the system information.";
     leaf name {
       type string;
       description
@@ -53,7 +71,29 @@ module onap-system {
       description
         "The URI of the system Web UI.";
     }
-    description
-      "Enhancing the system information.";
+    container geographical-location {
+      description
+        "Containes information about geo location";
+      leaf altitude {
+        type int64;
+        units "millimeter";
+        description
+          "Distance above the sea level.";
+      }
+      leaf latitude {
+        type geographic-coordinate-degree {
+          range "-90..90";
+        }
+        description
+          "Relative position north or south on the Earth's surface.";
+      }
+      leaf longitude {
+        type geographic-coordinate-degree {
+          range "-180..180";
+        }
+        description
+          "Angular distance east or west on the Earth's surface.";
+      }
+    }
   }
 }