blob: 6f9d29151d8e6bbccad68bb63ece414ad92028ec [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
5module 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 RAJba2e32f2021-11-02 10:39:24 +000015 description
Scott Bakerc9d3d842021-09-17 11:32:53 -070016 "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 RAJba2e32f2021-11-02 10:39:24 +000029 description "The typedef for template-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070030 }
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 RAJba2e32f2021-11-02 10:39:24 +000075 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070076 description
77 "Link to traffic class";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000078 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070079
80 leaf description {
81 type at:description;
82 description "description of this vcs template";
83 }
84 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000085 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070086}