blob: f8c206462349b28f07316b431d09ad211cbcde67 [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 TwdmChannelManagedEntityClassId ClassID = ClassID(443)
25
26var twdmchannelmanagedentityBME *ManagedEntityDefinition
27
28// TwdmChannelManagedEntity (class ID #443)
29// This ME provides an anchor for the MEs involved in collection of PM statistics per TWDM channel,
30// as stipulated by clause 14 of [ITU-T G.989.3]. Instances of this ME are instantiated
31// autonomously by the ONU.
32//
33// Relationships
34// One or more instances of this ME are implicitly associated with the TWDM System profile ME. The
35// number of instances created is announced by the total TWDM channel number attribute of the TWDM
36// system profile ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
41// number is represented as 0xSSBB, where SS indicates the ONU slot ID, and BB is the TWDM channel
42// ME number assigned by the ONU itself, starting from 0 in the ascending order. (R) (mandatory)
43// (2 bytes)
44//
45// Active Channel Indication
46// Active channel indication: The default value is false. The ONU sets the attribute to true when
47// it receives the Channel_Profile PLOAM messages for that channel. The ONU clears the attribute
48// when it receives the Channel_Profile PLOAM message marked “void” for that channel. (R)
49// (mandatory) (1 byte)
50//
51// Operational Channel Indication
52// Operational channel indication: A Boolean attribute that is set to true for an active TWDM
53// channel in which the ONT is currently operating. The operational statistic is accumulated in the
54// PM history data MEs associated with that TWDM channel. (R) (mandatory) (1 byte)
55//
56// Downstream Wavelength Channel
57// Downstream wavelength channel: For an active TWDM channel, this attribute identifies the
58// downstream wavelength channel in reference to Table 11-2 of [ITU-T G.989.2]. For an inactive
59// channel it has value 0xFF. (R) (mandatory) (1 byte)
60//
61// Upstream Wavelength Channel
62// Upstream wavelength channel: For an active TWDM channel, this attribute identifies the upstream
63// wavelength channel in reference to Table VIII-5 of [ITU-T G.989.2]. For an inactive channel its
64// value of 0xFF. (R) (mandatory) (1 byte)
65//
66type TwdmChannelManagedEntity struct {
67 ManagedEntityDefinition
68 Attributes AttributeValueMap
69}
70
71func init() {
72 twdmchannelmanagedentityBME = &ManagedEntityDefinition{
73 Name: "TwdmChannelManagedEntity",
74 ClassID: 443,
75 MessageTypes: mapset.NewSetWith(
76 Get,
77 ),
78 AllowedAttributeMask: 0XF000,
79 AttributeDefinitions: AttributeDefinitionMap{
80 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
81 1: ByteField("ActiveChannelIndication", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
82 2: ByteField("OperationalChannelIndication", 0, mapset.NewSetWith(Read), false, false, false, false, 2),
83 3: ByteField("DownstreamWavelengthChannel", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
84 4: ByteField("UpstreamWavelengthChannel", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
85 },
86 }
87}
88
89// NewTwdmChannelManagedEntity (class ID 443 creates the basic
90// Managed Entity definition that is used to validate an ME of this type that
91// is received from the wire, about to be sent on the wire.
92func NewTwdmChannelManagedEntity(params ...ParamData) (*ManagedEntity, OmciErrors) {
93 return NewManagedEntity(twdmchannelmanagedentityBME, params...)
94}