blob: 218d20e858ffdd7b5dc5686b7da7595c55d559e0 [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// GalEthernetProfileClassID is the 16-bit ID for the OMCI
26// Managed entity GAL Ethernet profile
27const GalEthernetProfileClassID ClassID = ClassID(272)
28
29var galethernetprofileBME *ManagedEntityDefinition
30
31// GalEthernetProfile (class ID #272)
32// This ME organizes data that describe the gigabit-capable passive optical network transmission
33// convergence layer (GTC) adaptation layer processing functions of the ONU for Ethernet services.
34// It is used with the GEM IW TP ME.
35//
36// Instances of this ME are created and deleted on request of the OLT.
37//
38// Relationships
39// An instance of this ME may be associated with zero or more instances of the GEM IW TP ME.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
44// (mandatory) (2-bytes)
45//
46// Maximum Gem Payload Size
47// Maximum GEM payload size: This attribute defines the maximum payload size generated in the
48// associated GEM IW TP ME. (R,-W, setbycreate) (mandatory) (2-bytes)
49//
50type GalEthernetProfile struct {
51 ManagedEntityDefinition
52 Attributes AttributeValueMap
53}
54
55func init() {
56 galethernetprofileBME = &ManagedEntityDefinition{
57 Name: "GalEthernetProfile",
58 ClassID: 272,
59 MessageTypes: mapset.NewSetWith(
60 Create,
61 Delete,
62 Get,
63 Set,
64 ),
65 AllowedAttributeMask: 0x8000,
66 AttributeDefinitions: AttributeDefinitionMap{
67 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
68 1: Uint16Field("MaximumGemPayloadSize", UnsignedIntegerAttributeType, 0x8000, 48, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
69 },
70 Access: CreatedByOlt,
71 Support: UnknownSupport,
72 }
73}
74
75// NewGalEthernetProfile (class ID 272) creates the basic
76// Managed Entity definition that is used to validate an ME of this type that
77// is received from or transmitted to the OMCC.
78func NewGalEthernetProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
79 return NewManagedEntity(*galethernetprofileBME, params...)
80}