blob: 50251f8fa47ec60b6beec59522f25845918bd821 [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 CesServiceProfileClassId ClassID = ClassID(21)
25
26var cesserviceprofileBME *ManagedEntityDefinition
27
28// CesServiceProfile (class ID #21)
29// NOTE – In [ITU-T G.984.4], this ME is called a CES service profile-G.
30//
31// An instance of this ME organizes data that describe the CES service functions of the ONU.
32// Instances of this ME are created and deleted by the OLT.
33//
34// Relationships
35// An instance of this ME may be associated with zero or more instances of a GEM IW 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// Ces Buffered Cdv Tolerance
43// CES buffered CDV tolerance: This attribute represents the duration of user data that must be
44// buffered by the CES IW entity to offset packet delay variation. It is expressed in 10 µs
45// increments. 75 (750 μs) is suggested as a default value. (R, W, setbycreate) (mandatory)
46// (2 bytes)
47//
48// Channel Associated Signalling Cas
49// (R, W, setbycreate) (optional) (1 byte)
50//
51type CesServiceProfile struct {
52 ManagedEntityDefinition
53 Attributes AttributeValueMap
54}
55
56func init() {
57 cesserviceprofileBME = &ManagedEntityDefinition{
58 Name: "CesServiceProfile",
59 ClassID: 21,
60 MessageTypes: mapset.NewSetWith(
61 Create,
62 Delete,
63 Get,
64 Set,
65 ),
66 AllowedAttributeMask: 0XC000,
67 AttributeDefinitions: AttributeDefinitionMap{
68 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
69 1: Uint16Field("CesBufferedCdvTolerance", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
70 2: ByteField("ChannelAssociatedSignallingCas", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 2),
71 },
72 }
73}
74
75// NewCesServiceProfile (class ID 21 creates the basic
76// Managed Entity definition that is used to validate an ME of this type that
77// is received from the wire, about to be sent on the wire.
78func NewCesServiceProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
79 return NewManagedEntity(cesserviceprofileBME, params...)
80}