blob: a2f7f05600dfd9b87477831a04d6a809e19f3511 [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// PhysicalPathTerminationPointCesUniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point CES UNI
27const PhysicalPathTerminationPointCesUniClassID ClassID = ClassID(12)
28
29var physicalpathterminationpointcesuniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointCesUni (class ID #12)
32// This ME represents the point at a CES UNI in the ONU where the physical path terminates and
33// physical level functions are performed.
34//
35// The ONU automatically creates an instance of this ME per port:
36//
37// o when the ONU has CES ports built into its factory configuration;
38//
39// o when a cardholder is provisioned to expect a circuit pack of a CES type;
40//
41// o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of a CES type.
42// Note that the installation of a plug-and-play card may indicate the presence of CES ports via
43// equipment ID as well as its type and indeed may cause the ONU to instantiate a port-mapping
44// package that specifies CES ports.
45//
46// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
47// expect a CES circuit pack, nor is it equipped with a CES circuit pack.
48//
49// Relationships
50// An instance of this ME is associated with each real or pre-provisioned CES port. It can be
51// linked from a GEM IW TP, a pseudowire TP or a logical N * 64 kbit/s CTP.
52//
53// Attributes
54// Managed Entity Id
55// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
56// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
57// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
58//
59// Expected Type
60// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
61//
62// Sensed Type
63// Sensed type: If the value of expected type is not 0, then the value of sensed type equals the
64// value of expected type. If expected type-= 0, then the value of sensed type is one of the
65// compatible values from Table-9.1.5-1. Upon ME instantiation, the ONU sets this attribute to 0 or
66// to the value that reflects the physically present equipment. (R) (mandatory if the ONU supports
67// circuit packs with configurable interface types, e.g., C1.5/2/6.3) (1-byte)
68//
69// Ces Loopback Configuration
70// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
71//
72// Administrative State
73// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
74// ME. Administrative state is further described in clause A.1.6. (R,-W) (mandatory) (1-byte)
75//
76// Operational State
77// Operational state: This attribute indicates whether the ME is capable of performing its
78// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
79//
80// Framing
81// Upon ME instantiation, the ONU sets this attribute to a value that reflects the vendor's
82// default. (R,-W) (optional) (1-byte)
83//
84// Encoding
85// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory for DS1 and DS3
86// interfaces) (1-byte)
87//
88// Line Length
89// Line length: This attribute specifies the length of the twisted pair cable from a DS1 physical
90// UNI to the DSX-1 cross-connect point or the length of coaxial cable from a DS3 physical UNI to
91// the DSX-3 cross-connect point. Valid values are given in Table 9.8.1-1. Upon ME instantiation
92// for a DS1 interface, the ONU assigns the value 0 for non-power feed type DS1 and the value 6 for
93// power feed type DS1. Upon ME instantiation for a DS3 interface, the ONU sets this attribute to
94// 0x0F. (R,-W) (optional) (1-byte)
95//
96// Ds1 Mode
97// In the event of conflicting values between this attribute and the (also optional) line length
98// attribute, the line length attribute is taken to be valid. This permits the separation of line
99// build-out (LBO) and power settings from smart jack and FDL behaviour. Upon ME instantiation, the
100// ONU sets this attribute to 0. (R,-W) (optional) (1-byte)
101//
102// Arc
103// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
104//
105// Arc Interval
106// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
107//
108// Line Type
109// (R,-W) (mandatory for DS3, E3 and multi-configuration interfaces, not applicable to other
110// interfaces) (1-byte)
111//
112type PhysicalPathTerminationPointCesUni struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 physicalpathterminationpointcesuniBME = &ManagedEntityDefinition{
119 Name: "PhysicalPathTerminationPointCesUni",
120 ClassID: 12,
121 MessageTypes: mapset.NewSetWith(
122 Get,
123 Set,
124 ),
125 AllowedAttributeMask: 0xfff0,
126 AttributeDefinitions: AttributeDefinitionMap{
127 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
128 1: ByteField("ExpectedType", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
129 2: ByteField("SensedType", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, false, false, 2),
130 3: ByteField("CesLoopbackConfiguration", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), true, false, false, 3),
131 4: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
132 5: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), true, true, false, 5),
133 6: ByteField("Framing", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
134 7: ByteField("Encoding", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
135 8: ByteField("LineLength", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8),
136 9: ByteField("Ds1Mode", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9),
137 10: ByteField("Arc", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), true, true, false, 10),
138 11: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
139 12: ByteField("LineType", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, false, false, 12),
140 },
141 Access: CreatedByOnu,
142 Support: UnknownSupport,
143 }
144}
145
146// NewPhysicalPathTerminationPointCesUni (class ID 12) creates the basic
147// Managed Entity definition that is used to validate an ME of this type that
148// is received from or transmitted to the OMCC.
149func NewPhysicalPathTerminationPointCesUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
150 return NewManagedEntity(*physicalpathterminationpointcesuniBME, params...)
151}