blob: 6a43bf4cf17ec534082748ddaea751cc1b61ca4b [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 up-profile {
6 namespace "http://opennetworking.org/aether/user-plane-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 user plane 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 up-profile-id {
24 type string {
25 length 1..32;
26 }
27 }
28
29 container up-profile {
30 description "The top level container";
31
32 list up-profile {
33 key "id";
34 description
35 "List of user plane profiles";
36
37 leaf id {
38 type up-profile-id;
39 description "ID for this user plane profile.";
40 }
41
42 leaf user-plane {
43 type string {
44 length 1..255;
45 }
46 description "user plane name";
47 }
48
49 leaf access-control {
50 type string {
51 length 1..32;
52 }
53 description "access control policy";
54 }
55
56 leaf description {
57 type string {
58 length 1..100;
59 }
60 description "description of this profile";
61 }
62 }
63 }
64}