blob: a90dd37a0307d4cfc821caf5f7d7f2cdba9312c3 [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// FastLineInventoryAndStatusDataPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity FAST line inventory and status data part 2
Andrea Campanella10426e22021-10-15 17:58:04 +020030const FastLineInventoryAndStatusDataPart2ClassID = ClassID(436) // 0x01b4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var fastlineinventoryandstatusdatapart2BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// FastLineInventoryAndStatusDataPart2 (Class ID: #436 / 0x01b4)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070035// 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
Andrea Campanella10426e22021-10-15 17:58:04 +020046// 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)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070048//
49// Date_Time_Stamping Of Last Successful Downstream Fra Operation Stamp_Frads
Andrea Campanella10426e22021-10-15 17:58:04 +020050// 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//
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055// (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
Matteo Scandolof9d43412021-01-12 11:11:34 -080060// bits allocation. See clause 7.10.14.6 of [ITUT-G.997.2]. The format of this parameter is the
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070061// 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
Matteo Scandolof9d43412021-01-12 11:11:34 -080066// bits allocation for the RMC. See clause-7.10.14.7 of [ITU-T G.997.2]. The format of this
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070067// 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
Matteo Scandolof9d43412021-01-12 11:11:34 -080072// bits allocation for the RMC. See clause-7.10.14.8 of [ITU-T G.997.2]. The format of this
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070073// 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
Elia Battiston9bfe1102022-02-03 10:38:03 +010086// 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
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070094func init() {
95 fastlineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
96 Name: "FastLineInventoryAndStatusDataPart2",
Elia Battiston9bfe1102022-02-03 10:38:03 +010097 ClassID: FastLineInventoryAndStatusDataPart2ClassID,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070098 MessageTypes: mapset.NewSetWith(
99 Get,
100 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800101 AllowedAttributeMask: 0xf800,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700102 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100103 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),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700109 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800110 Access: CreatedByOnu,
111 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700112 }
113}
114
Matteo Scandolof9d43412021-01-12 11:11:34 -0800115// NewFastLineInventoryAndStatusDataPart2 (class ID 436) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700116// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800117// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700118func NewFastLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800119 return NewManagedEntity(*fastlineinventoryandstatusdatapart2BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700120}