blob: 260367b1898cfe3191c9418105f32101dfcaca4d [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// XdslPsdMaskProfileClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL PSD mask profile
27const XdslPsdMaskProfileClassID ClassID = ClassID(110)
28
29var xdslpsdmaskprofileBME *ManagedEntityDefinition
30
31// XdslPsdMaskProfile (class ID #110)
32// This ME contains a PSD mask profile for an xDSL UNI. An instance of this ME is created and
33// 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, setbycreate) (mandatory) (2-bytes)
43//
44// Psd Mask Table
45// (R,-W) (mandatory) (4 * N bytes where N is the number of breakpoints)
46//
47// Mask Valid
48// (R,-W) (mandatory) (1-byte)
49//
50type XdslPsdMaskProfile struct {
51 ManagedEntityDefinition
52 Attributes AttributeValueMap
53}
54
55func init() {
56 xdslpsdmaskprofileBME = &ManagedEntityDefinition{
57 Name: "XdslPsdMaskProfile",
58 ClassID: 110,
59 MessageTypes: mapset.NewSetWith(
60 Create,
61 Delete,
62 Get,
63 GetNext,
64 Set,
65 ),
66 AllowedAttributeMask: 0xc000,
67 AttributeDefinitions: AttributeDefinitionMap{
68 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
69 1: TableField("PsdMaskTable", TableAttributeType, 0x8000, TableInfo{nil, 4}, mapset.NewSetWith(Read, Write), false, false, false, 1),
70 2: ByteField("MaskValid", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
71 },
72 Access: CreatedByOlt,
73 Support: UnknownSupport,
74 }
75}
76
77// NewXdslPsdMaskProfile (class ID 110) creates the basic
78// Managed Entity definition that is used to validate an ME of this type that
79// is received from or transmitted to the OMCC.
80func NewXdslPsdMaskProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
81 return NewManagedEntity(*xdslpsdmaskprofileBME, params...)
82}