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