blob: 723758f2cff431e0220ea5c002d273144aa32238 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
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
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 up-profile-id {
24 type string {
25 length 1..32;
26 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000027 description "The typedef for up-profile-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070028 }
29
30 container up-profile {
31 description "The top level container";
32
33 list up-profile {
34 key "id";
35 description
36 "List of user plane profiles";
37
38 leaf id {
39 type up-profile-id;
40 description "ID for this user plane profile.";
41 }
42
43 leaf display-name {
44 type string {
45 length 1..80;
46 }
47 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000048 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070049
50 leaf user-plane {
51 type string {
52 length 1..255;
53 }
54 description "user plane name";
55 }
56
57 leaf access-control {
58 type string {
59 length 1..32;
60 }
61 description "access control policy";
62 }
63
64 leaf description {
65 type string {
66 length 1..100;
67 }
68 description "description of this profile";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000069 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070070 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000071 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070072}