Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 5 | submodule onf-upf { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-inet-types { prefix inet; } |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types { prefix at; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 11 | |
| 12 | organization "Open Networking Foundation."; |
| 13 | contact "Scott Baker"; |
| 14 | description "A Aether UPF List is a named User Plane Function."; |
| 15 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 16 | revision "2022-01-14" { |
| 17 | description "Refactored as submodule"; |
| 18 | reference "RFC 6020"; |
| 19 | } |
| 20 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 21 | 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 Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 33 | grouping upf { |
| 34 | description "The upf grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 35 | |
| 36 | list upf { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 37 | key "upf-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 38 | description |
| 39 | "A list of named upfs."; |
| 40 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 41 | leaf upf-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 42 | 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 Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 76 | } |
| 77 | } |
| 78 | } |