blob: 9a38b02b7728a805a093aa864debac932a50fc90 [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-10-22" {
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 display-name {
43 type string {
44 length 1..80;
45 }
46 description "display name to use in GUI or CLI";
47 }
48
49 leaf user-plane {
50 type string {
51 length 1..255;
52 }
53 description "user plane name";
54 }
55
56 leaf access-control {
57 type string {
58 length 1..32;
59 }
60 description "access control policy";
61 }
62
63 leaf description {
64 type string {
65 length 1..100;
66 }
67 description "description of this profile";
68 }
69 }
70 }
71}