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 | |
| 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; } |
| 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 | |
| 19 | revision "2021-09-10" { |
| 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 | description "The typedef for template-id"; |
| 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 | |
| 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; |
| 68 | description "Per-Slice MBR uplink data rate in bps"; |
| 69 | } |
| 70 | |
| 71 | leaf downlink { |
| 72 | type at:bitrate; |
| 73 | units bps; |
| 74 | description "Per-Slice MBR downlink data rate in bps"; |
| 75 | } |
| 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 | } |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | leaf default-behavior { |
| 92 | type at:behavior; |
| 93 | mandatory true; |
| 94 | description |
| 95 | "Default behavior if no filter rules match"; |
| 96 | } |
| 97 | |
| 98 | leaf description { |
| 99 | type at:description; |
| 100 | description "description of this vcs template"; |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | } |