blob: 6da6e3379d8765331534a5246535f55bbc08f874 [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 XdslLineInventoryAndStatusDataPart2ClassId ClassID = ClassID(101)
25
26var xdsllineinventoryandstatusdatapart2BME *ManagedEntityDefinition
27
28// XdslLineInventoryAndStatusDataPart2 (class ID #101)
29// This ME contains part 2 of the line inventory and status data for an xDSL UNI. The ONU
30// automatically creates or deletes an instance of this ME upon the creation or deletion of a PPTP
31// xDSL UNI part 1.
32//
33// NOTE 1 – [ITU-T G.997.1] specifies that bit rate attributes have granularity of 1000 bit/s. If
34// ITUT G.997.1 compliance is required, the ONU should only report values with this granularity.
35//
36// Relationships
37// An instance of this ME is associated with an xDSL UNI.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
42// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
43// (mandatory) (2 bytes)
44//
45// Xdsl Transmission System
46// NOTE 2 – This attribute is only 7 bytes long. An eighth byte identifying VDSL2 capabilities in
47// use is defined in the VDSL2 line inventory and status data part 1 ME.
48//
49// Line Power Management State
50// (R) (mandatory) (1 byte)
51//
52// Downstream Line Attenuation
53// NOTE 3 – [ITU-T G.993.2] specifies a per-band array to represent this attribute. The array is
54// defined in the VDSL2 line inventory and status data part 3 ME. In an ITU-T G.993.2 context, the
55// downstream line attenuation attribute should be set to 0 here, and populated in the VDSL2 line
56// inventory and status data part 3 ME instead.
57//
58// Upstream Line Attenuation
59// NOTE 4 – [ITU-T G.993.2] specifies a per-band array to represent this attribute. The array is
60// defined in the VDSL2 line inventory and status data part 3 ME. In an ITU-T G.993.2 context, the
61// upstream line attenuation attribute should be set to 0 here, and populated in the VDSL2 line
62// inventory and status data part 3 ME instead.
63//
64// Downstream Signal Attenuation
65// NOTE 6 – [ITU-T G.993.2] specifies a per-band array to represent this attribute. The array is
66// defined in the VDSL2 line inventory and status data part 3 ME. In an ITU-T G.993.2 context, the
67// downstream signal attenuation attribute should be set to 0 here, and populated in the VDSL2 line
68// inventory and status data part 3 ME instead.
69//
70// Upstream Signal Attenuation
71// NOTE 8 – [ITU-T G.993.2] specifies a per-band array to represent this attribute. The array is
72// defined in the VDSL2 line inventory and status data part 3 ME. In an ITU-T G.993.2 context, the
73// upstream signal attenuation attribute should be set to 0 here, and populated in the VDSL2 line
74// inventory and status data part 3 ME instead.
75//
76// Downstream Snr Ratio Margin
77// Downstream SNR ratio margin: The downstream SNR margin SNRMds is the maximum increase of noise
78// power received at the xTUR, such that the BER requirements can still be met for all downstream
79// bearer channels. The attribute value ranges from 0 (–64.0 dB) to 1270 (+63.0 dB). The special
80// value 0xFFFF indicates that the attribute is out of range (R) (mandatory) (2 bytes)
81//
82// Upstream Snr Margin
83// Upstream SNR margin: The upstream SNR margin SNRMus is the maximum increase of noise power
84// received at the xTUC, such that the BER requirements can still be met for all upstream bearer
85// channels. The attribute value ranges from 0 (–64.0 dB) to 1270 (+63.0 dB). The special value
86// 0xFFFF indicates that the attribute is out of range. (R) (mandatory) (2 bytes)
87//
88// Downstream Maximum Attainable Data Rate
89// Downstream maximum attainable data rate: The ATTNDRds attribute indicates the maximum downstream
90// net data rate currently attainable. The rate is coded in bits per second. (R) (mandatory)
91// (4 bytes)
92//
93// Upstream Maximum Attainable Data Rate
94// Upstream maximum attainable data rate: The ATTNDRus attribute indicates the maximum upstream net
95// data rate currently attainable. The rate is coded in bits per second. (R) (mandatory) (4 bytes)
96//
97// Downstream Actual Power Spectrum Density
98// Downstream actual power spectrum density: The ACTPSDds attribute is the average downstream
99// transmit power spectrum density over the subcarriers in use (subcarriers to which downstream
100// user data are allocated) delivered by the xTUC at the UC reference point, at the instant of
101// measurement. The attribute value ranges from 0 (–90.0 dBm/Hz) to 900 (0.0 dBm/Hz). The special
102// value (0xFFFF) indicates that the parameter is out of range. (R) (mandatory) (2 bytes)
103//
104// Upstream Actual Power Spectrum Density
105// Upstream actual power spectrum density: The ACTPSDus attribute is the average upstream transmit
106// power spectrum density over the subcarriers in use (subcarriers to which upstream user data are
107// allocated) delivered by the xTUR at the UR reference point, at the instant of measurement. The
108// attribute value ranges from 0 (–90.0 dBm/Hz) to 900 (0.0 dBm/Hz). The special value 0xFFFF
109// indicates that the attribute is out of range. (R) (mandatory) (2 bytes)
110//
111// Downstream Actual Aggregate Transmit Power
112// NOTE 9 – The downstream nominal aggregate transmit power may be taken as a best estimate of the
113// parameter.
114//
115// Upstream Actual Aggregate Transmit Power
116// NOTE 10 – The upstream nominal aggregate transmit power may be taken as a best estimate of the
117// parameter.
118//
119// Initialization _ Last State Transmitted Downstream
120// (R) (mandatory) (1 byte)
121//
122// Initialization _ Last State Transmitted Upstream
123// (R) (mandatory) (1 byte)
124//
125type XdslLineInventoryAndStatusDataPart2 struct {
126 ManagedEntityDefinition
127 Attributes AttributeValueMap
128}
129
130func init() {
131 xdsllineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
132 Name: "XdslLineInventoryAndStatusDataPart2",
133 ClassID: 101,
134 MessageTypes: mapset.NewSetWith(
135 Get,
136 ),
137 AllowedAttributeMask: 0XFFFF,
138 AttributeDefinitions: AttributeDefinitionMap{
139 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
140 1: MultiByteField("XdslTransmissionSystem", 7, nil, mapset.NewSetWith(Read), false, false, false, false, 1),
141 2: ByteField("LinePowerManagementState", 0, mapset.NewSetWith(Read), false, false, false, false, 2),
142 3: Uint16Field("DownstreamLineAttenuation", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
143 4: Uint16Field("UpstreamLineAttenuation", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
144 5: Uint16Field("DownstreamSignalAttenuation", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
145 6: Uint16Field("UpstreamSignalAttenuation", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
146 7: Uint16Field("DownstreamSnrRatioMargin", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
147 8: Uint16Field("UpstreamSnrMargin", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
148 9: Uint32Field("DownstreamMaximumAttainableDataRate", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
149 10: Uint32Field("UpstreamMaximumAttainableDataRate", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
150 11: Uint16Field("DownstreamActualPowerSpectrumDensity", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
151 12: Uint16Field("UpstreamActualPowerSpectrumDensity", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
152 13: Uint16Field("DownstreamActualAggregateTransmitPower", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
153 14: Uint16Field("UpstreamActualAggregateTransmitPower", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
154 15: ByteField("InitializationLastStateTransmittedDownstream", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
155 16: ByteField("InitializationLastStateTransmittedUpstream", 0, mapset.NewSetWith(Read), false, false, false, false, 16),
156 },
157 }
158}
159
160// NewXdslLineInventoryAndStatusDataPart2 (class ID 101 creates the basic
161// Managed Entity definition that is used to validate an ME of this type that
162// is received from the wire, about to be sent on the wire.
163func NewXdslLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
164 return NewManagedEntity(xdsllineinventoryandstatusdatapart2BME, params...)
165}