blob: 7f181681004179713188ef4fa87b4499b6a73ac6 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// FastDataPathConfigurationProfileClassID is the 16-bit ID for the OMCI
26// Managed entity FAST data path configuration profile
27const FastDataPathConfigurationProfileClassID ClassID = ClassID(433)
28
29var fastdatapathconfigurationprofileBME *ManagedEntityDefinition
30
31// FastDataPathConfigurationProfile (class ID #433)
32// This ME contains FAST the data path configuration profile for an xDSL UNI. An instance of this
33// ME is created and deleted by the OLT.
34//
35// Relationships
36// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
37// 1.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is
42// reserved. (R, set-by-create) (mandatory) (2 bytes)
43//
44// Tps_Tc Testmode Tps_Testmode
45// TPS-TC testmode (TPS_TESTMODE): This Boolean attribute specifies whether the TPSTC test mode
46// defined in clause 8.3.1 [ITU-T G.9701] is enabled (true) or disabled (disabled). See clause
47// 7.3.1 of [ITUT-G.997.2]. (R,-W) (mandatory) (1 byte)
48//
49type FastDataPathConfigurationProfile struct {
50 ManagedEntityDefinition
51 Attributes AttributeValueMap
52}
53
54func init() {
55 fastdatapathconfigurationprofileBME = &ManagedEntityDefinition{
56 Name: "FastDataPathConfigurationProfile",
57 ClassID: 433,
58 MessageTypes: mapset.NewSetWith(
59 Create,
60 Delete,
61 Get,
62 Set,
63 ),
64 AllowedAttributeMask: 0x8000,
65 AttributeDefinitions: AttributeDefinitionMap{
66 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
67 1: ByteField("TpsTcTestmodeTpsTestmode", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
68 },
69 Access: CreatedByOlt,
70 Support: UnknownSupport,
71 }
72}
73
74// NewFastDataPathConfigurationProfile (class ID 433) creates the basic
75// Managed Entity definition that is used to validate an ME of this type that
76// is received from or transmitted to the OMCC.
77func NewFastDataPathConfigurationProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
78 return NewManagedEntity(*fastdatapathconfigurationprofileBME, params...)
79}