blob: cad01fc32281a9eb900a6e8c6c05d336e39eb268 [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 access-profile {
6 namespace "http://opennetworking.org/aether/access-profile";
7 prefix pro;
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-08-18" {
16 description "An Aether access Profile";
17 reference "RFC 6087";
18 }
19
20 // TODO: Think more on whether this should be a UUID or
PUSHP RAJba2e32f2021-11-02 10:39:24 +000021 // simply a unique name. If it's a UUID, could fix the
Scott Bakerc9d3d842021-09-17 11:32:53 -070022 // string length.
23 typedef access-profile-id {
24 type string {
25 length 1..32;
26 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000027 description "The typedef for access-profile-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070028 }
29
30 container access-profile {
31 description "The top level container";
32
33 list access-profile {
34 key "id";
35 description
36 "List of access profiles";
37
38 leaf id {
39 type access-profile-id;
40 description "ID for this access profile.";
41 }
42
43 leaf type {
44 type string {
45 length 1..32;
46 }
47 description "type of profile";
48 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000049
Scott Bakerc9d3d842021-09-17 11:32:53 -070050 leaf filter {
51 type string {
52 length 0..32;
53 }
54 description "filter";
55 }
56
57 leaf description {
58 type string {
59 length 1..100;
60 }
61 description "description of this profile";
62 }
63 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000064 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070065}