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