blob: efd55abb78848e1c7ebf23592148a933e9a89b70 [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// Aal5ProfileClassID is the 16-bit ID for the OMCI
26// Managed entity AAL5 profile
27const Aal5ProfileClassID ClassID = ClassID(16)
28
29var aal5profileBME *ManagedEntityDefinition
30
31// Aal5Profile (class ID #16)
32// This ME organizes data that describe the AAL type 5 processing functions of the ONU. It is used
33// with the IW VCC TP ME.
34//
35// This ME is created and deleted by the OLT.
36//
37// Relationships
38// An instance of this ME may be associated with zero or more instances of the IW VCC TP.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
43// (mandatory) (2-bytes)
44//
45// Max Cpcs Pdu Size
46// Max CPCS PDU size: This attribute specifies the maximum CPCS PDU size to be transmitted over the
47// connection in both upstream and downstream directions. (R,-W, setbycreate) (mandatory) (2-bytes)
48//
49// Aal Mode
50// (R,-W, setbycreate) (mandatory) (1-byte)
51//
52// Sscs Type
53// (R,-W, setbycreate) (mandatory) (1-byte)
54//
55type Aal5Profile struct {
56 ManagedEntityDefinition
57 Attributes AttributeValueMap
58}
59
60func init() {
61 aal5profileBME = &ManagedEntityDefinition{
62 Name: "Aal5Profile",
63 ClassID: 16,
64 MessageTypes: mapset.NewSetWith(
65 Create,
66 Delete,
67 Get,
68 Set,
69 ),
70 AllowedAttributeMask: 0xe000,
71 AttributeDefinitions: AttributeDefinitionMap{
72 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
73 1: Uint16Field("MaxCpcsPduSize", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
74 2: ByteField("AalMode", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
75 3: ByteField("SscsType", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
76 },
77 Access: CreatedByOlt,
78 Support: UnknownSupport,
79 }
80}
81
82// NewAal5Profile (class ID 16) creates the basic
83// Managed Entity definition that is used to validate an ME of this type that
84// is received from or transmitted to the OMCC.
85func NewAal5Profile(params ...ParamData) (*ManagedEntity, OmciErrors) {
86 return NewManagedEntity(*aal5profileBME, params...)
87}