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