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-template { |
| 6 | namespace "http://opennetworking.org/aether/template"; |
| 7 | prefix tp; |
| 8 | |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types{ prefix at; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 11 | |
| 12 | organization "Open Networking Foundation."; |
| 13 | contact "Scott Baker"; |
| 14 | description |
| 15 | "The aether vcs-template holds common parameters used |
| 16 | by a virtual connectivity service. Templates are used to |
| 17 | populate a VCS."; |
| 18 | |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 19 | revision "2021-09-10" { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 20 | description "An Aether Virtual Cellular Service Template"; |
| 21 | reference "RFC 6087"; |
| 22 | } |
| 23 | |
| 24 | typedef template-id { |
| 25 | type yg:yang-identifier { |
| 26 | length 1..32; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | container template { |
| 31 | description "The top level container"; |
| 32 | |
| 33 | list template { |
| 34 | key "id"; |
| 35 | description |
| 36 | "List of vcs templates"; |
| 37 | |
| 38 | leaf id { |
| 39 | type template-id; |
| 40 | description "ID for this vcs template."; |
| 41 | } |
| 42 | |
| 43 | leaf display-name { |
| 44 | type string { |
| 45 | length 1..80; |
| 46 | } |
| 47 | description "display name to use in GUI or CLI"; |
| 48 | } |
| 49 | |
| 50 | leaf sst { |
| 51 | type at:sst; |
| 52 | description "Slice/Service type"; |
| 53 | } |
| 54 | |
| 55 | leaf sd { |
| 56 | type at:sd; |
| 57 | description "Slice differentiator"; |
| 58 | } |
| 59 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 60 | container slice { |
| 61 | description "Per-Slice QOS Settings"; |
| 62 | container mbr { |
| 63 | description "Maximum bitrate"; |
| 64 | leaf uplink { |
| 65 | type at:bitrate; |
| 66 | units bps; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 67 | description "Per-Slice MBR uplink data rate in bps"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | leaf downlink { |
| 71 | type at:bitrate; |
| 72 | units bps; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 73 | description "Per-Slice MBR downlink data rate in bps"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 74 | } |
Scott Baker | 75ff25b | 2021-10-27 18:46:23 -0700 | [diff] [blame] | 75 | |
| 76 | leaf uplink-burst-size { |
| 77 | type at:burst; |
| 78 | units bytes; |
| 79 | description "Per-Slice Uplink burst size"; |
| 80 | } |
| 81 | |
| 82 | leaf downlink-burst-size { |
| 83 | type at:burst; |
| 84 | units bytes; |
| 85 | description "Per-Slice Downlink burst size"; |
| 86 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 87 | } |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 88 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 89 | |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 90 | leaf default-behavior { |
| 91 | type at:behavior; |
| 92 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 93 | description |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 94 | "Default behavior if no filter rules match"; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 95 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 96 | |
| 97 | leaf description { |
| 98 | type at:description; |
| 99 | description "description of this vcs template"; |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |