1 module org-openroadm-security {
3 namespace "http://org/openroadm/security";
4 prefix org-openroadm-security;
6 import org-openroadm-device {
7 prefix org-openroadm-device;
8 revision-date 2020-05-29;
10 import org-openroadm-common-types {
11 prefix org-openroadm-common-types;
12 revision-date 2020-05-29;
20 "This model defines the Yang model for openroadm security.
22 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
23 All other rights reserved.
25 Redistribution and use in source and binary forms, with or without modification,
26 are permitted provided that the following conditions are met:
28 * Redistributions of source code must retain the above copyright notice, this
29 list of conditions and the following disclaimer.
30 * Redistributions in binary form must reproduce the above copyright notice,
31 this list of conditions and the following disclaimer in the documentation and/or
32 other materials provided with the distribution.
33 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
34 contributors may be used to endorse or promote products derived from this software
35 without specific prior written permission.
37 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
38 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
41 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
43 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 POSSIBILITY OF SUCH DAMAGE.";
73 typedef certificate-id-type {
76 pattern '(([a-zA-Z]([a-zA-Z0-9_.-]*)([a-zA-Z0-9])))' {
78 "The certificate id must start with a letter and
79 end with a letter or digit. Interior characters are only
80 alphabets, digits, minus, underscore and dot.";
84 "The certificate id must starts with a letter and
85 end with a letter or digit. Interior characters are only
86 alphabets, digits, minus, underscore and dot.";
89 grouping security-container {
91 "Grouping for standalone security certificates";
94 "Security related Configurations";
99 "A list of certificates for this system";
102 "Install certificate.";
107 "Name of the certificate file to be installed.";
111 uses org-openroadm-common-types:rpc-response-status;
114 leaf certificate-id {
115 type certificate-id-type;
117 "Certificate identifier";
123 "Information about the certificate
124 (subject line in the certificate).";
127 list ca-certificate {
128 key "ca-certificate-id";
131 "A list of CA certificates for this system";
134 "Install certificate.";
139 "Name of the CA certificate file to be installed.";
143 uses org-openroadm-common-types:rpc-response-status;
146 leaf ca-certificate-id {
147 type certificate-id-type;
149 "CA certificate identifier";
155 "Information about the CA certificate
156 (subject line in the certificate).";
162 augment "/org-openroadm-device:org-openroadm-device" {
164 "Augment for security container under device";
165 uses security-container;