Elia Battiston | a133364 | 2022-07-27 12:17:24 +0000 | [diff] [blame] | 1 | module bbf-nt-line-profile { |
| 2 | yang-version 1.1; |
| 3 | namespace "urn:bbf:yang:bbf-nt-line-profile"; |
| 4 | prefix bbf-nt-line-prof; |
| 5 | |
| 6 | organization |
| 7 | "Broadband Forum <https://www.broadband-forum.org> |
| 8 | Common YANG Work Area"; |
| 9 | contact |
| 10 | "Comments or questions about this Broadband Forum YANG module |
| 11 | should be directed to <mailto:help@broadband-forum.org>. |
| 12 | |
| 13 | Editor: TBD |
| 14 | |
| 15 | PS Leader: TBD |
| 16 | |
| 17 | WA Director: TBD"; |
| 18 | description |
| 19 | "This module contains a collection of YANG definitions for |
| 20 | simplifying the Access Device Model as exposed over NBI of BAA. |
| 21 | |
| 22 | Copyright (c) 2022, Broadband Forum |
| 23 | |
| 24 | Redistribution and use in source and binary forms, with or |
| 25 | without modification, are permitted provided that the following |
| 26 | conditions are met: |
| 27 | |
| 28 | 1. Redistributions of source code must retain the above copyright |
| 29 | notice, this list of conditions and the following disclaimer. |
| 30 | |
| 31 | 2. Redistributions in binary form must reproduce the above |
| 32 | copyright notice, this list of conditions and the following |
| 33 | disclaimer in the documentation and/or other materials |
| 34 | provided with the distribution. |
| 35 | |
| 36 | 3. Neither the name of the copyright holder nor the names of its |
| 37 | contributors may be used to endorse or promote products |
| 38 | derived from this software without specific prior written |
| 39 | permission. |
| 40 | |
| 41 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 42 | CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 43 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 44 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 45 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 46 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 47 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 48 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 49 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 50 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 51 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 52 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 53 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 54 | |
| 55 | The above license is used as a license under copyright only. |
| 56 | Please reference the Forum IPR Policy for patent licensing terms |
| 57 | <https://www.broadband-forum.org/ipr-policy>. |
| 58 | |
| 59 | Any moral rights which are necessary to exercise under the above |
| 60 | license grant are also deemed granted under this license. |
| 61 | |
| 62 | This version of this YANG module is part of TR-383a4; see |
| 63 | the TR itself for full legal notices."; |
| 64 | |
| 65 | revision 2021-09-14 { |
| 66 | description |
| 67 | "Initial revision."; |
| 68 | reference |
| 69 | ""; |
| 70 | } |
| 71 | |
| 72 | typedef line-profile-ref { |
| 73 | type leafref { |
| 74 | path |
| 75 | "/bbf-nt-line-prof:line-profiles/bbf-nt-line-prof:line-profile/bbf-nt-line-prof:name"; |
| 76 | } |
| 77 | description |
| 78 | "A reference to a network termination line profile."; |
| 79 | } |
| 80 | |
| 81 | typedef line-bandwidth-ref { |
| 82 | type leafref { |
| 83 | path |
| 84 | "/bbf-nt-line-prof:line-bandwidth-profiles/bbf-nt-line-prof:line-bandwidth-profile/bbf-nt-line-prof:name"; |
| 85 | } |
| 86 | description |
| 87 | "A reference to a network termination bandwidth profile."; |
| 88 | } |
| 89 | |
| 90 | container line-bandwidth-profiles { |
| 91 | list line-bandwidth-profile { |
| 92 | key "name"; |
| 93 | description |
| 94 | "List of line profiles."; |
| 95 | leaf name { |
| 96 | type string { |
| 97 | length "1..32"; |
| 98 | } |
| 99 | description |
| 100 | "The line bandwidth profile name."; |
| 101 | } |
| 102 | leaf fixed-bandwidth { |
| 103 | type uint64; |
| 104 | units "bits/second"; |
| 105 | default "0"; |
| 106 | description |
| 107 | "Represents the reserved portion of the bandwidth capacity that |
| 108 | is allocated to the given traffic flow, regardless of its |
| 109 | traffic demand and the overall traffic load conditions."; |
| 110 | } |
| 111 | leaf assured-bandwidth { |
| 112 | type uint64; |
| 113 | units "bits/second"; |
| 114 | default "0"; |
| 115 | description |
| 116 | "Represents a portion of the bandwidth capacity that is allocated |
| 117 | to the given traffic flow as long as the flow has |
| 118 | unsatisfied traffic demand, regardless of the overall |
| 119 | traffic conditions."; |
| 120 | } |
| 121 | leaf maximum-bandwidth { |
| 122 | type uint64; |
| 123 | units "bits/second"; |
| 124 | description |
| 125 | "Represents the upper limit on the total bandwidth that can |
| 126 | be allocated to the traffic flow under any traffic |
| 127 | conditions. The maximum bandwidth must be greater than or equal |
| 128 | to the sum of any configured fixed and assured |
| 129 | bandwidth"; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | container line-profiles { |
| 134 | description |
| 135 | "All config data for line profile."; |
| 136 | list line-profile { |
| 137 | key "name"; |
| 138 | description |
| 139 | "List of line profiles."; |
| 140 | leaf name { |
| 141 | type string { |
| 142 | length "1..32"; |
| 143 | } |
| 144 | description |
| 145 | "The line profile name."; |
| 146 | } |
| 147 | container virtual-ports { |
| 148 | description |
| 149 | "All config data for virtual ports of the network termination."; |
| 150 | list virtual-port { |
| 151 | key "name"; |
| 152 | description |
| 153 | "List of virtual ports."; |
| 154 | leaf name { |
| 155 | type string; |
| 156 | description |
| 157 | "Name of virtual port."; |
| 158 | } |
| 159 | leaf line-bandwidth-ref { |
| 160 | type line-bandwidth-ref; |
| 161 | description |
| 162 | "A reference to a network termination line bandwidth profile."; |
| 163 | } |
| 164 | list match-criteria { |
| 165 | key "name"; |
| 166 | description |
| 167 | "List of match criterias."; |
| 168 | leaf name { |
| 169 | type string; |
| 170 | description |
| 171 | "Name of match criteria."; |
| 172 | } |
| 173 | leaf uni-port { |
| 174 | type uint8; |
| 175 | description |
| 176 | "Indicates the user-side port of the network termination."; |
| 177 | } |
| 178 | leaf vlan { |
| 179 | type uint32 { |
| 180 | range "0.. 4095 | 65533"; |
| 181 | } |
| 182 | description |
| 183 | "Indicates the VLAN ID of the service. The value 65533 indicates untag traffic stream."; |
| 184 | } |
| 185 | leaf priority { |
| 186 | type uint32 { |
| 187 | range "0..7"; |
| 188 | } |
| 189 | description |
| 190 | "Indicates the priority of the service."; |
| 191 | } |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | } |