blob: 72a7ec980ad8ccad7c2611d49586cbaa622895a2 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerfdbad762022-01-03 16:00:45 -08004
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
Sean Condon9f7966e2022-02-03 10:55:06 +000046 uses at:desc-display-name;
47
Scott Bakerfdbad762022-01-03 16:00:45 -080048 leaf address {
49 type inet:host;
50 mandatory true;
51 description
52 "Address of UPF";
53 }
54
55 leaf port {
56 type inet:port-number;
57 mandatory true;
58 description
59 "Port for UPF";
60 }
61
62 leaf config-endpoint {
63 type inet:uri;
64 description "url for configuring the UPF";
65 }
Scott Bakerfdbad762022-01-03 16:00:45 -080066 }
67 }
68}