blob: 3a59574cc94c3bf878654d7b51469c14c8db88aa [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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
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
30const FastLineInventoryAndStatusDataPart2ClassID ClassID = ClassID(436)
31
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)
48// (mandatory) (2-bytes)
49//
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
56// bits allocation. See clause 7.10.14.6 of [ITUT-G.997.2]. The format of this parameter is the
57// 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
62// bits allocation for the RMC. See clause-7.10.14.7 of [ITU-T G.997.2]. The format of this
63// 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
68// bits allocation for the RMC. See clause-7.10.14.8 of [ITU-T G.997.2]. The format of this
69// 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 ),
89 AllowedAttributeMask: 0xf800,
90 AttributeDefinitions: AttributeDefinitionMap{
91 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),
97 },
98 Access: CreatedByOnu,
99 Support: UnknownSupport,
100 }
101}
102
103// NewFastLineInventoryAndStatusDataPart2 (class ID 436) creates the basic
104// Managed Entity definition that is used to validate an ME of this type that
105// is received from or transmitted to the OMCC.
106func NewFastLineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
107 return NewManagedEntity(*fastlineinventoryandstatusdatapart2BME, params...)
108}