Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: Apache-2.0 |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 14 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 28 | description "The typedef for template-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | container template { |
| 32 | description "The top level container"; |
| 33 | |
| 34 | list template { |
| 35 | key "id"; |
| 36 | description |
| 37 | "List of vcs templates"; |
| 38 | |
| 39 | leaf id { |
| 40 | type template-id; |
| 41 | description "ID for this vcs template."; |
| 42 | } |
| 43 | |
| 44 | leaf display-name { |
| 45 | type string { |
| 46 | length 1..80; |
| 47 | } |
| 48 | description "display name to use in GUI or CLI"; |
| 49 | } |
| 50 | |
| 51 | leaf sst { |
| 52 | type at:sst; |
| 53 | description "Slice/Service type"; |
| 54 | } |
| 55 | |
| 56 | leaf sd { |
| 57 | type at:sd; |
| 58 | description "Slice differentiator"; |
| 59 | } |
| 60 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 61 | container slice { |
| 62 | description "Per-Slice QOS Settings"; |
| 63 | container mbr { |
| 64 | description "Maximum bitrate"; |
| 65 | leaf uplink { |
| 66 | type at:bitrate; |
| 67 | units bps; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 68 | description "Per-Slice MBR uplink data rate in bps"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | leaf downlink { |
| 72 | type at:bitrate; |
| 73 | units bps; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 74 | description "Per-Slice MBR downlink data rate in bps"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 75 | } |
Scott Baker | 75ff25b | 2021-10-27 18:46:23 -0700 | [diff] [blame] | 76 | |
| 77 | leaf uplink-burst-size { |
| 78 | type at:burst; |
| 79 | units bytes; |
| 80 | description "Per-Slice Uplink burst size"; |
| 81 | } |
| 82 | |
| 83 | leaf downlink-burst-size { |
| 84 | type at:burst; |
| 85 | units bytes; |
| 86 | description "Per-Slice Downlink burst size"; |
| 87 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 88 | } |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 89 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 90 | |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 91 | leaf default-behavior { |
| 92 | type at:behavior; |
| 93 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 94 | description |
Scott Baker | 36c9614 | 2021-10-19 14:13:30 -0700 | [diff] [blame] | 95 | "Default behavior if no filter rules match"; |
Scott Baker | 3f1cb27 | 2021-10-26 14:28:05 -0700 | [diff] [blame] | 96 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 97 | |
| 98 | leaf description { |
| 99 | type at:description; |
| 100 | description "description of this vcs template"; |
| 101 | } |
| 102 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 103 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 104 | } |