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