Add supoprt for D release use-case.
[sim/o1-interface.git] / ntsimulator / deploy / o-ran-ru-fh / yang / o-ran-ethernet-forwarding@2020-04-17.yang
1 module o-ran-ethernet-forwarding {
2   yang-version 1.1;
3   namespace "urn:o-ran:ethernet-fwd:1.0";
4   prefix "o-ran-eft";
5
6   import ietf-yang-types {
7     prefix "yang";
8   }
9
10   import o-ran-interfaces {
11     prefix "or-if";
12   }
13
14   import ietf-interfaces {
15     prefix "if";
16   }
17
18   organization "O-RAN Alliance";
19
20   contact
21     "www.o-ran.org";
22
23   description
24     "This module defines the Ethernet forwarding table of an O-RU.
25     This is an option capability used when supporting 'shared cell' operation.
26
27     Copyright 2020 the O-RAN Alliance.
28
29     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
30     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
33     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39     POSSIBILITY OF SUCH DAMAGE.
40
41     Redistribution and use in source and binary forms, with or without
42     modification, are permitted provided that the following conditions are met:
43
44     * Redistributions of source code must retain the above copyright notice,
45     this list of conditions and the above disclaimer.
46     * Redistributions in binary form must reproduce the above copyright notice,
47     this list of conditions and the above disclaimer in the documentation
48     and/or other materials provided with the distribution.
49     * Neither the Members of the O-RAN Alliance nor the names of its
50     contributors may be used to endorse or promote products derived from
51     this software without specific prior written permission.";
52
53   revision "2020-04-17" {
54     description
55       "version 3.0.0
56
57       1. Initial version";
58
59     reference "ORAN-WG4.M.0-v03.00";
60   }
61
62   grouping ethernet-ft {
63     description
64       "Ethernet forwarding table.";
65
66     leaf aging-time {
67       type uint32 {
68         range "10..10000000";
69       }
70       units "seconds";
71       default "300";
72       description
73         "The timeout period in seconds for aging out
74         dynamically-learned forwarding information.";
75     }
76
77     list filtering-entry {
78       key "address vlan-id";
79       config false;
80       description
81         "List of the entries within the Ethernet forwarding table.
82         This list is keyed by the MAC address and VLAN of the Ethernet frame.";
83
84       leaf address {
85         type yang:mac-address;
86         description
87           "A MAC address (unicast, multicast, broadcast) for
88           which the device has forwarding and/or filtering
89           information.";
90       }
91
92       leaf vlan-id {
93         type uint16 {
94           range "0..4094";
95         }
96         description
97           "VLAN-ID entry in the forwarding table, used during the
98           look-up when receiving an in-coming Ethernet frame to determine
99           how to forward.
100
101           A value of 0 indicates that the filtering entry is for an un-tagged
102           frame/MAC address";
103       }
104
105       list port-map {
106         key "port-ref";
107         description
108           "The list of entries composing the port map.";
109         leaf port-ref {
110           type leafref {
111             path "/if:interfaces/if:interface/or-if:port-reference/or-if:port-number";
112             }
113           description
114             "The interface port reference associated with this map.";
115         }
116       }
117     }
118   }
119
120   container ethernet-forwarding-table {
121     description "Top level container defining forwarding tables for Ethernet";
122
123     uses ethernet-ft;
124   }
125
126 }