blob: 4d27f3179dec7ecf1f743294db124ee5905d2bc2 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
Sean Condon11d6f422022-01-14 13:02:03 +00005submodule onf-upf {
6 belongs-to onf-enterprise { prefix ent; }
Scott Bakerfdbad762022-01-03 16:00:45 -08007
8 import ietf-inet-types { prefix inet; }
9 import ietf-yang-types{ prefix yg; }
10 import onf-aether-types { prefix at; }
Scott Bakerfdbad762022-01-03 16:00:45 -080011
12 organization "Open Networking Foundation.";
13 contact "Scott Baker";
14 description "A Aether UPF List is a named User Plane Function.";
15
Sean Condon11d6f422022-01-14 13:02:03 +000016 revision "2022-01-14" {
17 description "Refactored as submodule";
18 reference "RFC 6020";
19 }
20
Scott Bakerfdbad762022-01-03 16:00:45 -080021 revision "2021-09-16" {
22 description "An Aether User Plane Function";
23 reference "RFC 6087";
24 }
25
26 typedef upf-id {
27 type yg:yang-identifier {
28 length 1..32;
29 }
30 description "The typedef for upf-id";
31 }
32
Sean Condon11d6f422022-01-14 13:02:03 +000033 grouping upf {
34 description "The upf grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080035
36 list upf {
Sean Condon11d6f422022-01-14 13:02:03 +000037 key "upf-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080038 description
39 "A list of named upfs.";
40
Sean Condon11d6f422022-01-14 13:02:03 +000041 leaf upf-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080042 type upf-id;
43 description "ID for this upf.";
44 }
45
46 leaf address {
47 type inet:host;
48 mandatory true;
49 description
50 "Address of UPF";
51 }
52
53 leaf port {
54 type inet:port-number;
55 mandatory true;
56 description
57 "Port for UPF";
58 }
59
60 leaf config-endpoint {
61 type inet:uri;
62 description "url for configuring the UPF";
63 }
64
65 leaf display-name {
66 type string {
67 length 1..80;
68 }
69 description "display name to use in GUI or CLI";
70 }
71
72 leaf description {
73 type at:description;
74 description "description of this UPF";
75 }
Scott Bakerfdbad762022-01-03 16:00:45 -080076 }
77 }
78}