Elia Battiston | 4750d3c | 2022-07-14 13:24:56 +0000 | [diff] [blame] | 1 | submodule bbf-xpon-multicast-distribution-set-body { |
| 2 | yang-version 1.1; |
| 3 | belongs-to bbf-xpon { |
| 4 | prefix bbf-xpon; |
| 5 | } |
| 6 | |
| 7 | import bbf-yang-types { |
| 8 | prefix bbf-yang; |
| 9 | } |
| 10 | include bbf-xpon-base; |
| 11 | include bbf-xpon-multicast-gemport-body; |
| 12 | |
| 13 | organization |
| 14 | "Broadband Forum <https://www.broadband-forum.org> |
| 15 | Fiber Access Networks Work Area"; |
| 16 | contact |
| 17 | "Comments or questions about this Broadband Forum YANG module |
| 18 | should be directed to <mailto:help@broadband-forum.org>. |
| 19 | |
| 20 | Editor: Joey Boyd, ADTRAN |
| 21 | |
| 22 | Editor: Samuel Chen, Broadcom |
| 23 | |
| 24 | Editor: Robert Peschi, Nokia |
| 25 | |
| 26 | WA Director: Marta Seda, Calix |
| 27 | |
| 28 | WA Director: Lin Wei, Huawei"; |
| 29 | description |
| 30 | "This submodule contains a collection of YANG definitions for |
| 31 | managing multicast distribution sets. |
| 32 | |
| 33 | Copyright (c) 2018, Broadband Forum |
| 34 | |
| 35 | Redistribution and use in source and binary forms, with or |
| 36 | without modification, are permitted provided that the following |
| 37 | conditions are met: |
| 38 | |
| 39 | 1. Redistributions of source code must retain the above copyright |
| 40 | notice, this list of conditions and the following disclaimer. |
| 41 | |
| 42 | 2. Redistributions in binary form must reproduce the above |
| 43 | copyright notice, this list of conditions and the following |
| 44 | disclaimer in the documentation and/or other materials |
| 45 | provided with the distribution. |
| 46 | |
| 47 | 3. Neither the name of the copyright holder nor the names of its |
| 48 | contributors may be used to endorse or promote products |
| 49 | derived from this software without specific prior written |
| 50 | permission. |
| 51 | |
| 52 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 53 | CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 54 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 55 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 56 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 57 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 58 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 59 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 60 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 61 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 62 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 63 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 64 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 65 | |
| 66 | The above license is used as a license under copyright only. |
| 67 | Please reference the Forum IPR Policy for patent licensing terms |
| 68 | <https://www.broadband-forum.org/ipr-policy>. |
| 69 | |
| 70 | Any moral rights which are necessary to exercise under the above |
| 71 | license grant are also deemed granted under this license. |
| 72 | |
| 73 | This version of this YANG module is part of TR-385; see |
| 74 | the TR itself for full legal notices."; |
| 75 | |
| 76 | revision 2019-02-25 { |
| 77 | description |
| 78 | "Initial revision. |
| 79 | * Approval Date: 2019-02-25. |
| 80 | * Publication Date: 2019-02-25."; |
| 81 | reference |
| 82 | "TR-385: ITU-T PON YANG Modules |
| 83 | <https://www.broadband-forum.org/technical/download/ |
| 84 | TR-385.pdf>"; |
| 85 | } |
| 86 | |
| 87 | augment '/bbf-xpon:xpon' { |
| 88 | description |
| 89 | "Augment system level xPON configuration with multicase |
| 90 | distribution set configuration."; |
| 91 | container multicast-distribution-set { |
| 92 | description |
| 93 | "Configuration data for a multicast distribution set."; |
| 94 | uses multicast-distribution-set-data; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | grouping multicast-distribution-set-data { |
| 99 | description |
| 100 | "All configuration data for a multicast distribution set."; |
| 101 | list multicast-set { |
| 102 | key "name"; |
| 103 | leaf name { |
| 104 | type bbf-yang:string-ascii64; |
| 105 | description |
| 106 | "Name of the multicast distribution set."; |
| 107 | } |
| 108 | leaf multicast-gemport-ref { |
| 109 | type multicast-gemport-ref; |
| 110 | description |
| 111 | "Points to a multicast GEM port."; |
| 112 | } |
| 113 | choice multicast-vlans { |
| 114 | description |
| 115 | "Multicast VLAN list or all. All means all multicast |
| 116 | vlans are carried on the same GEM port."; |
| 117 | case vlan-list { |
| 118 | description |
| 119 | "Multicast VLAN list."; |
| 120 | list vlan-list { |
| 121 | key "multicast-vlan-id"; |
| 122 | leaf multicast-vlan-id { |
| 123 | type uint16 { |
| 124 | range "0..4095"; |
| 125 | } |
| 126 | description |
| 127 | "Multicast VLAN-ID."; |
| 128 | } |
| 129 | description |
| 130 | "List of vlans."; |
| 131 | } |
| 132 | } |
| 133 | case all-multicast-vlans { |
| 134 | description |
| 135 | "All multicast VLANs are carried on the same |
| 136 | GEM port."; |
| 137 | leaf all-multicast-vlans { |
| 138 | type empty; |
| 139 | description |
| 140 | "All multicast VLANs."; |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | description |
| 145 | "List of multicast sets."; |
| 146 | } |
| 147 | } |
| 148 | } |