Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * 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 Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * 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 Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * 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 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // XdslLineInventoryAndStatusDataPart8ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL line inventory and status data part 8 |
| 30 | const XdslLineInventoryAndStatusDataPart8ClassID ClassID = ClassID(414) |
| 31 | |
| 32 | var xdsllineinventoryandstatusdatapart8BME *ManagedEntityDefinition |
| 33 | |
| 34 | // XdslLineInventoryAndStatusDataPart8 (class ID #414) |
| 35 | // This ME extends the attributes defined in the xDSL line inventory and status data parts-1..4. |
| 36 | // |
| 37 | // Relationships |
| 38 | // This is one of the status data MEs associated with an xDSL UNI. The ONU automatically creates or |
| 39 | // deletes an instance of this ME upon creation or deletion of a PPTP xDSL UNI part 1 that supports |
| 40 | // these attributes. |
| 41 | // |
| 42 | // Attributes |
| 43 | // Managed Entity Id |
| 44 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 45 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R) |
| 46 | // (mandatory) (2-bytes) |
| 47 | // |
| 48 | // Retransmission Used Downstream Rtx_Usedds |
| 49 | // Retransmission used downstream (RTX_USEDds): This parameter specifies whether [ITU-T G.998.4] |
| 50 | // retransmission is used (i.e., active in showtime) in the downstream transmit direction. The |
| 51 | // valid range of values is given in clause-7.5.1.38 of [ITU-T G.997.1]. (R) (mandatory) (1 byte) |
| 52 | // |
| 53 | // Retransmission Used Upstream Rtx_Usedus |
| 54 | // Retransmission used upstream (RTX_USEDus): This parameter specifies whether [ITUT G.998.4] |
| 55 | // retransmission is used (i.e., active in showtime) in the upstream transmit direction. The valid |
| 56 | // range of values is given in clause 7.5.1.38 of [ITU-T G.997.1]. (R) (mandatory) (1 byte) |
| 57 | // |
| 58 | // Date_Time_Stamping Of Near_End Test Parameters Stamp_Test_Ne |
| 59 | // (R) (optional) (7-bytes) |
| 60 | // |
| 61 | // Date_Time_Stamping Of Far_End Test Parameters Stamp_Test_Fe |
| 62 | // Date/time-stamping of far-end test parameters (STAMP-TEST-FE): This parameter indicates the |
| 63 | // date/time when the far-end test parameters that can change during showtime were last updated. |
| 64 | // See clause 7.5.1.36.4 of [ITUT-G.997.1]. The format of this parameter is the same as STAMP-TEST- |
| 65 | // NE. (R) (optional) (7-bytes) |
| 66 | // |
| 67 | // Date_Time_Stamping Of Last Successful Downstream Olr Operation Stamp_Olr_Ds |
| 68 | // Date/time-stamping of last successful downstream OLR operation (STAMP-OLR-ds): This parameter |
| 69 | // indicates the date/time of the last successful OLR execution in the downstream direction that |
| 70 | // has modified the bits or gains. See clause-7.5.1.37.1 of [ITU-T G.997.1]. The format of this |
| 71 | // parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes) |
| 72 | // |
| 73 | // Date_Time_Stamping Of Last Successful Upstream Olr Operation Stamp_Olr_Us |
| 74 | // Date/time-stamping of last successful upstream OLR operation (STAMP-OLR-us): This parameter |
| 75 | // indicates the date/time of the last successful OLR execution in the upstream direction that has |
| 76 | // modified the bits or gains. See clause-7.5.1.37.2 of [ITU-T G.997.1]. The format of this |
| 77 | // parameter is the same as STAMP-TEST-NE. (R) (optional) (7 bytes) |
| 78 | // |
| 79 | type XdslLineInventoryAndStatusDataPart8 struct { |
| 80 | ManagedEntityDefinition |
| 81 | Attributes AttributeValueMap |
| 82 | } |
| 83 | |
| 84 | func init() { |
| 85 | xdsllineinventoryandstatusdatapart8BME = &ManagedEntityDefinition{ |
| 86 | Name: "XdslLineInventoryAndStatusDataPart8", |
| 87 | ClassID: 414, |
| 88 | MessageTypes: mapset.NewSetWith( |
| 89 | Get, |
| 90 | ), |
| 91 | AllowedAttributeMask: 0xfc00, |
| 92 | AttributeDefinitions: AttributeDefinitionMap{ |
| 93 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 94 | 1: ByteField("RetransmissionUsedDownstreamRtxUsedds", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 95 | 2: ByteField("RetransmissionUsedUpstreamRtxUsedus", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2), |
| 96 | 3: MultiByteField("DateTimeStampingOfNearEndTestParametersStampTestNe", OctetsAttributeType, 0x2000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 3), |
| 97 | 4: MultiByteField("DateTimeStampingOfFarEndTestParametersStampTestFe", OctetsAttributeType, 0x1000, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 4), |
| 98 | 5: MultiByteField("DateTimeStampingOfLastSuccessfulDownstreamOlrOperationStampOlrDs", OctetsAttributeType, 0x0800, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 5), |
| 99 | 6: MultiByteField("DateTimeStampingOfLastSuccessfulUpstreamOlrOperationStampOlrUs", OctetsAttributeType, 0x0400, 7, toOctets("AAAAAAAAAA=="), mapset.NewSetWith(Read), false, true, false, 6), |
| 100 | }, |
| 101 | Access: CreatedByOnu, |
| 102 | Support: UnknownSupport, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // NewXdslLineInventoryAndStatusDataPart8 (class ID 414) creates the basic |
| 107 | // Managed Entity definition that is used to validate an ME of this type that |
| 108 | // is received from or transmitted to the OMCC. |
| 109 | func NewXdslLineInventoryAndStatusDataPart8(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 110 | return NewManagedEntity(*xdsllineinventoryandstatusdatapart8BME, params...) |
| 111 | } |