Include ieft-hardware 80/9080/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 24 Sep 2022 15:17:01 +0000 (17:17 +0200)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 24 Sep 2022 15:17:07 +0000 (17:17 +0200)
- add 3GPP specific hardware modelling in a separate
  yang model and augment bases.

IssueID: OAM-301
Change-Id: I40f0d14603aa81419565d0504c37ac54d3b88a74
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
data-model/yang/working/o-ran-sc/template/yes-o1-notify-pnf-registration-3gpp-hardware.yang [new file with mode: 0644]

diff --git a/data-model/yang/working/o-ran-sc/template/yes-o1-notify-pnf-registration-3gpp-hardware.yang b/data-model/yang/working/o-ran-sc/template/yes-o1-notify-pnf-registration-3gpp-hardware.yang
new file mode 100644 (file)
index 0000000..38de75b
--- /dev/null
@@ -0,0 +1,155 @@
+module yes-o1-notify-pnf-registration-3gpp-hardware {
+  yang-version 1.1;
+  namespace "urn:o-ran-sc:params:xml:ns:yang:yes-o1-notify-pnf-registration-3gpp-hardware";
+  prefix ypr3;
+
+  import yang-based-event-stream {
+    prefix yes;
+    reference
+      "wiki.opnfv.org/display/ves/VES+goes+YES";
+  }
+  import yes-o1-notify-pnf-registration {
+    prefix ypr;
+  }
+  import ietf-yang-types {
+    prefix yang;
+    reference
+      "RFC 6991: Common YANG Data Types.";
+  }
+
+  organization
+    "O-RAN Software Community";
+  contact
+    "www.o-ran-sc.org";
+  description
+    "The module extends yes-o1-notify-pnf-registration with hardware information
+     and parameters according to 3GPP:
+
+     Copyright 2022 highstreet technologies GmbH and others.
+
+     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 2022-09-12 {
+    description
+      "Initial version";
+    reference
+      "O-RAN Operations and Maintenance Interface Specification (O-RAN.WG10.O1-Interface.0-v07.00)
+             section 2.7.2.4 Operations and Notifications
+       RFC 8348: A YANG Data Model for Hardware Management";
+  }
+
+  /*
+   * Groupings
+   */
+  grouping hardware-grp {
+    leaf serial-number {
+      type string {
+        length "3..255";
+      }
+      // mandatory true;
+      description
+        "The serial number of the network function.";
+      reference
+        "3GPP TS 28.632 serialNumber";
+    }
+
+    leaf mac-address {
+      type yang:mac-address;
+      description
+        "The MAC address of OAM interface of the network function.";
+    }
+
+    leaf model-number {
+      type string {
+        length "1..255";
+      }
+      description
+        "Version of the network function from the vendor.";
+      reference
+        "3GPP TS 28.632 versionNumber";
+    }
+
+    leaf software-version {
+      type string {
+        length "1..255";
+      }
+      description
+        "The active software version running on the network function.";
+      reference
+        "3GPP TS 28.632 swName";
+    }
+
+    leaf manufacture-date {
+      type yang:date-and-time;
+      description
+        "Manufacture date of the network function.";
+    }
+
+    leaf last-service-date {
+      type yang:date-and-time;
+      description
+        "Date when the field operation staff way on-side.";
+    }
+    description
+      "An object class containing o1-notify-pnf-registration specific parameters
+       according to 3GPP and its hardware model.";
+  }
+
+  /*
+   * Augmentation of o1-notify-pnf-registration
+   */
+
+  // vendorName M /hw:hardware/hw:component/hw:mfg-name
+  augment "/yes:event-history/yes:event/ypr:o1-notify-pnf-registration/ypr:vendor" {
+    case name {
+      leaf vendor-name {
+        type string;
+        description
+          "Network function vendor name according to IANA Private Enterprise Numbers";
+      }
+    }
+    description
+      "Exposing the vendor-name as defined by 3GPP:";
+    reference
+      "3GPP TS 28.632 vendorName";
+  }
+
+  augment "/yes:yang-based-event-stream/yes:event/ypr:o1-notify-pnf-registration/ypr:vendor" {
+    case name {
+      leaf vendor-name {
+        type string;
+        description
+          "Network function vendor name according to IANA Private Enterprise Numbers";
+      }
+    }
+    description
+      "Exposing the vendor-name as defined by 3GPP:";
+    reference
+      "3GPP TS 28.632 vendorName";
+  }
+
+  augment "/yes:event-history/yes:event/ypr:o1-notify-pnf-registration" {
+    if-feature "yes:event-history";
+    uses hardware-grp;
+    description
+      "Adds to o1-notify-pnf-registration container within the historic data
+       the hardware information and parameters according to 3GPP.";
+  }
+
+  augment "/yes:yang-based-event-stream/yes:event/ypr:o1-notify-pnf-registration" {
+    uses hardware-grp;
+    description
+      "Adds to o1-notify-pnf-registration container within the notification
+       syntax the hardware information and parameters according to 3GPP.";
+  }
+}