From f8cb3f1f3631775f6c03ee6aa2c0b521721092ee Mon Sep 17 00:00:00 2001 From: Alex Stancu Date: Fri, 3 Mar 2023 13:18:51 +0200 Subject: [PATCH] Increase onap-system.yang revision. Issue-ID: SIM-106 Change-Id: Ife2803eca8a91234351433b3a9acc69a789b6edc Signed-off-by: Alex Stancu --- ntsimulator/deploy/base/yang/onap-system.yang | 44 +++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/ntsimulator/deploy/base/yang/onap-system.yang b/ntsimulator/deploy/base/yang/onap-system.yang index 3e19429..127b081 100644 --- a/ntsimulator/deploy/base/yang/onap-system.yang +++ b/ntsimulator/deploy/base/yang/onap-system.yang @@ -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."; + } + } } } -- 2.16.6