blob: 0c22e9a2c271531f3e039e6428b3d5263c5aba89 [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// XdslSubcarrierMaskingUpstreamProfileClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL subcarrier masking upstream profile
27const XdslSubcarrierMaskingUpstreamProfileClassID ClassID = ClassID(109)
28
29var xdslsubcarriermaskingupstreamprofileBME *ManagedEntityDefinition
30
31// XdslSubcarrierMaskingUpstreamProfile (class ID #109)
32// This ME contains the subcarrier masking upstream profile for an xDSL UNI. An instance of this ME
33// 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, setbycreate) (mandatory) (2-bytes)
43//
44// Upstream Subcarrier Mask
45// Subcarrier number 1 is the lowest, and the number of xDSL subcarriers, upstream (NSCus) is the
46// highest subcarrier that can be transmitted in the upstream direction. For [ITUT-G.992.3],
47// [ITUT-G.992.4] and [ITUT-G.992.5], it is defined in the corresponding Recommendation. For Annex
48// A of [ITUT-G.992.1] and [ITUT G.992.2], NSCus-= 32 and for Annex B of [ITUT-G.992.1], NSCus-=
49// 64. (R, W, setbycreate) (mandatory) (8-bytes)
50//
51type XdslSubcarrierMaskingUpstreamProfile struct {
52 ManagedEntityDefinition
53 Attributes AttributeValueMap
54}
55
56func init() {
57 xdslsubcarriermaskingupstreamprofileBME = &ManagedEntityDefinition{
58 Name: "XdslSubcarrierMaskingUpstreamProfile",
59 ClassID: 109,
60 MessageTypes: mapset.NewSetWith(
61 Create,
62 Delete,
63 Get,
64 Set,
65 ),
66 AllowedAttributeMask: 0x8000,
67 AttributeDefinitions: AttributeDefinitionMap{
68 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
69 1: Uint64Field("UpstreamSubcarrierMask", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
70 },
71 Access: CreatedByOlt,
72 Support: UnknownSupport,
73 }
74}
75
76// NewXdslSubcarrierMaskingUpstreamProfile (class ID 109) creates the basic
77// Managed Entity definition that is used to validate an ME of this type that
78// is received from or transmitted to the OMCC.
79func NewXdslSubcarrierMaskingUpstreamProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
80 return NewManagedEntity(*xdslsubcarriermaskingupstreamprofileBME, params...)
81}