blob: 2b46de73e5b38a05704991f5b9b079273c7e1650 [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 EquipmentExtensionPackageClassId ClassID = ClassID(160)
25
26var equipmentextensionpackageBME *ManagedEntityDefinition
27
28// EquipmentExtensionPackage (class ID #160)
29// This ME supports optional extensions to circuit pack MEs. If the circuit pack supports these
30// features, the ONU creates and deletes this ME along with its associated real or virtual circuit
31// pack.
32//
33// Relationships
34// An equipment extension package may be contained by an ONU-G or cardholder.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
39// identical ID, this ME is implicitly linked to an instance of the ONU-G or cardholder. (R)
40// (mandatory) (2 bytes)
41//
42// Environmental Sense
43// NOTE – Some specific sense point applications are already defined on the ONU-G ME. It is the
44// vendor's choice how to configure and report sense points that appear both generically and
45// specifically.
46//
47// Contact Closure Output
48// On read, the left bit in each pair should be set to 0 at the ONU and ignored at the OLT. The
49// right bit indicates a released output point with 0 and an operated contact point with 1. (R, W)
50// (optional) (2 bytes)
51//
52type EquipmentExtensionPackage struct {
53 ManagedEntityDefinition
54 Attributes AttributeValueMap
55}
56
57func init() {
58 equipmentextensionpackageBME = &ManagedEntityDefinition{
59 Name: "EquipmentExtensionPackage",
60 ClassID: 160,
61 MessageTypes: mapset.NewSetWith(
62 Get,
63 Set,
64 ),
65 AllowedAttributeMask: 0XC000,
66 AttributeDefinitions: AttributeDefinitionMap{
67 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
68 1: Uint16Field("EnvironmentalSense", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 1),
69 2: Uint16Field("ContactClosureOutput", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 2),
70 },
71 }
72}
73
74// NewEquipmentExtensionPackage (class ID 160 creates the basic
75// Managed Entity definition that is used to validate an ME of this type that
76// is received from the wire, about to be sent on the wire.
77func NewEquipmentExtensionPackage(params ...ParamData) (*ManagedEntity, OmciErrors) {
78 return NewManagedEntity(equipmentextensionpackageBME, params...)
79}