1 /****************************************************************************
3 ** Copyright (c) 2022 SoftAtHome
5 ** Redistribution and use in source and binary forms, with or
6 ** without modification, are permitted provided that the following
9 ** 1. Redistributions of source code must retain the above copyright
10 ** notice, this list of conditions and the following disclaimer.
12 ** 2. Redistributions in binary form must reproduce the above
13 ** copyright notice, this list of conditions and the following
14 ** disclaimer in the documentation and/or other materials provided
15 ** with the distribution.
17 ** Subject to the terms and conditions of this license, each
18 ** copyright holder and contributor hereby grants to those receiving
19 ** rights under this license a perpetual, worldwide, non-exclusive,
20 ** no-charge, royalty-free, irrevocable (except for failure to
21 ** satisfy the conditions of this license) patent license to make,
22 ** have made, use, offer to sell, sell, import, and otherwise
23 ** transfer this software, where such license applies only to those
24 ** patent claims, already acquired or hereafter acquired, licensable
25 ** by such copyright holder or contributor that are necessarily
28 ** (a) their Contribution(s) (the licensed copyrights of copyright
29 ** holders and non-copyrightable additions of contributors, in
30 ** source or binary form) alone; or
32 ** (b) combination of their Contribution(s) with the work of
33 ** authorship to which such Contribution(s) was added by such
34 ** copyright holder or contributor, if, at the time the Contribution
35 ** is added, such addition causes such combination to be necessarily
36 ** infringed. The patent license shall not apply to any other
37 ** combinations which include the Contribution.
39 ** Except as expressly stated above, no rights or licenses from any
40 ** copyright holder or contributor is granted under this license,
41 ** whether expressly, by implication, estoppel or otherwise.
45 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
46 ** CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
47 ** INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
48 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
49 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
50 ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
51 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
52 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
53 ** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
54 ** AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
55 ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
56 ** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57 ** POSSIBILITY OF SUCH DAMAGE.
59 ****************************************************************************/
64 Ethernet UNI table (a stackable interface object as described in
65 [Section 4.2/TR-181i2]). This object models User Network Interfaces
66 carrying Ethernet frames.
68 An EthernetUNI can be a virtual or a physical UNI. If the ONU is managed
69 via OMCI, an EthernetUNI has an associated service, which is either a
70 VEIP (see [Section 9.5.5/G.988]) or a PPTP Ethernet UNI (see [Section
73 If the associated service is a VEIP, the ONU shows a VEIP ME in the OMCI
74 MIB. If it's a PPTP Ethernet UNI, the ONU shows a PPTP Ethernet UNI ME
75 in the OMCI MIB. It is expected the associated service is a VEIP for a
76 virtual UNI, and that it is a PPTP Ethernet UNI for a physical UNI.
77 However, some network operators require that the ONU shows a PPTP
78 Ethernet UNI ME instead of a VEIP ME in its OMCI MIB even if the
79 EthernetUNI models a virtual UNI.
81 At most one entry in this table can exist with a given value for Alias,
82 or with a given value for Name.
84 select XPON.ONU.EthernetUNI {
85 on action destroy call interface_object_destroyed;
88 Indicates whether this interface is enabled (true) or not (false).
89 If the ONU is managed via OMCI, the interface is enabled if the OLT
90 set the parameter Administrative state of the ME managing the
91 associated service to 0. (The value 0 unlocks the functions
92 performed by the ME.) The ME is either the VEIP ME (see [Section
93 9.5.5/G.988]) or the PPTP Ethernet UNI ME (see [Section
96 This parameter is based on ifAdminStatus from [RFC2863].
98 %read-only bool Enable = false;
101 The current operational state of the interface (see [Section
104 When Enable is false then Status SHOULD normally be Down (or
105 NotPresent or Error if there is a fault condition on the interface).
107 When Enable becomes true then Status SHOULD change to Up if and only
108 if the interface is able to transmit and receive network traffic; it
109 SHOULD change to Dormant if and only if the interface is operable but
110 is waiting for external actions before it can transmit and receive
111 network traffic (and subsequently change to Up if still operable when
112 the expected actions have completed); it SHOULD change to
113 LowerLayerDown if and only if the interface is prevented from entering
114 the Up state because one or more of the interfaces beneath it is down;
115 it SHOULD remain in the Error state if there is an error or other
116 fault condition detected on the interface; it SHOULD remain in the
117 NotPresent state if the interface has missing (typically hardware)
118 components; it SHOULD change to Unknown if the state of the interface
119 can not be determined for some reason.
121 If the ONU is managed via OMCI, then Status can only be Up if the ONU
122 has been provisioned at OMCI level in such a way that this interface
123 is able to pass traffic.
125 This parameter is based on ifOperStatus from [RFC2863].
127 %read-only string Status {
129 on action validate call check_enum
130 ["NotPresent", "Down", "LowerLayerDown", "Dormant", "Up", "Error", "Unknown"];
134 A non-volatile handle used to reference this instance. Alias provides
135 a mechanism for an ACS to label this instance for future reference.
137 If the CPE supports the Alias-based Addressing feature as defined in
138 [Section 3.6.1/TR-069] and described in [Appendix II/TR-069], the
139 following mandatory constraints MUST be enforced:
141 - Its value MUST NOT be empty.
142 - Its value MUST start with a letter.
143 - If its value is not assigned by the ACS, it MUST start with a "cpe-" prefix.
144 - The CPE MUST NOT change the parameter value.
146 %unique %key string Alias {
147 on action validate call check_maximum_length 64;
151 The textual name of the interface entry as assigned by the CPE.
153 %unique %key string Name {
154 on action validate call check_maximum_length 64;
158 The accumulated time in seconds since the interface entered its
159 current operational state.
161 %read-only uint32 LastChange {
162 on action read call lastchange_on_read;
166 Comma-separated list (maximum number of characters 1024) of strings.
167 Each list item MUST be the Path Name of an interface object that is
168 stacked immediately below this interface object. If the referenced
169 object is deleted, the corresponding item MUST be removed from the
170 list. See [Section 4.2.1/TR-181i2].
172 Note: it is expected that LowerLayers will not be used: if
173 EthernetUNI models a physical UNI, it represents a layer 1
174 interface; if EthernetUNI models a virtual UNI, it virtualizes a
177 %read-only csv_string LowerLayers {
178 on action validate call check_maximum_length 1024;
182 Comma-separated list (maximum number of characters 1024) of strings.
183 Each list item MUST be the Path Name of a row in the ANI table. If
184 the referenced object is deleted, the corresponding item MUST be
185 removed from the list. References all associated ANI interfaces.
187 An ONU is potentially capable of forwarding frames between a UNI and
188 its associated ANI interfaces. This parameter defines such a
189 relationship. However, the list does not mean that the forwarding is
190 actually happening, or the forwarding policies have been
191 provisioned, between the UNI and the associated ANI interfaces. For
192 an ONU with a single TC layer device, the parameter value can be
193 either empty for simplicity, or can be the path name of the
194 associated ANI. For an ONU with multiple TC layer devices, this
195 parameter value may have one or more path names.
197 %read-only csv_string ANIs {
198 on action validate call check_maximum_length 1024;
202 String to identify the associated service in the ONU management
203 domain to the TR-181 management domain. If the ONU is managed via
204 OMCI, it is recommended to format this string as
205 "(service_type,MEID)", with service_type being an enumeration of
206 VEIP or PPTPEthernetUNI, and MEID the value of the attribute
207 "Managed entity ID" of the ME instance managing the service
208 associated with this EthernetUNI.
213 - (PPTPEthernetUNI,257)
215 An OSS (Operations Support System) having access to both the TR-181
216 and the OMCI domain can then find out which EthernetUNI instance
217 represents a certain VEIP or PPTPEthernetUNI ME instance in the OMCI
220 %read-only string InterdomainID {
221 on action validate call check_maximum_length 256;
225 String that provides an additional way to identify the associated
226 service to the TR-181 management domain. If the ONU is managed via
227 OMCI and if the service associated with this EthernetUNI is a VEIP,
228 then the value of this parameter is the value of the attribute
229 "Interdomain name" of the corresponding VEIP ME instance.
231 %read-only string InterdomainName {
232 on action validate call check_maximum_length 25;
235 ifdef(`CONFIG_SAH_AMX_TR181_XPON_USE_NETDEV_COUNTERS', /**
236 * Throughput statistics for this interface.
238 * The CPE MUST reset the interface's Stats parameters
239 * (unless otherwise stated in individual object or parameter descriptions) either
240 * when the interface becomes operationally down due to a previous administrative
241 * down (i.e. the interface's Status parameter transitions to a down state after
242 * the interface is disabled) or when the interface becomes administratively up
243 * (i.e. the interface's Enable parameter transitions from false to true).
244 * Administrative and operational interface status is discussed in [Section 4.2.2/TR-181i2].
249 on action read call stats_object_read;
250 on action list call stats_object_list;
251 on action describe call stats_object_describe;