Update YANG models for OpenFronthaul M-Plane.
[sim/o1-interface.git] / ntsimulator / deploy / o-ran-ru-fh / yang / o-ran-certificates.yang
@@ -1,8 +1,13 @@
-module o-ran-wg4-features {
+module o-ran-certificates {
   yang-version 1.1;
-  namespace "urn:o-ran:wg4feat:1.0";
-  prefix "o-ran-feat";
+  namespace "urn:o-ran:certificates:1.0";
+  prefix "o-ran-cert";
 
+  import ietf-x509-cert-to-name {
+    prefix x509c2n;
+    reference
+      "RFC 7407: A YANG Data Model for SNMP Configuration";
+     }
 
   organization "O-RAN Alliance";
 
@@ -10,10 +15,9 @@ module o-ran-wg4-features {
     "www.o-ran.org";
 
   description
-    "This module defines the a set of re-usable type definitions for WG4 specific
-    features.
+    "This module defines the certificates model for the O-RAN Equipment authorization.
 
-    Copyright 2020 the O-RAN Alliance.
+    Copyright 2022 the O-RAN Alliance.
 
     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -39,19 +43,41 @@ module o-ran-wg4-features {
     contributors may be used to endorse or promote products derived from
     this software without specific prior written permission.";
 
-  revision "2020-12-10" {
+  revision "2022-08-15" {
     description
-      "version 5.0.0
+      "version 10.0.0
 
-      1) initial version.";
+      1) initial version";
 
-    reference "ORAN-WG4.M.0-v05.00";
+    reference "ORAN-WG4.M.0-v10.00";
   }
 
-  feature NON-PERSISTENT-MPLANE {
+  grouping cert-maps {
+    uses x509c2n:cert-to-name;
     description
-      "Indicates that the Radio Unit supports the optional
-      capability to improve the operation with a SMO using a non-
-      persistent NETCONF session.";
+      "The cert-maps container is used by a TLS-
+       based NETCONF server to map the NETCONF
+       client's presented X.509 certificate to
+       a NETCONF username.  If no matching and
+       valid cert-to-name list entry can be found,
+       then the NETCONF server MUST close the
+       connection, and MUST NOT accept NETCONF
+       messages over it.
+       Note - when included, the /cert-to-name/name refers to the schema node
+       users/user/name in o-ran-usermgmt.yang";
+    reference
+      "RFC 7407: NETCONF over TLS, Section 7";
+  }
+
+  container certificate-parameters {
+    description
+      "Top Level Container for all certificate related parameters";
+
+    container cert-maps {
+      description
+        "Container for certificate maps";
+
+      uses cert-maps;
+    }
   }
 }