Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: Apache-2.0 |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 4 | |
| 5 | module 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 24 | description "The typedef for security-profile-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 25 | } |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 81 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 82 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 83 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 84 | } |