Elia Battiston | a133364 | 2022-07-27 12:17:24 +0000 | [diff] [blame] | 1 | module bbf-voltha-vlan-translation { |
| 2 | yang-version 1.1; |
| 3 | |
| 4 | namespace "urn:bbf:yang:bbf-voltha-vlan-translation"; |
| 5 | prefix bbf-voltha-vlan-tr; |
| 6 | |
| 7 | import bbf-l2-access-attributes { |
| 8 | prefix bbf-l2access-attr; |
| 9 | } |
| 10 | import bbf-dot1q-types { |
| 11 | prefix bbf-dot1qt; |
| 12 | } |
| 13 | |
| 14 | organization |
| 15 | "Broadband Forum <https://www.broadband-forum.org> |
| 16 | SDN/NFV Work Area"; |
| 17 | contact |
| 18 | "Comments or questions about this Broadband Forum YANG module |
| 19 | should be directed to <mailto:help@broadband-forum.org>. |
| 20 | |
| 21 | Editor: TBD |
| 22 | |
| 23 | WA Director: Mengmeng Li, China Mobile |
| 24 | |
| 25 | WA Director: Bruno Cornaglia, Vodafone"; |
| 26 | description |
| 27 | "TBD. |
| 28 | |
| 29 | Copyright (c) 2019-2022, Broadband Forum |
| 30 | |
| 31 | Redistribution and use in source and binary forms, with or |
| 32 | without modification, are permitted provided that the following |
| 33 | conditions are met: |
| 34 | |
| 35 | 1. Redistributions of source code must retain the above copyright |
| 36 | notice, this list of conditions and the following disclaimer. |
| 37 | |
| 38 | 2. Redistributions in binary form must reproduce the above |
| 39 | copyright notice, this list of conditions and the following |
| 40 | disclaimer in the documentation and/or other materials |
| 41 | provided with the distribution. |
| 42 | |
| 43 | 3. Neither the name of the copyright holder nor the names of its |
| 44 | contributors may be used to endorse or promote products |
| 45 | derived from this software without specific prior written |
| 46 | permission. |
| 47 | |
| 48 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 49 | CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 50 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 51 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 52 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 53 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 54 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 55 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 56 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 57 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 58 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 59 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 60 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 61 | |
| 62 | The above license is used as a license under copyright only. |
| 63 | Please reference the Forum IPR Policy for patent licensing terms |
| 64 | <https://www.broadband-forum.org/ipr-policy>. |
| 65 | |
| 66 | Any moral rights which are necessary to exercise under the above |
| 67 | license grant are also deemed granted under this license. |
| 68 | |
| 69 | This version of this YANG module is part of TR-451; see |
| 70 | the TR itself for full legal notices."; |
| 71 | |
| 72 | revision 2022-03-22 { |
| 73 | description |
| 74 | "Initial revision."; |
| 75 | reference |
| 76 | "TBD"; |
| 77 | } |
| 78 | |
| 79 | augment "/bbf-l2access-attr:vlan-translation-profiles" |
| 80 | + "/bbf-l2access-attr:vlan-translation-profile" |
| 81 | + "/bbf-l2access-attr:ingress-rewrite" |
| 82 | + "/bbf-l2access-attr:push-outer-tag" { |
| 83 | description |
| 84 | "Augmentation of the vlan translation profile outer tag with |
| 85 | downstream pbit"; |
| 86 | |
| 87 | leaf d-pbit { |
| 88 | type union { |
| 89 | type bbf-dot1qt:pbit-list; |
| 90 | type enumeration { |
| 91 | enum any { |
| 92 | description |
| 93 | "Matches any pbit value in the range of 0 to 7."; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | description |
| 98 | "Allowed downstream PBIT values."; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | augment "/bbf-l2access-attr:vlan-translation-profiles" |
| 103 | + "/bbf-l2access-attr:vlan-translation-profile" |
| 104 | + "/bbf-l2access-attr:ingress-rewrite" |
| 105 | + "/bbf-l2access-attr:push-second-tag" { |
| 106 | description |
| 107 | "Augmentation of the vlan translation profile second tag with |
| 108 | downstream pbit"; |
| 109 | |
| 110 | leaf d-pbit { |
| 111 | type union { |
| 112 | type bbf-dot1qt:pbit-list; |
| 113 | type enumeration { |
| 114 | enum any { |
| 115 | description |
| 116 | "Matches any pbit value in the range of 0 to 7."; |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | description |
| 121 | "Allowed downstream PBIT values."; |
| 122 | } |
| 123 | } |
| 124 | } |