blob: 9287fdfa18c9249af5c59a299ff2ae3910078310 [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 PhysicalPathTerminationPointLctUniClassId ClassID = ClassID(83)
25
26var physicalpathterminationpointlctuniBME *ManagedEntityDefinition
27
28// PhysicalPathTerminationPointLctUni (class ID #83)
29// This ME models debug access to the ONU from any physical or logical port, for example, via a
30// dedicated LCT UNI, via ordinary subscriber UNIs, or via the IP host config ME.
31//
32// The ONU automatically creates an instance of this ME per port:
33//
34// • when the ONU has an LCT port built into its factory configuration;
35//
36// • when a cardholder is provisioned to expect a circuit pack of the LCT type;
37//
38// • when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the LCT
39// type;
40//
41// NOTE – The installation of a plug-and-play card may indicate the presence of LCT ports via
42// equipment ID as well as its type, and indeed may cause the ONU to instantiate a port-mapping
43// package that specifies LCT ports.
44//
45// • when the ONU supports debug access through some other physical or logical means.
46//
47// The ONU automatically deletes an instance of this ME when a cardholder is neither provisioned to
48// expect an LCT circuit pack, nor is it equipped with an LCT circuit pack, or if the ONU is
49// reconfigured in such a way that it no longer supports debug access.
50//
51// LCT instances are not reported during an MIB upload.
52//
53// Relationships
54// An instance of this ME is associated with an instance of a real or virtual circuit pack ME
55// classified as an LCT type. An instance of this ME may also be associated with the ONU as a
56// whole, if the ONU supports debug access through means other than a dedicated physical LCT port.
57//
58// Attributes
59// Managed Entity Id
60// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
61// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
62// clause 9.1.5). The second byte is the port ID, with the range 1..255. If the LCT UNI is
63// associated with the ONU as a whole, its ME ID should be 0. (R) (mandatory) (2 bytes)
64//
65// Administrative State
66// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
67// ME. Administrative state is described generically in clause A.1.6. The LCT has additional
68// administrative state behaviour. When the administrative state is set to lock, debug access
69// through all physical or logical means is blocked, except that the operation of a possible ONU
70// remote debug ME is not affected. Administrative lock of ME instance 0 overrides administrative
71// lock of any other PPTP LCT UNIs that may exist. (R, W) (mandatory) (1 byte)
72//
73type PhysicalPathTerminationPointLctUni struct {
74 ManagedEntityDefinition
75 Attributes AttributeValueMap
76}
77
78func init() {
79 physicalpathterminationpointlctuniBME = &ManagedEntityDefinition{
80 Name: "PhysicalPathTerminationPointLctUni",
81 ClassID: 83,
82 MessageTypes: mapset.NewSetWith(
83 Get,
84 Set,
85 ),
86 AllowedAttributeMask: 0X8000,
87 AttributeDefinitions: AttributeDefinitionMap{
88 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
89 1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
90 },
91 }
92}
93
94// NewPhysicalPathTerminationPointLctUni (class ID 83 creates the basic
95// Managed Entity definition that is used to validate an ME of this type that
96// is received from the wire, about to be sent on the wire.
97func NewPhysicalPathTerminationPointLctUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
98 return NewManagedEntity(physicalpathterminationpointlctuniBME, params...)
99}