blob: 892c00bbde31a66dfb68ead382da7c96d5067a7b [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// XdslLineInventoryAndStatusDataPart8ClassID is the 16-bit ID for the OMCI
29// Managed entity xDSL line inventory and status data part 8
Andrea Campanella10426e22021-10-15 17:58:04 +020030const XdslLineInventoryAndStatusDataPart8ClassID = ClassID(414) // 0x019e
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var xdsllineinventoryandstatusdatapart8BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// XdslLineInventoryAndStatusDataPart8 (Class ID: #414 / 0x019e)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// This ME extends the attributes defined in the xDSL line inventory and status data parts-1..4.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070036//
37// Relationships
38// This is one of the status data MEs associated with an xDSL UNI. The ONU automatically creates or
39// deletes an instance of this ME upon creation or deletion of a PPTP xDSL UNI part 1 that supports
40// these attributes.
41//
42// Attributes
43// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020044// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
45// implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070046//
47// Retransmission Used Downstream Rtx_Usedds
48// Retransmission used downstream (RTX_USEDds): This parameter specifies whether [ITU-T G.998.4]
49// retransmission is used (i.e., active in showtime) in the downstream transmit direction. The
Matteo Scandolof9d43412021-01-12 11:11:34 -080050// valid range of values is given in clause-7.5.1.38 of [ITU-T G.997.1]. (R) (mandatory) (1 byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070051//
52// Retransmission Used Upstream Rtx_Usedus
Matteo Scandolof9d43412021-01-12 11:11:34 -080053// Retransmission used upstream (RTX_USEDus): This parameter specifies whether [ITUT G.998.4]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070054// retransmission is used (i.e., active in showtime) in the upstream transmit direction. The valid
55// range of values is given in clause 7.5.1.38 of [ITU-T G.997.1]. (R) (mandatory) (1 byte)
56//
57// Date_Time_Stamping Of Near_End Test Parameters Stamp_Test_Ne
Andrea Campanella10426e22021-10-15 17:58:04 +020058// Date/time-stamping of near-end test parameters (STAMP-TEST-NE): This parameter indicates the
59// date/time when the near-end test parameters that can change during showtime were last updated.
60// See clause 7.5.1.36.3 of [ITUT-G.997.1]. The format of this parameter is as follows.
61//
Matteo Scandolof9d43412021-01-12 11:11:34 -080062// (R) (optional) (7-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070063//
64// Date_Time_Stamping Of Far_End Test Parameters Stamp_Test_Fe
65// Date/time-stamping of far-end test parameters (STAMP-TEST-FE): This parameter indicates the
66// date/time when the far-end test parameters that can change during showtime were last updated.
Matteo Scandolof9d43412021-01-12 11:11:34 -080067// See clause 7.5.1.36.4 of [ITUT-G.997.1]. The format of this parameter is the same as STAMP-TEST-
68// NE. (R) (optional) (7-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070069//
70// Date_Time_Stamping Of Last Successful Downstream Olr Operation Stamp_Olr_Ds
71// Date/time-stamping of last successful downstream OLR operation (STAMP-OLR-ds): This parameter
72// indicates the date/time of the last successful OLR execution in the downstream direction that
Matteo Scandolof9d43412021-01-12 11:11:34 -080073// has modified the bits or gains. See clause-7.5.1.37.1 of [ITU-T G.997.1]. The format of this
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070074// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
75//
76// Date_Time_Stamping Of Last Successful Upstream Olr Operation Stamp_Olr_Us
77// Date/time-stamping of last successful upstream OLR operation (STAMP-OLR-us): This parameter
78// indicates the date/time of the last successful OLR execution in the upstream direction that has
Matteo Scandolof9d43412021-01-12 11:11:34 -080079// modified the bits or gains. See clause-7.5.1.37.2 of [ITU-T G.997.1]. The format of this
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070080// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
81//
82type XdslLineInventoryAndStatusDataPart8 struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
Elia Battiston9bfe1102022-02-03 10:38:03 +010087// Attribute name constants
88
89const XdslLineInventoryAndStatusDataPart8_RetransmissionUsedDownstreamRtxUsedds = "RetransmissionUsedDownstreamRtxUsedds"
90const XdslLineInventoryAndStatusDataPart8_RetransmissionUsedUpstreamRtxUsedus = "RetransmissionUsedUpstreamRtxUsedus"
91const XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfNearEndTestParametersStampTestNe = "DateTimeStampingOfNearEndTestParametersStampTestNe"
92const XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfFarEndTestParametersStampTestFe = "DateTimeStampingOfFarEndTestParametersStampTestFe"
93const XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfLastSuccessfulDownstreamOlrOperationStampOlrDs = "DateTimeStampingOfLastSuccessfulDownstreamOlrOperationStampOlrDs"
94const XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfLastSuccessfulUpstreamOlrOperationStampOlrUs = "DateTimeStampingOfLastSuccessfulUpstreamOlrOperationStampOlrUs"
95
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070096func init() {
97 xdsllineinventoryandstatusdatapart8BME = &ManagedEntityDefinition{
98 Name: "XdslLineInventoryAndStatusDataPart8",
Elia Battiston9bfe1102022-02-03 10:38:03 +010099 ClassID: XdslLineInventoryAndStatusDataPart8ClassID,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700100 MessageTypes: mapset.NewSetWith(
101 Get,
102 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800103 AllowedAttributeMask: 0xfc00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700104 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100105 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
106 1: ByteField(XdslLineInventoryAndStatusDataPart8_RetransmissionUsedDownstreamRtxUsedds, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
107 2: ByteField(XdslLineInventoryAndStatusDataPart8_RetransmissionUsedUpstreamRtxUsedus, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2),
108 3: MultiByteField(XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfNearEndTestParametersStampTestNe, OctetsAttributeType, 0x2000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 3),
109 4: MultiByteField(XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfFarEndTestParametersStampTestFe, OctetsAttributeType, 0x1000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 4),
110 5: MultiByteField(XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfLastSuccessfulDownstreamOlrOperationStampOlrDs, OctetsAttributeType, 0x0800, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 5),
111 6: MultiByteField(XdslLineInventoryAndStatusDataPart8_DateTimeStampingOfLastSuccessfulUpstreamOlrOperationStampOlrUs, OctetsAttributeType, 0x0400, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 6),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700112 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800113 Access: CreatedByOnu,
114 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700115 }
116}
117
Matteo Scandolof9d43412021-01-12 11:11:34 -0800118// NewXdslLineInventoryAndStatusDataPart8 (class ID 414) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700119// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800120// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700121func NewXdslLineInventoryAndStatusDataPart8(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800122 return NewManagedEntity(*xdsllineinventoryandstatusdatapart8BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700123}