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 template { |
| 6 | namespace "http://opennetworking.org/aether/template"; |
| 7 | prefix tp; |
| 8 | |
| 9 | import aether-types{ prefix at; } |
| 10 | import traffic-class{ prefix tc; } |
| 11 | import ietf-yang-types{ prefix yg; } |
| 12 | |
| 13 | organization "Open Networking Foundation."; |
| 14 | contact "Scott Baker"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 15 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 16 | "The aether vcs-template holds common parameters used |
| 17 | by a virtual connectivity service. Templates are used to |
| 18 | populate a VCS."; |
| 19 | |
| 20 | revision "2021-06-02" { |
| 21 | description "An Aether Virtual Cellular Service Template"; |
| 22 | reference "RFC 6087"; |
| 23 | } |
| 24 | |
| 25 | typedef template-id { |
| 26 | type yg:yang-identifier { |
| 27 | length 1..32; |
| 28 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 29 | description "The typedef for template-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | container template { |
| 33 | description "The top level container"; |
| 34 | |
| 35 | list template { |
| 36 | key "id"; |
| 37 | description |
| 38 | "List of vcs templates"; |
| 39 | |
| 40 | leaf id { |
| 41 | type template-id; |
| 42 | description "ID for this vcs template."; |
| 43 | } |
| 44 | |
| 45 | leaf display-name { |
| 46 | type string { |
| 47 | length 1..80; |
| 48 | } |
| 49 | description "display name to use in GUI or CLI"; |
| 50 | } |
| 51 | |
| 52 | leaf sst { |
| 53 | type at:sst; |
| 54 | description "Slice/Service type"; |
| 55 | } |
| 56 | |
| 57 | leaf sd { |
| 58 | type at:sd; |
| 59 | description "Slice differentiator"; |
| 60 | } |
| 61 | |
| 62 | leaf uplink { |
| 63 | type uint32; |
| 64 | description "Uplink data rate in mbps"; |
| 65 | } |
| 66 | |
| 67 | leaf downlink { |
| 68 | type uint32; |
| 69 | description "Downlink data rate in mbps"; |
| 70 | } |
| 71 | |
| 72 | leaf traffic-class { |
| 73 | type leafref { |
| 74 | path "/tc:traffic-class/tc:traffic-class/tc:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 75 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 76 | description |
| 77 | "Link to traffic class"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 78 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 79 | |
| 80 | leaf description { |
| 81 | type at:description; |
| 82 | description "description of this vcs template"; |
| 83 | } |
| 84 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 85 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 86 | } |