blob: 241073cb2cd6dc670f3943bcecbd067017304d6f [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
David K. Bainbridgeadf422d2021-04-09 16:06:41 +000017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// Vdsl2LineInventoryAndStatusDataPart1ClassID is the 16-bit ID for the OMCI
29// Managed entity VDSL2 line inventory and status data part 1
Chip Boling610117d2021-09-09 11:24:34 -050030const Vdsl2LineInventoryAndStatusDataPart1ClassID = ClassID(168) // 0x00a8
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var vdsl2lineinventoryandstatusdatapart1BME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// Vdsl2LineInventoryAndStatusDataPart1 (Class ID: #168 / 0x00a8)
Chip Boling6e27b352020-02-14 09:10:01 -060035// This ME extends the xDSL line configuration MEs. The ME name was chosen because its attributes
36// were initially unique to ITU-T G.993.2 VDSL2. Due to continuing standards development, some
37// attributes - and therefore this ME - have also become applicable to other Recommendations,
38// specifically [ITU-T G.992.3] and [ITU-T G.992.5].
39//
40// This ME contains general and downstream attributes.
41//
42// Relationships
43// This is one of the status data MEs associated with an xDSL UNI. It is meaningful if the PPTP
44// supports [ITU-T G.992.3], [ITU-T G.992.5] or [ITU-T G.993.2]. The ONU automatically creates or
45// deletes an instance of this ME upon creation and deletion of a PPTP xDSL UNI part 1 that
46// supports these attributes.
47//
48// Attributes
49// Managed Entity Id
Chip Boling610117d2021-09-09 11:24:34 -050050// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
51// implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060052//
53// Vdsl2 Transmission System Capability Xtu C
54// VDSL2 transmission system capability xTUC: This attribute extends the xTU-C transmission system
55// capability attribute of the xDSL line inventory and status data part 1 to include xTU-C VDSL2
56// capabilities. It is defined by bits 57..64 of Table 9.7.12-1. (R) (mandatory) (1-byte)
57//
58// Vdsl2 Transmission System
Chip Boling610117d2021-09-09 11:24:34 -050059// This attribute reports the transmission system in use. It extends the xDSL transmission system
60// attribute of the xDSL line inventory and status data part 2 ME with a byte that includes VDSL2
61// capabilities currently in use. It is defined by bits 57..64 of Table 9.7.12-1. (R) (mandatory)
62// (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060063//
64// Vdsl2 Profile
Chip Boling610117d2021-09-09 11:24:34 -050065// This attribute identifies the profile in use. It is a bit map (0 if not allowed, 1 if allowed)
66// with the following definition:
67//
68// Bit Meaning
69//
70// 1 (LSB) ITU-T G.993.2 profile 8a
71//
72// 2 ITU-T G.993.2 profile 8b
73//
74// 3 ITU-T G.993.2 profile 8c
75//
76// 4 ITU-T G.993.2 profile 8d
77//
78// 5 ITU-T G.993.2 profile 12a
79//
80// 6 ITU-T G.993.2 profile 12b
81//
82// 7 ITU-T G.993.2 profile 17a
83//
84// 8 ITU-T G.993.2 profile 30a
85//
Chip Boling6e27b352020-02-14 09:10:01 -060086// (R) (mandatory) (1-byte)
87//
88// Vdsl2 Limit Psd Mask And Bandplan
Chip Boling610117d2021-09-09 11:24:34 -050089// This attribute defines the limit PSD mask and band plan in use. It is a bit map as defined by
90// Table 9.7.6-1. (R) (mandatory) (8-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060091//
92// Vdsl2 Us0 Psd Mask
Chip Boling610117d2021-09-09 11:24:34 -050093// This attribute defines the US0 PSD mask in use. It is a bit map as defined by Table 9.7.62. (R)
94// (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060095//
96// Actsnrmodeds
Chip Boling610117d2021-09-09 11:24:34 -050097// This attribute indicates whether transmitter-referred virtual noise is active on the line in the
98// downstream direction.
99//
100// 1 Virtual noise inactive
101//
102// 2 Virtual noise active
103//
Chip Boling6e27b352020-02-14 09:10:01 -0600104// (R) (mandatory) (1-byte)
105//
Chip Boling610117d2021-09-09 11:24:34 -0500106// The following four attributes have similar definitions. In each case, valid attribute values are
107// 1, 2, 4, 8. In ADSL applications, the corresponding value is fixed at 1, and therefore need not
108// be specified. For VDSL2, it is equal to the size of the subcarrier group used to compute these
109// attributes (see clause-11.4.1 of [ITUT G.993.2]).
110//
Chip Boling6e27b352020-02-14 09:10:01 -0600111// Hlingds
Chip Boling610117d2021-09-09 11:24:34 -0500112// This attribute contains the number of subcarriers per group used to report HLINpsds. (R)
113// (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -0600114//
115// Hloggds
Chip Boling610117d2021-09-09 11:24:34 -0500116// This attribute contains the number of subcarriers per group used to report HLOGpsds. (R)
117// (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -0600118//
119// Qlngds
Chip Boling610117d2021-09-09 11:24:34 -0500120// This attribute contains the number of subcarriers per group used to report QLNpsds. (R)
Chip Boling6e27b352020-02-14 09:10:01 -0600121// (mandatory) (1-byte)
122//
123// Snrgds
Chip Boling610117d2021-09-09 11:24:34 -0500124// This attribute contains the number of subcarriers per group used to report SNRpsds. (R)
Chip Boling6e27b352020-02-14 09:10:01 -0600125// (mandatory) (1-byte)
126//
127// Mrefpsdds Table
Chip Boling610117d2021-09-09 11:24:34 -0500128// The downstream medley reference PSD table contains the set of breakpoints exchanged in the
129// MREFPSDds fields of the O-PRM message of [ITU-T G.993.2].
130//
131// The format is similar to that specified for the PSD descriptor in [ITUT-G.993.2]. In [ITU-T
132// G.993.2], the first byte gives the size of the table, each entry of which is 3-bytes. In the
133// OMCI definition, the first byte is omitted because the size of the table is known from the
134// response to the get command.
135//
Chip Boling6e27b352020-02-14 09:10:01 -0600136// (R) (mandatory) (3 * N bytes, where N is the number of breakpoints)
137//
138// Trellisds
Chip Boling610117d2021-09-09 11:24:34 -0500139// 0 Trellis not used
140//
141// 1 Trellis used
142//
Chip Boling6e27b352020-02-14 09:10:01 -0600143// (R) (mandatory for ITU-T G.993.2 VDSL2, optional for others) (1-byte)
144//
Chip Boling610117d2021-09-09 11:24:34 -0500145// This attribute reports whether trellis coding is in use in the downstream direction.
146//
Chip Boling6e27b352020-02-14 09:10:01 -0600147// Actual Rate Adaptation Mode Downstream
Chip Boling610117d2021-09-09 11:24:34 -0500148// The ACT-RA-MODEds attribute indicates the actual active RA mode in the downstream direction.
149//
150// 1 MANUAL
151//
152// 2 AT_INIT
153//
154// 3 DYNAMIC
155//
156// 4 DYNAMIC with SOS ([ITU-T G.993.2] only)
157//
Chip Boling6e27b352020-02-14 09:10:01 -0600158// (R) (optional) (1-byte)
159//
160// Actual Impulse Noise Protection Robust Operations Channel Roc Downstream
161// Actual impulse noise protection robust operations channel (ROC) downstream: The ACTINP-ROC-ds
162// attribute reports the actual INP of the ROC in the downstream direction expressed in multiples
163// of T4k. The INP of this attribute is equal to the integer value multiplied by 0.1 symbols. Valid
164// values and usage are given in clause 7.5.1.34.1 of [ITUT-G.997.1]. (R) (optional) (1-byte)
165//
166// Snr Margin Roc Downstream
Chip Boling610117d2021-09-09 11:24:34 -0500167// The SNRM-ROC-ds attribute reports the actual signal-to-noise margin of the ROC in the downstream
168// direction. Its value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF
169// indicates that the attribute is out of range. (R) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -0600170//
171type Vdsl2LineInventoryAndStatusDataPart1 struct {
172 ManagedEntityDefinition
173 Attributes AttributeValueMap
174}
175
176func init() {
177 vdsl2lineinventoryandstatusdatapart1BME = &ManagedEntityDefinition{
178 Name: "Vdsl2LineInventoryAndStatusDataPart1",
179 ClassID: 168,
180 MessageTypes: mapset.NewSetWith(
181 Get,
182 GetNext,
183 ),
184 AllowedAttributeMask: 0xfffe,
185 AttributeDefinitions: AttributeDefinitionMap{
186 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
187 1: ByteField("Vdsl2TransmissionSystemCapabilityXtuC", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
188 2: ByteField("Vdsl2TransmissionSystem", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2),
189 3: ByteField("Vdsl2Profile", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
190 4: Uint64Field("Vdsl2LimitPsdMaskAndBandplan", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
191 5: Uint32Field("Vdsl2Us0PsdMask", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
192 6: ByteField("Actsnrmodeds", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
193 7: ByteField("Hlingds", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
194 8: ByteField("Hloggds", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
195 9: ByteField("Qlngds", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
196 10: ByteField("Snrgds", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
197 11: TableField("MrefpsddsTable", TableAttributeType, 0x0020, TableInfo{nil, 3}, mapset.NewSetWith(Read), false, false, false, 11),
198 12: ByteField("Trellisds", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
199 13: ByteField("ActualRateAdaptationModeDownstream", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
200 14: ByteField("ActualImpulseNoiseProtectionRobustOperationsChannelRocDownstream", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
201 15: Uint16Field("SnrMarginRocDownstream", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
202 },
203 Access: CreatedByOnu,
204 Support: UnknownSupport,
205 }
206}
207
208// NewVdsl2LineInventoryAndStatusDataPart1 (class ID 168) creates the basic
209// Managed Entity definition that is used to validate an ME of this type that
210// is received from or transmitted to the OMCC.
211func NewVdsl2LineInventoryAndStatusDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
212 return NewManagedEntity(*vdsl2lineinventoryandstatusdatapart1BME, params...)
213}