blob: 0655c349fcb4092d47b07d46a527eff4c3c56e20 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
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 }
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";
45 }
46
47 leaf imsi-range-from {
48 type uint64;
49 description "Starting IMSI in range to apply this security profile to";
50 }
51
52 leaf imsi-range-to {
53 type uint64;
54 description "Ending IMSI in range to apply this security profile to";
55 }
56
57 leaf key {
58 type string {
59 length 1..32;
60 }
61 description "Secret key for USIM";
62 }
63
64 leaf opc {
65 type string {
66 length 1..32;
67 }
68 description "Secret key for Operator";
69 }
70
71 leaf sqn {
72 type uint32;
73 description "sequence number";
74 }
75
76 leaf description {
77 type string {
78 length 1..100;
79 }
80 description "description of this security profile";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000081 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070082 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000083 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070084}