blob: 7ee49961870010900ff76c570830623c7e8b623d [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const ReAniGClassId ClassID = ClassID(313)
25
26var reanigBME *ManagedEntityDefinition
27
28// ReAniG (class ID #313)
29// This ME organizes data associated with each R'/S' physical interface of an RE if the RE supports
30// OEO regeneration in either direction. The management ONU automatically creates one instance of
31// this ME for each R'/S' physical port (uni- or bidirectional) as follows.
32//
33// • When the RE has mid-span PON RE ANI interface ports built into its factory configuration.
34//
35// • When a cardholder is provisioned to expect a circuit pack of the mid-span PON RE ANI type.
36//
37// • When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the midspan
38// PON RE ANI type. Note that the installation of a plug-and-play card may indicate the presence of
39// a mid-span PON RE ANI port via equipment ID as well as its type attribute, and indeed may cause
40// the management ONU to instantiate a port-mapping package to specify the ports precisely.
41//
42// The management ONU automatically deletes instances of this ME when a cardholder is neither
43// provisioned to expect a mid-span PON RE ANI circuit pack, nor is it equipped with a mid-span PON
44// RE ANI circuit pack.
45//
46// As illustrated in Figure 8.2.10-4, an RE ANI-G may share the physical port with an RE downstream
47// amplifier. The ONU declares a shared configuration through the port-mapping package combined
48// port table, whose structure defines one ME as the master. It is recommended that the RE ANI-G be
49// the master, with the RE downstream amplifier as a secondary ME.
50//
51// The administrative state, operational state and ARC attributes of the master ME override similar
52// attributes in secondary MEs associated with the same port. In the secondary ME, these attributes
53// are present, but cause no action when written and have undefined values when read. The RE
54// downstream amplifier should use its provisionable downstream alarm thresholds and should declare
55// downstream alarms as necessary; other isomorphic alarms should be declared by the RE ANI-G. The
56// test action should be addressed to the master ME.
57//
58// Relationships
59// An instance of this ME is associated with each R'/S' physical interface of an RE that includes
60// OEO regeneration in either direction, and with one or more instances of the PPTP RE UNI. It may
61// also be associated with an RE downstream amplifier.
62//
63// Attributes
64// Managed Entity Id
65// NOTE 1 – This ME ID may be identical to that of an RE downstream amplifier if it shares the same
66// physical slot and port.
67//
68// Administrative State
69// NOTE 2 – When an RE supports multiple PONs, or protected access to a single PON, its primary
70// ANI-G cannot be completely shut down, due to a loss of the management communications capability.
71// Complete blocking of service and removal of power may nevertheless be appropriate for secondary
72// RE ANI-Gs. Administrative lock suppresses alarms and notifications for an RE ANI-G, be it either
73// primary or secondary.
74//
75// Operational State
76// Operational state: This attribute indicates whether the ME is capable of performing its
77// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
78//
79// Arc
80// ARC: See clause A.1.4.3. (R, W) (optional) (1 byte)
81//
82// Arc Interval
83// ARC interval: See clause A.1.4.3. (R, W) (optional) (1 byte)
84//
85// Optical Signal Level
86// Optical signal level: This attribute reports the current measurement of total downstream optical
87// power. Its value is a 2s complement integer referred to 1 mW (i.e., dBm), with 0.002 dB
88// granularity. (R) (optional) (2 bytes)
89//
90// Lower Optical Threshold
91// Lower optical threshold: This attribute specifies the optical level that the RE uses to declare
92// the downstream low received optical power alarm. Valid values are –127 dBm (coded as 254) to
93// 0 dBm (coded as 0) in 0.5 dB increments. The default value 0xFF selects the RE's internal
94// policy. (R, W) (optional) (1 byte)
95//
96// Upper Optical Threshold
97// Upper optical threshold: This attribute specifies the optical level that the RE uses to declare
98// the downstream high received optical power alarm. Valid values are –127 dBm (coded as 254) to
99// 0 dBm (coded as 0) in 0.5 dB increments. The default value 0xFF selects the RE's internal
100// policy. (R, W) (optional) (1 byte)
101//
102// Transmit Optical Level
103// Transmit optical level: This attribute reports the current measurement of mean optical launch
104// power. Its value is a 2s complement integer referred to 1 mW (i.e., dBm), with 0.002 dB
105// granularity. (R) (optional) (2 bytes)
106//
107// Lower Transmit Power Threshold
108// Lower transmit power threshold: This attribute specifies the minimum mean optical launch power
109// that the RE uses to declare the low transmit optical power alarm. Its value is a 2s complement
110// integer referred to 1 mW (i.e., dBm), with 0.5 dB granularity. The default value 0x7F selects
111// the RE's internal policy. (R, W) (optional) (1 byte)
112//
113// Upper Transmit Power Threshold
114// Upper transmit power threshold: This attribute specifies the maximum mean optical launch power
115// that the RE uses to declare the high transmit optical power alarm. Its value is a 2s complement
116// integer referred to 1 mW (i.e., dBm), with 0.5 dB granularity. The default value 0x7F selects
117// the RE's internal policy. (R, W) (optional) (1 byte)
118//
119// Usage Mode
120// 3 This R'/S' interface is used as the uplink for both the embedded management ONU and one or
121// more PPTP RE UNI(s) (in a time division fashion).
122//
123// Target Upstream Frequency
124// Target upstream frequency: This attribute specifies the frequency of the converted upstream
125// signal on the optical trunk line (OTL), in gigahertz. The converted frequency must conform to
126// the frequency plan specified in [ITUT G.984.6]. The value 0 means that the upstream signal
127// frequency remains the same as the original frequency; no frequency conversion is done. If the RE
128// does not support provisionable upstream frequency (wavelength), this attribute should take the
129// fixed value representing the RE's capability and the RE should deny attempts to set the value of
130// the attribute. If the RE does support provisionable upstream frequency conversion, the default
131// value of this attribute is 0. (R, W) (optional) (4 bytes).
132//
133// Target Downstream Frequency
134// Target downstream frequency: This attribute specifies the frequency of the downstream signal
135// received by the RE on the OTL, in gigahertz. The incoming frequency must conform to the
136// frequency plan specified in [ITUT G.984.6]. The default value 0 means that the downstream
137// frequency remains the same as its original frequency; no frequency conversion is done. If the RE
138// does not support provisionable downstream frequency selectivity, this attribute should take the
139// fixed value representing the RE's capability, and the RE should deny attempts to set the value
140// of the attribute. If the RE does support provisionable downstream frequency selectivity, the
141// default value of this attribute is 0. (R, W) (optional) (4 bytes).
142//
143// Upstream Signal Transmission Mode
144// Upstream signal transmission mode: When true, this Boolean attribute enables conversion from
145// burst mode to continuous mode. The default value false specifies burst mode upstream
146// transmission. If the RE does not have the ability to convert from burst to continuous mode
147// transmission, it should deny attempts to set this attribute to true. (R, W) (optional) (1 byte)
148//
149type ReAniG struct {
150 ManagedEntityDefinition
151 Attributes AttributeValueMap
152}
153
154func init() {
155 reanigBME = &ManagedEntityDefinition{
156 Name: "ReAniG",
157 ClassID: 313,
158 MessageTypes: mapset.NewSetWith(
159 Get,
160 Set,
161 ),
162 AllowedAttributeMask: 0XFFFC,
163 AttributeDefinitions: AttributeDefinitionMap{
164 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
165 1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
166 2: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 2),
167 3: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 3),
168 4: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
169 5: Uint16Field("OpticalSignalLevel", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
170 6: ByteField("LowerOpticalThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
171 7: ByteField("UpperOpticalThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
172 8: Uint16Field("TransmitOpticalLevel", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
173 9: ByteField("LowerTransmitPowerThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
174 10: ByteField("UpperTransmitPowerThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
175 11: ByteField("UsageMode", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 11),
176 12: Uint32Field("TargetUpstreamFrequency", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
177 13: Uint32Field("TargetDownstreamFrequency", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
178 14: ByteField("UpstreamSignalTransmissionMode", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 14),
179 },
180 }
181}
182
183// NewReAniG (class ID 313 creates the basic
184// Managed Entity definition that is used to validate an ME of this type that
185// is received from the wire, about to be sent on the wire.
186func NewReAniG(params ...ParamData) (*ManagedEntity, OmciErrors) {
187 return NewManagedEntity(reanigBME, params...)
188}