Support of WG4 OpenFronthaul Management-Plane VES
[scp/oam/modeling.git] / data-model / yang / published / o-ran / ru-fh / o-ran-certificates@2022-08-15.yang
1 module o-ran-certificates {
2   yang-version 1.1;
3   namespace "urn:o-ran:certificates:1.0";
4   prefix "o-ran-cert";
5
6   import ietf-x509-cert-to-name {
7     prefix x509c2n;
8     reference
9       "RFC 7407: A YANG Data Model for SNMP Configuration";
10      }
11
12   organization "O-RAN Alliance";
13
14   contact
15     "www.o-ran.org";
16
17   description
18     "This module defines the certificates model for the O-RAN Equipment authorization.
19
20     Copyright 2022 the O-RAN Alliance.
21
22     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
23     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32     POSSIBILITY OF SUCH DAMAGE.
33
34     Redistribution and use in source and binary forms, with or without
35     modification, are permitted provided that the following conditions are met:
36
37     * Redistributions of source code must retain the above copyright notice,
38     this list of conditions and the above disclaimer.
39     * Redistributions in binary form must reproduce the above copyright notice,
40     this list of conditions and the above disclaimer in the documentation
41     and/or other materials provided with the distribution.
42     * Neither the Members of the O-RAN Alliance nor the names of its
43     contributors may be used to endorse or promote products derived from
44     this software without specific prior written permission.";
45
46   revision "2022-08-15" {
47     description
48       "version 10.0.0
49
50       1) initial version";
51
52     reference "ORAN-WG4.M.0-v10.00";
53   }
54
55   grouping cert-maps {
56     uses x509c2n:cert-to-name;
57     description
58       "The cert-maps container is used by a TLS-
59        based NETCONF server to map the NETCONF
60        client's presented X.509 certificate to
61        a NETCONF username.  If no matching and
62        valid cert-to-name list entry can be found,
63        then the NETCONF server MUST close the
64        connection, and MUST NOT accept NETCONF
65        messages over it.
66        Note - when included, the /cert-to-name/name refers to the schema node
67        users/user/name in o-ran-usermgmt.yang";
68     reference
69       "RFC 7407: NETCONF over TLS, Section 7";
70   }
71
72   container certificate-parameters {
73     description
74       "Top Level Container for all certificate related parameters";
75
76     container cert-maps {
77       description
78         "Container for certificate maps";
79
80       uses cert-maps;
81     }
82   }
83 }