blob: 1163d350046d3f3860e3573cbc9fb13a3774ce4f [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// PhysicalPathTerminationPointReUniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point RE UNI
27const PhysicalPathTerminationPointReUniClassID ClassID = ClassID(314)
28
29var physicalpathterminationpointreuniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointReUni (class ID #314)
32// This ME represents an S'/R' interface in a mid-span PON RE that supports OEO regeneration in at
33// least one direction, where physical paths terminate and physical path level functions are
34// performed (transmit or receive).
35//
36// Such an RE automatically creates an instance of this ME for each S'/R' interface port as
37// follows.
38//
39// o When the RE has mid-span PON RE UNI interface ports built into its factory configuration.
40//
41// o When a cardholder is provisioned to expect a circuit pack of the mid-span PON RE UNI type.
42//
43// o When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the midspan
44// PON RE UNI type. Note that the installation of a plug-and-play card may indicate the presence of
45// a mid-span PON RE UNI port via equipment ID as well as its type attribute, and indeed may cause
46// the management ONU to instantiate a port-mapping package to specify the ports precisely.
47//
48// The management ONU automatically deletes instances of this ME when a cardholder is neither
49// provisioned to expect a mid-span PON RE UNI circuit pack, nor is it equipped with a mid-span PON
50// RE UNI circuit pack.
51//
52// As illustrated in Figure 8.2.10-3, a PPTP RE UNI may share the physical port with an RE upstream
53// amplifier. The ONU declares a shared configuration through the port-mapping package combined
54// port table, whose structure defines one ME as the master. It is recommended that the PPTP RE UNI
55// be the master, with the RE upstream amplifier as a secondary ME.
56//
57// The administrative state, operational state and ARC attributes of the master ME override similar
58// attributes in secondary MEs associated with the same port. In the secondary ME, these attributes
59// are present, but cause no action when written and have undefined values when read. The RE
60// upstream amplifier should use its provisionable upstream alarm thresholds and should declare
61// upstream alarms as necessary; other isomorphic alarms should be declared by the PPTP RE UNI. The
62// test action should be addressed to the master ME.
63//
64// Relationships
65// An instance of this ME is associated with each instance of a mid-span PON RE S'/R' physical
66// interface of an RE that includes OEO regeneration in either direction, and it may also be
67// associated with an RE upstream amplifier.
68//
69// Attributes
70// Managed Entity Id
71// NOTE 1 - This ME ID may be identical to that of an RE upstream amplifier if it shares the same
72// physical slot and port.
73//
74// Administrative State
75// NOTE 2 - Administrative lock of a PPTP RE UNI results in loss of signal to any downstream ONUs.
76//
77// Operational State
78// Operational state: This attribute indicates whether the ME is capable of performing its
79// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
80//
81// Arc
82// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
83//
84// Arc Interval
85// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
86//
87// Re Ani_G Pointer
88// RE ANI-G pointer: This attribute points to an RE ANI-G instance. (R,-W) (mandatory) (2-bytes)
89//
90// Total Optical Receive Signal Level Table
91// Total optical receive signal level table: This table attribute reports a series of measurements
92// of time averaged received upstream optical signal power. The measurement circuit should have a
93// temporal response similar to a simple 1-pole low pass filter, with an effective time constant of
94// the order of a GTC frame time. Each table entry has a 2-byte frame counter field (most
95// significant end), and a 2-byte power measurement field. The frame counter field contains the
96// least significant 16-bits of the superframe counter received closest to the time of the
97// measurement. The power measurement field is a 2s complement integer referred to 1-mW (i.e.,
98// dBm), with 0.002-dB granularity. The RE equipment should add entries to this table as frequently
99// as is reasonable. The RE should clear the table once it is read by the OLT. (R) (optional) (4-*
100// N-bytes, where N is the number of measurements present.)
101//
102// Per Burst Receive Signal Level Table
103// Per burst receive signal level table: This table attribute reports the most recent measurement
104// of received burst upstream optical signal power. Each table entry has a 2-byte ONU-ID field
105// (most significant end), and a 2-byte power measurement field. The power measurement field is a
106// 2s complement integer referred to 1-mW (i.e.,-dBm), with 0.002-dB granularity. (R) (optional)
107// (4-* N-bytes, where N is the number of distinct ONUs connected to the S'/R' interface.)
108//
109// Lower Receive Optical Threshold
110// Lower receive optical threshold: This attribute specifies the optical level that the RE uses to
111// declare the burst mode low received optical power alarm. Valid values are -127-dBm (coded as
112// 254) to 0-dBm (coded as 0) in 0.5-dB increments. The default value 0xFF selects the RE's
113// internal policy. (R,-W) (optional) (1-byte)
114//
115// Upper Receive Optical Threshold
116// Upper receive optical threshold: This attribute specifies the optical level that the RE uses to
117// declare the burst mode high optical power alarm. Valid values are -127-dBm (coded as 254) to
118// 0-dBm (coded as 0) in 0.5-dB increments. The default value 0xFF selects the RE's internal
119// policy. (R,-W) (optional) (1-byte)
120//
121// Transmit Optical Level
122// Transmit optical level: This attribute reports the current measurement of the downstream mean
123// optical launch power. Its value is a 2s complement integer referred to 1-mW (i.e., dBm), with
124// 0.002-dB granularity. (R) (optional) (2-bytes)
125//
126// Lower Transmit Power Threshold
127// Lower transmit power threshold: This attribute specifies the downstream minimum mean optical
128// launch power at the S'/R' interface that the RE uses to declare the low transmit optical power
129// alarm. Its value is a 2s complement integer referred to 1-mW (i.e., dBm), with 0.5-dB
130// granularity. The default value 0x7F selects the RE's internal policy. (R,-W) (optional) (1-byte)
131//
132// Upper Transmit Power Threshold
133// Upper transmit power threshold: This attribute specifies the downstream maximum mean optical
134// launch power at the S'/R' interface that the RE uses to declare the high transmit optical power
135// alarm. Its value is a 2s complement integer referred to 1-mW (i.e., dBm), with 0.5-dB
136// granularity. The default value 0x7F selects the RE's internal policy. (R,-W) (optional) (1-byte)
137//
138// A Dditional Preamble
139// Additional preamble: This attribute indicates the number of bytes of PLOu preamble that are
140// unavoidably consumed while passing the RE. (R) (mandatory) (1-byte)
141//
142// A Dditional Guard Time
143// Additional guard time: This attribute indicates the number of bytes of extra guard time that are
144// needed to ensure correct operation with the RE. (R) (mandatory) (1-byte)
145//
146type PhysicalPathTerminationPointReUni struct {
147 ManagedEntityDefinition
148 Attributes AttributeValueMap
149}
150
151func init() {
152 physicalpathterminationpointreuniBME = &ManagedEntityDefinition{
153 Name: "PhysicalPathTerminationPointReUni",
154 ClassID: 314,
155 MessageTypes: mapset.NewSetWith(
156 Get,
157 GetNext,
158 Set,
159 ),
160 AllowedAttributeMask: 0xfffc,
161 AttributeDefinitions: AttributeDefinitionMap{
162 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
163 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
164 2: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, true, false, 2),
165 3: ByteField("Arc", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), true, true, false, 3),
166 4: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
167 5: Uint16Field("ReAniGPointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
168 6: TableField("TotalOpticalReceiveSignalLevelTable", TableAttributeType, 0x0400, TableInfo{nil, 4}, mapset.NewSetWith(Read), false, true, false, 6),
169 7: TableField("PerBurstReceiveSignalLevelTable", TableAttributeType, 0x0200, TableInfo{nil, 4}, mapset.NewSetWith(Read), false, true, false, 7),
170 8: ByteField("LowerReceiveOpticalThreshold", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8),
171 9: ByteField("UpperReceiveOpticalThreshold", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9),
172 10: Uint16Field("TransmitOpticalLevel", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
173 11: ByteField("LowerTransmitPowerThreshold", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
174 12: ByteField("UpperTransmitPowerThreshold", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
175 13: ByteField("ADditionalPreamble", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
176 14: ByteField("ADditionalGuardTime", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
177 },
178 Access: CreatedByOnu,
179 Support: UnknownSupport,
180 }
181}
182
183// NewPhysicalPathTerminationPointReUni (class ID 314) creates the basic
184// Managed Entity definition that is used to validate an ME of this type that
185// is received from or transmitted to the OMCC.
186func NewPhysicalPathTerminationPointReUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
187 return NewManagedEntity(*physicalpathterminationpointreuniBME, params...)
188}