blob: d58a674c6fd7fd72c12038d19328d7604ad55603 [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-10-22" {
16 description "An Aether access Profile";
17 reference "RFC 6087";
18 }
19
20 // TODO: Think more on whether this should be a UUID or
21 // simply a unique name. If it's a UUID, could fix the
22 // string length.
23 typedef access-profile-id {
24 type string {
25 length 1..32;
26 }
27 }
28
29 container access-profile {
30 description "The top level container";
31
32 list access-profile {
33 key "id";
34 description
35 "List of access profiles";
36
37 leaf id {
38 type access-profile-id;
39 description "ID for this access profile.";
40 }
41
42 leaf display-name {
43 type string {
44 length 1..80;
45 }
46 description "display name to use in GUI or CLI";
47 }
48
49 leaf type {
50 type string {
51 length 1..32;
52 }
53 description "type of profile";
54 }
55
56 leaf filter {
57 type string {
58 length 0..32;
59 }
60 description "filter";
61 }
62
63 leaf description {
64 type string {
65 length 1..100;
66 }
67 description "description of this profile";
68 }
69 }
70 }
71}