Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * Unless required by applicable law or agreed to in writing, software |
| 9 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | * See the License for the specific language governing permissions and |
| 12 | * limitations under the License. |
| 13 | */ |
| 14 | /* |
| 15 | * NOTE: This file was generated, manual edits will be overwritten! |
| 16 | * |
| 17 | * Generated by 'goCodeGenerator.py': |
| 18 | * https://github.com/cboling/OMCI-parser/README.md |
| 19 | */ |
| 20 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const FastDataPathConfigurationProfileClassId ClassID = ClassID(433) |
| 25 | |
| 26 | var fastdatapathconfigurationprofileBME *ManagedEntityDefinition |
| 27 | |
| 28 | // FastDataPathConfigurationProfile (class ID #433) |
| 29 | // This ME contains FAST the data path configuration profile for an xDSL UNI. An instance of this |
| 30 | // ME is created and deleted by the OLT. |
| 31 | // |
| 32 | // Relationships |
| 33 | // An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part |
| 34 | // 1. |
| 35 | // |
| 36 | // Attributes |
| 37 | // Managed Entity Id |
| 38 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is |
| 39 | // reserved. (R, set-by-create) (mandatory) (2 bytes) |
| 40 | // |
| 41 | // Tps_Tc Testmode Tps_Testmode |
| 42 | // TPS-TC testmode (TPS_TESTMODE): This Boolean attribute specifies whether the TPSTC test mode |
| 43 | // defined in clause 8.3.1 [ITU-T G.9701] is enabled (true) or disabled (disabled). See clause |
| 44 | // 7.3.1 of [ITUT G.997.2]. (R, W) (mandatory) (1 byte) |
| 45 | // |
| 46 | type FastDataPathConfigurationProfile struct { |
| 47 | ManagedEntityDefinition |
| 48 | Attributes AttributeValueMap |
| 49 | } |
| 50 | |
| 51 | func init() { |
| 52 | fastdatapathconfigurationprofileBME = &ManagedEntityDefinition{ |
| 53 | Name: "FastDataPathConfigurationProfile", |
| 54 | ClassID: 433, |
| 55 | MessageTypes: mapset.NewSetWith( |
| 56 | Create, |
| 57 | Delete, |
| 58 | Get, |
| 59 | Set, |
| 60 | ), |
| 61 | AllowedAttributeMask: 0X8000, |
| 62 | AttributeDefinitions: AttributeDefinitionMap{ |
| 63 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 64 | 1: ByteField("TpsTcTestmodeTpsTestmode", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1), |
| 65 | }, |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // NewFastDataPathConfigurationProfile (class ID 433 creates the basic |
| 70 | // Managed Entity definition that is used to validate an ME of this type that |
| 71 | // is received from the wire, about to be sent on the wire. |
| 72 | func NewFastDataPathConfigurationProfile(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 73 | return NewManagedEntity(fastdatapathconfigurationprofileBME, params...) |
| 74 | } |