blob: 3a59574cc94c3bf878654d7b51469c14c8db88aa [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
4
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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
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
30const FastLineInventoryAndStatusDataPart2ClassID ClassID = ClassID(436)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var fastlineinventoryandstatusdatapart2BME *ManagedEntityDefinition
33
34// FastLineInventoryAndStatusDataPart2 (class ID #436)
35// 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
46// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
47// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080048// (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070049//
50// Date_Time_Stamping Of Last Successful Downstream Fra Operation Stamp_Frads
51// (R) (optional) (7 bytes)
52//
53// Date_Time_Stamping Of Last Successful Upstream Fra Operation Stamp_Fraus
54// Date/time-stamping of last successful upstream FRA operation (STAMP-FRAus): This parameter
55// reports the date/time of the last successful FTU-O initiated FRA execution that has modified the
Matteo Scandolof9d43412021-01-12 11:11:34 -080056// 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 -070057// same as STAMPTESTNE. (R) (optional) (7 bytes)
58//
59// Date_Time_Stamping Of Last Successful Downstream Rpa Operation Stamp_Rpads
60// Date/time-stamping of last successful downstream RPA operation (STAMP-RPAds): This parameter
61// reports the date/time of the last successful FTU-R initiated RPA execution that has modified the
Matteo Scandolof9d43412021-01-12 11:11:34 -080062// 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 -070063// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
64//
65// Date_Time_Stamping Of Last Successful Upstream Rpa Operation Stamp_Rpaus
66// Date/time-stamping of last successful upstream RPA operation (STAMP-RPAus): This parameter
67// reports the date/time of the last successful FTU-O initiated RPA execution that has modified the
Matteo Scandolof9d43412021-01-12 11:11:34 -080068// 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 -070069// parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes)
70//
71// Date_Time_Stamping Of Last Successful Downstream Tiga Operation Stamp_Tiga
72// Date/time-stamping of last successful downstream TIGA operation (STAMP-TIGA): This parameter
73// reports the date/time of the last successful FTU-O initiated TIGA execution. See clause
74// 7.10.14.9 of [ITU-T G.997.2]. The format of this parameter is the same as STAMP-TEST-NE. (R)
75// (optional) (7 bytes)
76//
77type FastLineInventoryAndStatusDataPart2 struct {
78 ManagedEntityDefinition
79 Attributes AttributeValueMap
80}
81
82func init() {
83 fastlineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
84 Name: "FastLineInventoryAndStatusDataPart2",
85 ClassID: 436,
86 MessageTypes: mapset.NewSetWith(
87 Get,
88 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080089 AllowedAttributeMask: 0xf800,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070090 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080091 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
92 1: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamFraOperationStampFrads", OctetsAttributeType, 0x8000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 1),
93 2: MultiByteField("DateTimeStampingOfLastSuccessfulUpstreamFraOperationStampFraus", OctetsAttributeType, 0x4000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 2),
94 3: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamRpaOperationStampRpads", OctetsAttributeType, 0x2000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 3),
95 4: MultiByteField("DateTimeStampingOfLastSuccessfulUpstreamRpaOperationStampRpaus", OctetsAttributeType, 0x1000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 4),
96 5: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamTigaOperationStampTiga", OctetsAttributeType, 0x0800, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 5),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070097 },
Matteo Scandolof9d43412021-01-12 11:11:34 -080098 Access: CreatedByOnu,
99 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700100 }
101}
102
Matteo Scandolof9d43412021-01-12 11:11:34 -0800103// NewFastLineInventoryAndStatusDataPart2 (class ID 436) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700104// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800105// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700106func NewFastLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800107 return NewManagedEntity(*fastlineinventoryandstatusdatapart2BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700108}