1 module org-openroadm-key-chain {
2 namespace "http://org/openroadm/key-chain";
3 prefix org-openroadm-key-chain;
5 import ietf-yang-types {
7 revision-date 2013-07-15;
15 "This model defines the Yang model for key chain.
17 This model reuses data items defined in the IETF YANG model for
18 key-chain as described by RFC 8177.
20 Some attributes which are not required in Open ROADM MSA are removed.
21 Yang file included are changed to fit into Open ROADM MSA yang structure.
23 IETF code is subject to the following copyright and license:
24 Copyright (c) IETF Trust and the persons identified as authors of
28 Redistribution and use in source and binary forms, with or without
29 modification, is permitted pursuant to, and subject to the license
30 terms contained in, the Simplified BSD License set forth in
31 Section 4.c of the IETF Trust's Legal Provisions Relating
32 to IETF Documents (http://trustee.ietf.org/license-info).";
47 feature hex-key-string {
49 "Support hexadecimal key string.";
52 feature independent-send-accept-lifetime {
54 "Support for independent send and accept key lifetimes.";
57 feature crypto-hmac-sha-1-12 {
59 "Support for TCP HMAC-SHA-1 12 byte digest hack.";
62 typedef key-chain-ref {
64 path "/org-openroadm-key-chain:key-chains/key-chain-list/org-openroadm-key-chain:name";
67 "This type is used by data models that need to reference
68 configured key-chains.";
73 "Key lifetime specification.";
77 "Options for specifying key accept or send lifetimes";
82 "Indicates key lifetime is always valid.";
86 leaf start-date-time {
87 type yang:date-and-time;
99 "Indicates key lifetime end-time in infinite.";
105 range "1..2147483646";
109 "Key lifetime duration, in seconds";
114 type yang:date-and-time;
124 grouping crypto-algorithm-types {
126 "Cryptographic algorithm types.";
129 "Options for crytographic algorithm specification.";
134 "The MD5 algorithm.";
142 "key-chain specification grouping.";
146 "Name of the key-chain.";
148 list key-chain-entry {
155 error-message "Configured value is out of range";
161 container key-string {
164 choice key-string-style {
171 error-message "Configured string exceeds the maximum length";
175 "Key string in ASCII format.";
179 if-feature "hex-key-string";
183 container crypto-algorithm {
185 "Cryptographic algorithm associated with key.";
186 uses crypto-algorithm-types;
191 container key-chains {
193 "All configured key-chains for the device.";
194 list key-chain-list {
197 "List of key-chains.";
201 container key-chains-state {
204 "All configured key-chains state.";
205 list key-chain-list-state {
207 "One key-chain state.";
211 "Configured name of the key-chain.";
213 list key-chain-entry {
222 container crypto-algorithm-state {
224 "Configured cryptographic algorithm.";
225 uses crypto-algorithm-types;