X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=data-model%2Fyang%2Fpublished%2Fo-ran%2Fru-fh%2Fo-ran-ethernet-forwarding%402021-12-01.yang;fp=data-model%2Fyang%2Fpublished%2Fo-ran%2Fru-fh%2Fo-ran-ethernet-forwarding%402021-12-01.yang;h=6034cf04fcaec87aaa9c0545431fc28820c38df4;hb=5a4d5f6105bb5f5fcf3ba92d2e50346766f2f485;hp=0000000000000000000000000000000000000000;hpb=ee63226cb62a49d3e08f14a78280d9d8d2a56992;p=scp%2Foam%2Fmodeling.git diff --git a/data-model/yang/published/o-ran/ru-fh/o-ran-ethernet-forwarding@2021-12-01.yang b/data-model/yang/published/o-ran/ru-fh/o-ran-ethernet-forwarding@2021-12-01.yang new file mode 100644 index 0000000..6034cf0 --- /dev/null +++ b/data-model/yang/published/o-ran/ru-fh/o-ran-ethernet-forwarding@2021-12-01.yang @@ -0,0 +1,136 @@ +module o-ran-ethernet-forwarding { + yang-version 1.1; + namespace "urn:o-ran:ethernet-fwd:1.0"; + prefix "o-ran-eft"; + + import ietf-yang-types { + prefix "yang"; + } + + import o-ran-interfaces { + prefix "or-if"; + } + + import ietf-interfaces { + prefix "if"; + } + + organization "O-RAN Alliance"; + + contact + "www.o-ran.org"; + + description + "This module defines the Ethernet forwarding table of an O-RU. + This is an option capability used when supporting 'shared cell' operation. + + Copyright 2020 the O-RAN Alliance. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the above disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the above disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the Members of the O-RAN Alliance nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission."; + + revision "2021-12-01" { + description + "version 3.1.0 + + 1. Typo corrections for british english"; + + reference "ORAN-WG4.M.0-v03.00"; + } + + + revision "2020-04-17" { + description + "version 3.0.0 + + 1. Initial version"; + + reference "ORAN-WG4.M.0-v03.00"; + } + + grouping ethernet-ft { + description + "Ethernet forwarding table."; + + leaf aging-time { + type uint32 { + range "10..10000000"; + } + units "seconds"; + default "300"; + description + "The timeout period in seconds for ageing out + dynamically-learned forwarding information."; + } + + list filtering-entry { + key "address vlan-id"; + config false; + description + "List of the entries within the Ethernet forwarding table. + This list is keyed by the MAC address and VLAN of the Ethernet frame."; + + leaf address { + type yang:mac-address; + description + "A MAC address (unicast, multicast, broadcast) for + which the device has forwarding and/or filtering + information."; + } + + leaf vlan-id { + type uint16 { + range "0..4094"; + } + description + "VLAN-ID entry in the forwarding table, used during the + look-up when receiving an in-coming Ethernet frame to determine + how to forward. + + A value of 0 indicates that the filtering entry is for an un-tagged + frame/MAC address"; + } + + list port-map { + key "port-ref"; + description + "The list of entries composing the port map."; + leaf port-ref { + type leafref { + path "/if:interfaces/if:interface/or-if:port-reference/or-if:port-number"; + } + description + "The interface port reference associated with this map."; + } + } + } + } + + container ethernet-forwarding-table { + description "Top level container defining forwarding tables for Ethernet"; + + uses ethernet-ft; + } + +}