blob: a83aea815e75996d03435b901ce3860889fdb74a [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const GalEthernetProfileClassId ClassID = ClassID(272)
25
26var galethernetprofileBME *ManagedEntityDefinition
27
28// GalEthernetProfile (class ID #272)
29// This ME organizes data that describe the gigabit-capable passive optical network transmission
30// convergence layer (GTC) adaptation layer processing functions of the ONU for Ethernet services.
31// It is used with the GEM IW TP ME.
32//
33// Instances of this ME are created and deleted on request of the OLT.
34//
35// Relationships
36// An instance of this ME may be associated with zero or more instances of the GEM IW TP ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
41// (mandatory) (2 bytes)
42//
43// Maximum Gem Payload Size
44// Maximum GEM payload size: This attribute defines the maximum payload size generated in the
45// associated GEM IW TP ME. (R, W, setbycreate) (mandatory) (2 bytes)
46//
47type GalEthernetProfile struct {
48 ManagedEntityDefinition
49 Attributes AttributeValueMap
50}
51
52func init() {
53 galethernetprofileBME = &ManagedEntityDefinition{
54 Name: "GalEthernetProfile",
55 ClassID: 272,
56 MessageTypes: mapset.NewSetWith(
57 Create,
58 Delete,
59 Get,
60 Set,
61 ),
62 AllowedAttributeMask: 0X8000,
63 AttributeDefinitions: AttributeDefinitionMap{
64 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
65 1: Uint16Field("MaximumGemPayloadSize", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
66 },
67 }
68}
69
70// NewGalEthernetProfile (class ID 272 creates the basic
71// Managed Entity definition that is used to validate an ME of this type that
72// is received from the wire, about to be sent on the wire.
73func NewGalEthernetProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
74 return NewManagedEntity(galethernetprofileBME, params...)
75}