Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | /* |
| 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 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const Aal5ProfileClassId ClassID = ClassID(16) |
| 25 | |
| 26 | var aal5profileBME *ManagedEntityDefinition |
| 27 | |
| 28 | // Aal5Profile (class ID #16) |
| 29 | // This ME organizes data that describe the AAL type 5 processing functions of the ONU. It is used |
| 30 | // with the IW VCC TP ME. |
| 31 | // |
| 32 | // This ME is created and deleted by the OLT. |
| 33 | // |
| 34 | // Relationships |
| 35 | // An instance of this ME may be associated with zero or more instances of the IW VCC TP. |
| 36 | // |
| 37 | // Attributes |
| 38 | // Managed Entity Id |
| 39 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate) |
| 40 | // (mandatory) (2 bytes) |
| 41 | // |
| 42 | // Max Cpcs Pdu Size |
| 43 | // Max CPCS PDU size: This attribute specifies the maximum CPCS PDU size to be transmitted over the |
| 44 | // connection in both upstream and downstream directions. (R, W, setbycreate) (mandatory) (2 bytes) |
| 45 | // |
| 46 | // Aal Mode |
| 47 | // (R, W, setbycreate) (mandatory) (1 byte) |
| 48 | // |
| 49 | // Sscs Type |
| 50 | // (R, W, setbycreate) (mandatory) (1 byte) |
| 51 | // |
| 52 | type Aal5Profile struct { |
| 53 | ManagedEntityDefinition |
| 54 | Attributes AttributeValueMap |
| 55 | } |
| 56 | |
| 57 | func init() { |
| 58 | aal5profileBME = &ManagedEntityDefinition{ |
| 59 | Name: "Aal5Profile", |
| 60 | ClassID: 16, |
| 61 | MessageTypes: mapset.NewSetWith( |
| 62 | Create, |
| 63 | Delete, |
| 64 | Get, |
| 65 | Set, |
| 66 | ), |
| 67 | AllowedAttributeMask: 0XE000, |
| 68 | AttributeDefinitions: AttributeDefinitionMap{ |
| 69 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 70 | 1: Uint16Field("MaxCpcsPduSize", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1), |
| 71 | 2: ByteField("AalMode", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 72 | 3: ByteField("SscsType", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3), |
| 73 | }, |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | // NewAal5Profile (class ID 16 creates the basic |
| 78 | // Managed Entity definition that is used to validate an ME of this type that |
| 79 | // is received from the wire, about to be sent on the wire. |
| 80 | func NewAal5Profile(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 81 | return NewManagedEntity(aal5profileBME, params...) |
| 82 | } |