blob: 745b88e34d7a605c524f54c362f9d13dc5f3379d [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 "2021-05-10" {
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 imsi-range-from {
47 type uint64;
48 description "Starting IMSI in range to apply this security profile to";
49 }
50
51 leaf imsi-range-to {
52 type uint64;
53 description "Ending IMSI in range to apply this security profile to";
54 }
55
56 leaf key {
57 type string {
58 length 1..32;
59 }
60 description "Secret key for USIM";
61 }
62
63 leaf opc {
64 type string {
65 length 1..32;
66 }
67 description "Secret key for Operator";
68 }
69
70 leaf sqn {
71 type uint32;
72 description "sequence number";
73 }
74
75 leaf description {
76 type string {
77 length 1..100;
78 }
79 description "description of this security profile";
80 }
81 }
82 }
83}