blob: 4d676353cdffa535d84160f047f3b0976f60d324 [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// FastLineInventoryAndStatusDataPart2ClassID is the 16-bit ID for the OMCI
26// Managed entity FAST line inventory and status data part 2
27const FastLineInventoryAndStatusDataPart2ClassID ClassID = ClassID(436)
28
29var fastlineinventoryandstatusdatapart2BME *ManagedEntityDefinition
30
31// FastLineInventoryAndStatusDataPart2 (class ID #436)
32// This ME contains part 3 of the FAST line inventory and status data with attributes specific to
33// [ITU T G.997.2]. The ONU automatically creates or deletes an instance of this ME upon the
34// creation or deletion of a PPTP xDSL UNI part 1.
35//
36// Relationships
37// This is one of the status data MEs associated with an xDSL UNI. It is required only if FAST is
38// supported by the PPTP. The ONU automatically creates or deletes an instance of this ME upon
39// creation or deletion of a PPTP xDSL UNI part 1 that supports these attributes.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
44// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
45// (mandatory) (2-bytes)
46//
47// Date_Time_Stamping Of Last Successful Downstream Fra Operation Stamp_Frads
48// (R) (optional) (7 bytes)
49//
50// Date_Time_Stamping Of Last Successful Upstream Fra Operation Stamp_Fraus
51// Date/time-stamping of last successful upstream FRA operation (STAMP-FRAus): This parameter
52// reports the date/time of the last successful FTU-O initiated FRA execution that has modified the
53// bits allocation. See clause 7.10.14.6 of [ITUT-G.997.2]. The format of this parameter is the
54// same as STAMPTESTNE. (R) (optional) (7 bytes)
55//
56// Date_Time_Stamping Of Last Successful Downstream Rpa Operation Stamp_Rpads
57// Date/time-stamping of last successful downstream RPA operation (STAMP-RPAds): This parameter
58// reports the date/time of the last successful FTU-R initiated RPA execution that has modified the
59// bits allocation for the RMC. See clause-7.10.14.7 of [ITU-T G.997.2]. The format of this
60// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
61//
62// Date_Time_Stamping Of Last Successful Upstream Rpa Operation Stamp_Rpaus
63// Date/time-stamping of last successful upstream RPA operation (STAMP-RPAus): This parameter
64// reports the date/time of the last successful FTU-O initiated RPA execution that has modified the
65// bits allocation for the RMC. See clause-7.10.14.8 of [ITU-T G.997.2]. The format of this
66// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
67//
68// Date_Time_Stamping Of Last Successful Downstream Tiga Operation Stamp_Tiga
69// Date/time-stamping of last successful downstream TIGA operation (STAMP-TIGA): This parameter
70// reports the date/time of the last successful FTU-O initiated TIGA execution. See clause
71// 7.10.14.9 of [ITU-T G.997.2]. The format of this parameter is the same as STAMP-TEST-NE. (R)
72// (optional) (7 bytes)
73//
74type FastLineInventoryAndStatusDataPart2 struct {
75 ManagedEntityDefinition
76 Attributes AttributeValueMap
77}
78
79func init() {
80 fastlineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
81 Name: "FastLineInventoryAndStatusDataPart2",
82 ClassID: 436,
83 MessageTypes: mapset.NewSetWith(
84 Get,
85 ),
86 AllowedAttributeMask: 0xf800,
87 AttributeDefinitions: AttributeDefinitionMap{
88 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
89 1: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamFraOperationStampFrads", OctetsAttributeType, 0x8000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 1),
90 2: MultiByteField("DateTimeStampingOfLastSuccessfulUpstreamFraOperationStampFraus", OctetsAttributeType, 0x4000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 2),
91 3: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamRpaOperationStampRpads", OctetsAttributeType, 0x2000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 3),
92 4: MultiByteField("DateTimeStampingOfLastSuccessfulUpstreamRpaOperationStampRpaus", OctetsAttributeType, 0x1000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 4),
93 5: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamTigaOperationStampTiga", OctetsAttributeType, 0x0800, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 5),
94 },
95 Access: CreatedByOnu,
96 Support: UnknownSupport,
97 }
98}
99
100// NewFastLineInventoryAndStatusDataPart2 (class ID 436) creates the basic
101// Managed Entity definition that is used to validate an ME of this type that
102// is received from or transmitted to the OMCC.
103func NewFastLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
104 return NewManagedEntity(*fastlineinventoryandstatusdatapart2BME, params...)
105}