blob: e63c56f965c0d04a6311dbc77d265852647ffad0 [file] [log] [blame]
Elia Battistona1333642022-07-27 12:17:24 +00001module bbf-nt-service-profile-voltha {
2 yang-version 1.1;
3
4 namespace "urn:bbf:yang:bbf-nt-service-profile-voltha";
5 prefix bbf-voltha-srv-prof;
6
7 import bbf-nt-service-profile {
8 prefix bbf-nt-srv-prof;
9 }
10 import bbf-nt-line-profile {
11 prefix bbf-nt-line-prof;
12 }
13 import ietf-yang-types {
14 prefix yang;
15 }
16
17 organization
18 "Broadband Forum <https://www.broadband-forum.org>
19 SDN/NFV Work Area";
20 contact
21 "Comments or questions about this Broadband Forum YANG module
22 should be directed to <mailto:help@broadband-forum.org>.
23
24 Editor: TBD
25
26 WA Director: Mengmeng Li, China Mobile
27
28 WA Director: Bruno Cornaglia, Vodafone";
29 description
30 "TBD.
31
32 Copyright (c) 2019-2022, Broadband Forum
33
34 Redistribution and use in source and binary forms, with or
35 without modification, are permitted provided that the following
36 conditions are met:
37
38 1. Redistributions of source code must retain the above copyright
39 notice, this list of conditions and the following disclaimer.
40
41 2. Redistributions in binary form must reproduce the above
42 copyright notice, this list of conditions and the following
43 disclaimer in the documentation and/or other materials
44 provided with the distribution.
45
46 3. Neither the name of the copyright holder nor the names of its
47 contributors may be used to endorse or promote products
48 derived from this software without specific prior written
49 permission.
50
51 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
52 CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,
53 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
54 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
55 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
56 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
57 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
58 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
59 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
60 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
61 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
62 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
63 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64
65 The above license is used as a license under copyright only.
66 Please reference the Forum IPR Policy for patent licensing terms
67 <https://www.broadband-forum.org/ipr-policy>.
68
69 Any moral rights which are necessary to exercise under the above
70 license grant are also deemed granted under this license.
71
72 This version of this YANG module is part of TR-451; see
73 the TR itself for full legal notices.";
74
75 revision 2022-03-22 {
76 description
77 "Initial revision.";
78 reference
79 "TBD";
80 }
81
82 augment "/bbf-nt-srv-prof:service-profiles"
83 + "/bbf-nt-srv-prof:service-profile/bbf-nt-srv-prof:ports"
84 + "/bbf-nt-srv-prof:port" {
85 description
86 "Augmentation of the service profile to add bandwidth profiles
87 and VOLTHA specific values";
88
89 leaf technology-profile-id {
90 type uint32;
91 description
92 "ID of the technology profile, that has to be already
93 configured in VOLTHA.
94 The technology profile protobuf definitation can be found
95 here https://github.com/opencord/voltha-protos/blob/" +
96 "master/protos/voltha_protos/tech_profile.proto";
97 }
98 leaf upstream-subscriber-bp-name {
99 type leafref {
100 path
101 "/bbf-nt-line-prof:line-bandwidth-profiles"
102 + "/bbf-nt-line-prof:line-bandwidth-profile"
103 + "/bbf-nt-line-prof:name";
104 }
105 description
106 "Name of the UNI upstream bandwidth profile";
107 }
108 leaf downstream-subscriber-bp-name {
109 type leafref {
110 path
111 "/bbf-nt-line-prof:line-bandwidth-profiles"
112 + "/bbf-nt-line-prof:line-bandwidth-profile"
113 + "/bbf-nt-line-prof:name";
114 }
115 description
116 "Name of the UNI downstream bandwidth profile";
117 }
118 leaf upstream-olt-bp-name {
119 type leafref {
120 path
121 "/bbf-nt-line-prof:line-bandwidth-profiles"
122 + "/bbf-nt-line-prof:line-bandwidth-profile"
123 + "/bbf-nt-line-prof:name";
124 }
125 description
126 "Name of the OLT upstream bandwidth profile";
127 }
128 leaf downstream-olt-bp-name {
129 type leafref {
130 path
131 "/bbf-nt-line-prof:line-bandwidth-profiles"
132 + "/bbf-nt-line-prof:line-bandwidth-profile"
133 + "/bbf-nt-line-prof:name";
134 }
135 description
136 "Name of the OLT downstream bandwidth profile";
137 }
138 leaf mac-learning-enabled {
139 type boolean;
140 description
141 "Whether or not MAC learning has to be enabled for
142 this service";
143 }
144 leaf dhcp-required {
145 type boolean;
146 description
147 "Whether or not DHCP is required for this service";
148 }
149 leaf igmp-required {
150 type boolean;
151 description
152 "Whether or not IGMP is required for this service";
153 }
154 leaf pppoe-required {
155 type boolean;
156 description
157 "Whether or not PPPoE is required for this service";
158 }
159 leaf configured-mac-address {
160 type yang:mac-address;
161 description
162 "MAC address for the service";
163 }
164 }
165}