blob: a8a30693a490cfd7f725396f3c6bd0e3263cd4e7 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5module security-profile {
6 namespace "http://opennetworking.org/aether/security-profile";
7 prefix sec;
8
9 organization "Open Networking Foundation.";
10 contact "Scott Baker";
11 description "To generate JSON from this use command
12 pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
13 Copied from YangUIComponents project";
14
15 revision "2020-11-30" {
16 description "An Aether Security Profile. Contains keys and other security items associated with devices. Configured by the operator.";
17 reference "RFC 6087";
18 }
19
20 typedef security-profile-id {
21 type string {
22 length 1..32;
23 }
24 }
25
26 container security-profile {
27 description "The top level container";
28
29 list security-profile {
30 key "id";
31 description
32 "List of security profiles";
33
34 leaf id {
35 type security-profile-id;
36 description "ID for this security profile.";
37 }
38
39 leaf display-name {
40 type string {
41 length 1..80;
42 }
43 description "display name to use in GUI or CLI";
44 }
45
46 leaf key {
47 type string {
48 length 1..32;
49 }
50 description "Secret key for USIM";
51 }
52
53 leaf opc {
54 type string {
55 length 1..32;
56 }
57 description "Secret key for Operator";
58 }
59
60 leaf sqn {
61 type uint32;
62 description "sequence number";
63 }
64
65 leaf description {
66 type string {
67 length 1..100;
68 }
69 description "description of this security profile";
70 }
71 }
72 }
73}