Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 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 "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 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"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 45 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 46 | |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 71 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 72 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 73 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 74 | } |