blob: a90dd37a0307d4cfc821caf5f7d7f2cdba9312c3 [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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. Bainbridged80007b2021-04-12 12:22:29 +000017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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
mpagenko836a1fd2021-11-01 16:12:42 +000030const FastLineInventoryAndStatusDataPart2ClassID = ClassID(436) // 0x01b4
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var fastlineinventoryandstatusdatapart2BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// FastLineInventoryAndStatusDataPart2 (Class ID: #436 / 0x01b4)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// 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
mpagenko836a1fd2021-11-01 16:12:42 +000046// 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)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000048//
49// Date_Time_Stamping Of Last Successful Downstream Fra Operation Stamp_Frads
mpagenko836a1fd2021-11-01 16:12:42 +000050// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000055// (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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000086// Attribute name constants
87
88const FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamFraOperationStampFrads = "DateTimeStampingOfLastSuccessfulDownstreamFraOperationStampFrads"
89const FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulUpstreamFraOperationStampFraus = "DateTimeStampingOfLastSuccessfulUpstreamFraOperationStampFraus"
90const FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamRpaOperationStampRpads = "DateTimeStampingOfLastSuccessfulDownstreamRpaOperationStampRpads"
91const FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulUpstreamRpaOperationStampRpaus = "DateTimeStampingOfLastSuccessfulUpstreamRpaOperationStampRpaus"
92const FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamTigaOperationStampTiga = "DateTimeStampingOfLastSuccessfulDownstreamTigaOperationStampTiga"
93
Holger Hildebrandtfa074992020-03-27 15:42:06 +000094func init() {
95 fastlineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
96 Name: "FastLineInventoryAndStatusDataPart2",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000097 ClassID: FastLineInventoryAndStatusDataPart2ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +000098 MessageTypes: mapset.NewSetWith(
99 Get,
100 ),
101 AllowedAttributeMask: 0xf800,
102 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000103 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
104 1: MultiByteField(FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamFraOperationStampFrads, OctetsAttributeType, 0x8000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 1),
105 2: MultiByteField(FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulUpstreamFraOperationStampFraus, OctetsAttributeType, 0x4000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 2),
106 3: MultiByteField(FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamRpaOperationStampRpads, OctetsAttributeType, 0x2000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 3),
107 4: MultiByteField(FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulUpstreamRpaOperationStampRpaus, OctetsAttributeType, 0x1000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 4),
108 5: MultiByteField(FastLineInventoryAndStatusDataPart2_DateTimeStampingOfLastSuccessfulDownstreamTigaOperationStampTiga, OctetsAttributeType, 0x0800, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 5),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000109 },
110 Access: CreatedByOnu,
111 Support: UnknownSupport,
112 }
113}
114
115// NewFastLineInventoryAndStatusDataPart2 (class ID 436) creates the basic
116// Managed Entity definition that is used to validate an ME of this type that
117// is received from or transmitted to the OMCC.
118func NewFastLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
119 return NewManagedEntity(*fastlineinventoryandstatusdatapart2BME, params...)
120}