blob: 29e10a170c40e62e1701a094579a7df13e328864 [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
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 type {
43 type string {
44 length 1..32;
45 }
46 description "type of profile";
47 }
48
49 leaf filter {
50 type string {
51 length 0..32;
52 }
53 description "filter";
54 }
55
56 leaf description {
57 type string {
58 length 1..100;
59 }
60 description "description of this profile";
61 }
62 }
63 }
64}