blob: a48b40317808ef05f287b329e4db2e21ca6a2b3a [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// XdslDownstreamRfiBandsProfileClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL downstream RFI bands profile
27const XdslDownstreamRfiBandsProfileClassID ClassID = ClassID(111)
28
29var xdsldownstreamrfibandsprofileBME *ManagedEntityDefinition
30
31// XdslDownstreamRfiBandsProfile (class ID #111)
32// This ME contains the downstream RFI bands profile for an xDSL UNI. Instances of this ME are
33// 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, setbycreate) (mandatory) (2-bytes)
43//
44// Downstream Rfi Bands Table
45// (R,-W) (mandatory for [ITU-T G.992.5], [ITU-T G.993.2]) (5 * N bytes where N is the number of
46// RFI bands)
47//
48// Bands Valid
49// (R,-W) (mandatory) (1-byte)
50//
51type XdslDownstreamRfiBandsProfile struct {
52 ManagedEntityDefinition
53 Attributes AttributeValueMap
54}
55
56func init() {
57 xdsldownstreamrfibandsprofileBME = &ManagedEntityDefinition{
58 Name: "XdslDownstreamRfiBandsProfile",
59 ClassID: 111,
60 MessageTypes: mapset.NewSetWith(
61 Create,
62 Delete,
63 Get,
64 GetNext,
65 Set,
66 ),
67 AllowedAttributeMask: 0xc000,
68 AttributeDefinitions: AttributeDefinitionMap{
69 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
70 1: TableField("DownstreamRfiBandsTable", TableAttributeType, 0x8000, TableInfo{nil, 5}, mapset.NewSetWith(Read, Write), false, false, false, 1),
71 2: ByteField("BandsValid", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
72 },
73 Access: CreatedByOlt,
74 Support: UnknownSupport,
75 }
76}
77
78// NewXdslDownstreamRfiBandsProfile (class ID 111) creates the basic
79// Managed Entity definition that is used to validate an ME of this type that
80// is received from or transmitted to the OMCC.
81func NewXdslDownstreamRfiBandsProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
82 return NewManagedEntity(*xdsldownstreamrfibandsprofileBME, params...)
83}