Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | module onf-upf { |
| 6 | namespace "http://opennetworking.org/aether/upf"; |
| 7 | prefix upf; |
| 8 | |
| 9 | import ietf-inet-types { prefix inet; } |
Scott Baker | cd27641 | 2021-10-13 14:31:24 -0700 | [diff] [blame] | 10 | import ietf-yang-types{ prefix yg; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 11 | import onf-aether-types { prefix at; } |
| 12 | import onf-enterprise{ prefix ent; } |
Scott Baker | cd27641 | 2021-10-13 14:31:24 -0700 | [diff] [blame] | 13 | import onf-site{ prefix st; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 14 | |
| 15 | organization "Open Networking Foundation."; |
| 16 | contact "Scott Baker"; |
| 17 | description "A Aether UPF List is a named User Plane Function."; |
| 18 | |
| 19 | revision "2021-09-16" { |
| 20 | description "An Aether User Plane Function"; |
| 21 | reference "RFC 6087"; |
| 22 | } |
| 23 | |
| 24 | typedef upf-id { |
| 25 | type yg:yang-identifier { |
| 26 | length 1..32; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | container upf { |
| 31 | description "The top level container"; |
| 32 | |
| 33 | list upf { |
| 34 | key "id"; |
| 35 | description |
| 36 | "A list of named upfs."; |
| 37 | |
| 38 | leaf id { |
| 39 | type upf-id; |
| 40 | description "ID for this upf."; |
| 41 | } |
| 42 | |
| 43 | leaf address { |
| 44 | type inet:host; |
| 45 | mandatory true; |
| 46 | description |
| 47 | "Address of UPF"; |
| 48 | } |
| 49 | |
| 50 | leaf port { |
| 51 | type inet:port-number; |
| 52 | mandatory true; |
| 53 | description |
| 54 | "Port for UPF"; |
| 55 | } |
| 56 | |
| 57 | leaf config-endpoint { |
| 58 | type inet:uri; |
| 59 | description "url for configuring the UPF"; |
| 60 | } |
| 61 | |
| 62 | leaf display-name { |
| 63 | type string { |
| 64 | length 1..80; |
| 65 | } |
| 66 | description "display name to use in GUI or CLI"; |
| 67 | } |
| 68 | |
| 69 | leaf description { |
| 70 | type at:description; |
| 71 | description "description of this UPF"; |
| 72 | } |
| 73 | |
| 74 | // UPFs are always owned by an Enterprise, since they typically exist on the |
Scott Baker | cd27641 | 2021-10-13 14:31:24 -0700 | [diff] [blame] | 75 | // Enterprise's edge. |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 76 | leaf enterprise { |
| 77 | type leafref { |
| 78 | path "/ent:enterprise/ent:enterprise/ent:id"; |
| 79 | } |
| 80 | mandatory true; |
| 81 | description |
| 82 | "Link to enterprise that owns this Access Point List"; |
Scott Baker | cd27641 | 2021-10-13 14:31:24 -0700 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | // UPFs always reside at a site, as the exist on physical infrastructure. GUI |
| 86 | // will ensure that the tuple (DG, VCS, UPF) all exist on the same site. |
| 87 | leaf site { |
| 88 | type leafref { |
| 89 | path "/st:site/st:site/st:id"; |
| 90 | } |
| 91 | mandatory true; |
| 92 | description |
| 93 | "Link to site"; |
| 94 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 95 | } |
Scott Baker | cd27641 | 2021-10-13 14:31:24 -0700 | [diff] [blame] | 96 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 97 | } |