blob: 00413b1a70662b657d3812177321a62b7d734faf [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 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000024 description "The typedef for security-profile-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070025 }
26
27 container security-profile {
28 description "The top level container";
29
30 list security-profile {
31 key "id";
32 description
33 "List of security profiles";
34
35 leaf id {
36 type security-profile-id;
37 description "ID for this security profile.";
38 }
39
40 leaf display-name {
41 type string {
42 length 1..80;
43 }
44 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000045 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070046
47 leaf key {
48 type string {
49 length 1..32;
50 }
51 description "Secret key for USIM";
52 }
53
54 leaf opc {
55 type string {
56 length 1..32;
57 }
58 description "Secret key for Operator";
59 }
60
61 leaf sqn {
62 type uint32;
63 description "sequence number";
64 }
65
66 leaf description {
67 type string {
68 length 1..100;
69 }
70 description "description of this security profile";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000071 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070072 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000073 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070074}