blob: a83a1d31ca309059d7864f0f4f84e57779fd0804 [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// XdslLineConfigurationProfilePart2ClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL line configuration profile part 2
27const XdslLineConfigurationProfilePart2ClassID ClassID = ClassID(105)
28
29var xdsllineconfigurationprofilepart2BME *ManagedEntityDefinition
30
31// XdslLineConfigurationProfilePart2 (class ID #105)
32// The overall xDSL line configuration profile is modelled in several parts, all of which are
33// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
34// pointer, which refers to the entire set of line configuration profile parts).
35//
36// Relationships
37// An instance of this ME may be associated with zero or more instances of an xDSL UNI.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
42// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must
43// share a common ME ID. (R, setbycreate) (mandatory) (2-bytes)
44//
45// Downstream Minimum Time Interval For Upshift Rate Adaptation
46// Downstream minimum time interval for upshift rate adaptation: This parameter defines the
47// interval during which the downstream noise margin must remain above the downstream upshift noise
48// margin before the xTU-R attempts to increase the downstream net data rate. Its value ranges from
49// 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes)
50//
51// Upstream Minimum Time Interval For Upshift Rate Adaptation
52// Upstream minimum time interval for upshift rate adaptation: This parameter defines the interval
53// during which the upstream noise margin must remain above the upstream upshift noise margin
54// before the xTU-C attempts to increase the upstream net data rate. Its value ranges from 0 to
55// 16383-s. (R,-W, setbycreate) (optional) (2-bytes)
56//
57// Downstream Downshift Noise Margin
58// Downstream downshift noise margin: If the downstream noise margin is below the downstream
59// downshift noise margin and remains there for more than the downstream minimum time interval for
60// downshift rate adaptation, the xTU-R attempts to decrease the downstream net data rate. This
61// attribute's value ranges from 0 (0.0 dB) to 310 (31.0 dB). (R,-W, setbycreate) (optional)
62// (2-bytes)
63//
64// Upstream Downshift Noise Margin
65// Upstream downshift noise margin: If the upstream noise margin is below the upstream downshift
66// noise margin and remains there for more than the upstream minimum time interval for downshift
67// rate adaptation, the xTUC attempts to decrease the upstream net data rate. This attribute's
68// value ranges from 0 (0.0 dB) to 310 (31.0 dB). (R,-W, setbycreate) (optional) (2-bytes)
69//
70// Downstream Minimum Time Interval For Downshift Rate Adaptation
71// Downstream minimum time interval for downshift rate adaptation: This parameter defines the
72// interval during which the downstream noise margin must remain below the downstream downshift
73// noise margin before the xTU-R attempts to decrease the downstream net data rate. Its value
74// ranges from 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes)
75//
76// Upstream Minimum Time Interval For Downshift Rate Adaptation
77// Upstream minimum time interval for downshift rate adaptation: This parameter defines the
78// interval during which the upstream noise margin must remain below the upstream downshift noise
79// margin before the xTU-C attempts to decrease the upstream net data rate. Its value ranges from 0
80// to 16383-s. (R,-W, setbycreate) (optional) (2-bytes)
81//
82// Xtu Impedance State Forced
83// (R,-W, setbycreate) (optional) (1-byte)
84//
85// L0_Time
86// L0-time: This parameter specifies the minimum time between an exit from the L2 state and the
87// next entry into the L2 state. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
88// [ITUT-G.992.5]. It ranges from 0 to 255-s. (R,-W, setbycreate) (mandatory) (1 byte)
89//
90// L2_Time
91// L2-time: This parameter specifies the minimum time between an entry into the L2 state and the
92// first power trim in the L2 state, or between two consecutive power trims in the L2 state. It is
93// only valid for [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. It ranges from 0 to 255-s. (R,
94// W, setbycreate) (mandatory) (1 byte)
95//
96// Downstream Maximum Nominal Power Spectral Density
97// Downstream maximum nominal power spectral density: This attribute specifies the maximum nominal
98// transmit PSD in the downstream direction during initialization and showtime. A single
99// MAXNOMPSDds attribute is defined per mode enabled in the xTSE line configuration attribute. It
100// is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. Its value ranges from 0
101// (60.0-dBm/Hz) to 300 (-30-dBm/Hz). (R, W, setbycreate) (mandatory) (2 bytes)
102//
103// Upstream Maximum Nominal Power Spectral Density
104// Upstream maximum nominal power spectral density: This attribute specifies the maximum nominal
105// transmit PSD in the upstream direction during initialization and showtime. A single MAXNOMPSDus
106// attribute is defined per mode enabled in the xTSE line configuration attribute. It is only valid
107// for [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.993.2]. Its value ranges from 0 (-60.0-dBm/Hz) to
108// 300 (-30-dBm/Hz). (R, W, setbycreate) (mandatory) (2 bytes)
109//
110// Downstream Maximum Nominal Aggregate Transmit Power
111// Downstream maximum nominal aggregate transmit power: This attribute specifies the maximum
112// nominal aggregate transmit power in the downstream direction during initialization and showtime.
113// It is only valid for [ITUT-G.992.3], [ITUT-G.992.4], [ITUT-G.992.5] and [ITUT-G.993.2]. Its
114// value ranges from 0 (0.0-dBm) to 255 (25.5-dBm). (R, W, setbycreate) (mandatory) (1-byte)
115//
116// Upstream Maximum Nominal Aggregate Transmit Power
117// Upstream maximum nominal aggregate transmit power: This parameter specifies the maximum nominal
118// aggregate transmit power in the upstream direction during initialization and showtime. It is
119// only valid for [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. Its value ranges from 0
120// (0.0-dBm) to 255 (25.5-dBm). (R, W, setbycreate) (mandatory) (1 byte)
121//
122// Upstream Maximum Aggregate_Receive Power
123// Upstream maximum aggregate-receive power: This parameter specifies the maximum upstream
124// aggregate receive power over a set of subcarriers, as defined in the relevant Recommendation.
125// The xTU-C requests an upstream power cutback such that the upstream aggregate receive power over
126// that set of subcarriers is at or below the configured maximum value. It is only valid for
127// [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. This attribute ranges from 0 (25.5-dBm) to
128// 510 (+25.5-dBm). The special value 0xFFFF indicates that no upstream maximum aggregate receive
129// power limit is to be applied. (R, W setbycreate) (mandatory) (2 bytes)
130//
131// Vdsl2 Transmission System Enabling
132// VDSL2 transmission system enabling: This configuration attribute extends the transmission system
133// coding types to be allowed by the xTU-C. It is a bit map, defined as octet 8 (bits 57..64) in
134// Table-9.7.12-1. (R, W, setbycreate) (optional) (1 byte)
135//
136type XdslLineConfigurationProfilePart2 struct {
137 ManagedEntityDefinition
138 Attributes AttributeValueMap
139}
140
141func init() {
142 xdsllineconfigurationprofilepart2BME = &ManagedEntityDefinition{
143 Name: "XdslLineConfigurationProfilePart2",
144 ClassID: 105,
145 MessageTypes: mapset.NewSetWith(
146 Create,
147 Delete,
148 Get,
149 Set,
150 ),
151 AllowedAttributeMask: 0xfffe,
152 AttributeDefinitions: AttributeDefinitionMap{
153 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
154 1: Uint16Field("DownstreamMinimumTimeIntervalForUpshiftRateAdaptation", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 1),
155 2: Uint16Field("UpstreamMinimumTimeIntervalForUpshiftRateAdaptation", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 2),
156 3: Uint16Field("DownstreamDownshiftNoiseMargin", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 3),
157 4: Uint16Field("UpstreamDownshiftNoiseMargin", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4),
158 5: Uint16Field("DownstreamMinimumTimeIntervalForDownshiftRateAdaptation", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
159 6: Uint16Field("UpstreamMinimumTimeIntervalForDownshiftRateAdaptation", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6),
160 7: ByteField("XtuImpedanceStateForced", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7),
161 8: ByteField("L0Time", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 8),
162 9: ByteField("L2Time", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 9),
163 10: Uint16Field("DownstreamMaximumNominalPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 10),
164 11: Uint16Field("UpstreamMaximumNominalPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 11),
165 12: ByteField("DownstreamMaximumNominalAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 12),
166 13: ByteField("UpstreamMaximumNominalAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 13),
167 14: Uint16Field("UpstreamMaximumAggregateReceivePower", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
168 15: ByteField("Vdsl2TransmissionSystemEnabling", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 15),
169 },
170 Access: CreatedByOlt,
171 Support: UnknownSupport,
172 }
173}
174
175// NewXdslLineConfigurationProfilePart2 (class ID 105) creates the basic
176// Managed Entity definition that is used to validate an ME of this type that
177// is received from or transmitted to the OMCC.
178func NewXdslLineConfigurationProfilePart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
179 return NewManagedEntity(*xdsllineconfigurationprofilepart2BME, params...)
180}