blob: 202351ebbb89303f4565a03fb47bdd08591df102 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// XdslSubcarrierMaskingDownstreamProfileClassID is the 16-bit ID for the OMCI
29// Managed entity xDSL subcarrier masking downstream profile
30const XdslSubcarrierMaskingDownstreamProfileClassID ClassID = ClassID(108)
31
32var xdslsubcarriermaskingdownstreamprofileBME *ManagedEntityDefinition
33
34// XdslSubcarrierMaskingDownstreamProfile (class ID #108)
35// This ME contains the subcarrier masking downstream profile for an xDSL UNI. Instances of this ME
36// are created and deleted by the OLT.
37//
38// Relationships
39// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
40// 1.
41//
42// Attributes
43// Managed Entity Id
44// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is
45// reserved. (R, set-by-create) (mandatory) (2-bytes)
46//
47// Downstream Subcarrier Mask 1
48// Downstream subcarrier mask 1: Subcarriers 1 to 128. (R,-W, set-by-create) (mandatory) (16-bytes)
49//
50// Downstream Subcarrier Mask 2
51// Downstream subcarrier mask 2: Subcarriers 129 to 256. (R,-W) (mandatory for modems that support
52// NSCds-> 128) (16-bytes)
53//
54// Downstream Subcarrier Mask 3
55// Downstream subcarrier mask 3: Subcarriers 257 to 384. (R,-W) (mandatory for modems that support
56// NSCds-> 256) (16-bytes)
57//
58// Downstream Subcarrier Mask 4
59// Downstream subcarrier mask 4: Subcarriers 385 to 512. (R,-W) (mandatory for modems that support
60// NSCds-> 384) (16-bytes)
61//
62// Mask Valid
63// (R,-W) (mandatory) (1-byte)
64//
65type XdslSubcarrierMaskingDownstreamProfile struct {
66 ManagedEntityDefinition
67 Attributes AttributeValueMap
68}
69
70func init() {
71 xdslsubcarriermaskingdownstreamprofileBME = &ManagedEntityDefinition{
72 Name: "XdslSubcarrierMaskingDownstreamProfile",
73 ClassID: 108,
74 MessageTypes: mapset.NewSetWith(
75 Create,
76 Delete,
77 Get,
78 Set,
79 ),
80 AllowedAttributeMask: 0xf800,
81 AttributeDefinitions: AttributeDefinitionMap{
82 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
83 1: MultiByteField("DownstreamSubcarrierMask1", OctetsAttributeType, 0x8000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
84 2: MultiByteField("DownstreamSubcarrierMask2", OctetsAttributeType, 0x4000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 2),
85 3: MultiByteField("DownstreamSubcarrierMask3", OctetsAttributeType, 0x2000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 3),
86 4: MultiByteField("DownstreamSubcarrierMask4", OctetsAttributeType, 0x1000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 4),
87 5: ByteField("MaskValid", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
88 },
89 Access: CreatedByOlt,
90 Support: UnknownSupport,
91 }
92}
93
94// NewXdslSubcarrierMaskingDownstreamProfile (class ID 108) creates the basic
95// Managed Entity definition that is used to validate an ME of this type that
96// is received from or transmitted to the OMCC.
97func NewXdslSubcarrierMaskingDownstreamProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
98 return NewManagedEntity(*xdslsubcarriermaskingdownstreamprofileBME, params...)
99}