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 upf { |
| 6 | namespace "http://opennetworking.org/aether/upf"; |
| 7 | prefix upf; |
| 8 | |
| 9 | import aether-types { prefix at; } |
| 10 | import ietf-inet-types { prefix inet; } |
| 11 | import enterprise{ prefix ent; } |
| 12 | import ietf-yang-types{ prefix yg; } |
| 13 | |
| 14 | organization "Open Networking Foundation."; |
| 15 | contact "Scott Baker"; |
| 16 | description "A Aether UPF List is a named User Plane Function."; |
| 17 | |
| 18 | revision "2021-06-02" { |
| 19 | description "An Aether User Plane Function"; |
| 20 | reference "RFC 6087"; |
| 21 | } |
| 22 | |
| 23 | typedef upf-id { |
| 24 | type yg:yang-identifier { |
| 25 | length 1..32; |
| 26 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 27 | description "The typedef for upf-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 display-name { |
| 58 | type string { |
| 59 | length 1..80; |
| 60 | } |
| 61 | description "display name to use in GUI or CLI"; |
| 62 | } |
| 63 | |
| 64 | leaf description { |
| 65 | type at:description; |
| 66 | description "description of this UPF"; |
| 67 | } |
| 68 | |
| 69 | // UPFs are always owned by an Enterprise, since they typically exist on the |
| 70 | // Enterprise's edge. TODO: Consider whether they should be owned by a Site |
| 71 | // instead of Enterprise. |
| 72 | leaf enterprise { |
| 73 | type leafref { |
| 74 | path "/ent:enterprise/ent:enterprise/ent:id"; |
| 75 | } |
| 76 | mandatory true; |
| 77 | description |
| 78 | "Link to enterprise that owns this Access Point List"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 79 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 80 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 81 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 82 | } |