blob: 6be89c668649b0d00a299f5ca626d8d3d7a46945 [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
Matteo Scandolof9d43412021-01-12 11:11:34 -08005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandolof9d43412021-01-12 11:11:34 -08009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Matteo Scandolof9d43412021-01-12 11:11:34 -080011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/*
18 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// PhysicalPathTerminationPointXdslUniPart1ClassID is the 16-bit ID for the OMCI
29// Managed entity Physical path termination point xDSL UNI part 1
Andrea Campanella10426e22021-10-15 17:58:04 +020030const PhysicalPathTerminationPointXdslUniPart1ClassID = ClassID(98) // 0x0062
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var physicalpathterminationpointxdslunipart1BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// PhysicalPathTerminationPointXdslUniPart1 (Class ID: #98 / 0x0062)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// This ME represents the point where physical paths terminate on an xDSL CO modem (xTU-C). The
36// xDSL ME family is used for ADSL VDSL2 and FAST services. A legacy family of VDSL MEs remains
37// valid for ITUT G.993.1 VDSL, if needed. It is documented in [ITUT G.983.2].
38//
39// The ONU automatically creates an instance of this ME per port:
40//
41// o when the ONU has xDSL ports built into its factory configuration;
42//
43// o when a cardholder is provisioned to expect a circuit pack of the xDSL type;
44//
45// o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the xDSL
46// type. Note that the installation of a plug-and-play card may indicate the presence of xDSL ports
47// via equipment ID as well as its type, and indeed may cause the ONU to instantiate a port-mapping
48// package that specifies xDSL ports.
49//
50// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
51// expect an xDSL circuit pack, nor is it equipped with an xDSL circuit pack.
52//
53// Relationships
54// An instance of this ME is associated with each instance of a real or pre-provisioned xDSL port.
55//
56// Attributes
57// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020058// This attribute uniquely identifies each instance of this ME. This 2 byte number indicates the
59// physical position of the UNI. The six LSBs of the first byte are the slot ID, defined in clause
60// 9.1.5. The two MSBs indicate the channel number in some of the implicitly linked MEs, and must
61// be 0 in the PPTP itself. This reduces the possible number of physical slots to 64. The second
62// byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080063//
64// Loopback Configuration
Andrea Campanella10426e22021-10-15 17:58:04 +020065// This attribute represents the loopback configuration of this physical interface.
66//
67// 0 No loopback
68//
69// 1 Loopback2 - a loopback at the ONU towards the OLT. The OLT can execute a physical level
70// loopback test after loopback2 is set.
71//
Matteo Scandolof9d43412021-01-12 11:11:34 -080072// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
73//
74// Administrative State
Andrea Campanella10426e22021-10-15 17:58:04 +020075// This attribute locks (1) and unlocks (0) the functions performed by this ME. Administrative
76// state is further described in clause A.1.6. (R,-W) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080077//
78// Operational State
Andrea Campanella10426e22021-10-15 17:58:04 +020079// This attribute indicates whether the ME is capable of performing its function. Valid values are
80// enabled (0) and disabled (1). (R) (optional) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080081//
82// Xdsl Line Configuration Profile
Andrea Campanella10426e22021-10-15 17:58:04 +020083// This attribute points to an instance of the xDSL line configuration profiles (part 1, 2 and 3)
84// MEs, and if necessary, also to VDSL2 line configuration extensions (1 and 2) MEs, also to
85// vectoring line configuration extension MEs. Upon ME instantiation, the ONU sets this attribute
86// to 0, a null pointer. (R,-W) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080087//
88// Xdsl Subcarrier Masking Downstream Profile
Andrea Campanella10426e22021-10-15 17:58:04 +020089// This attribute points to an instance of the xDSL subcarrier masking downstream profile ME. Upon
90// ME instantiation, the ONU sets this attribute to 0, a null pointer. (R,-W) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080091//
92// Xdsl Subcarrier Masking Upstream Profile
Andrea Campanella10426e22021-10-15 17:58:04 +020093// This attribute points to an instance of the xDSL subcarrier masking upstream profile ME. Upon ME
94// instantiation, the ONU sets this attribute to 0, a null pointer. (R,-W) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080095//
96// Xdsl Downstream Power Spectral Density Psd Mask Profile
97// xDSL downstream power spectral density (PSD) mask profile: This attribute points to an instance
98// of the xDSL PSD mask profile ME that defines downstream parameters. Upon ME instantiation, the
99// ONU sets this attribute to 0, a null pointer. (R,-W) (mandatory) (2-bytes)
100//
101// Xdsl Downstream Rfi Bands Profile
Andrea Campanella10426e22021-10-15 17:58:04 +0200102// This attribute points to an instance of the xDSL downstream RFI bands profile ME. Upon ME
103// instantiation, the ONU sets this attribute to 0, a null pointer. (R,-W) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800104//
105// Arc
Andrea Campanella10426e22021-10-15 17:58:04 +0200106// See clause A.1.4.3. (R,-W) (optional) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800107//
108// Arc Interval
Andrea Campanella10426e22021-10-15 17:58:04 +0200109// See clause A.1.4.3. (R,-W) (optional) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800110//
111// Modem Type
Andrea Campanella10426e22021-10-15 17:58:04 +0200112// This attribute specifies the modem type. If the hardware cannot support the requested modem
113// type, the ONU should deny the provisioning command. For backward compatibility, the attribute is
114// optional, with a default of ATM.
115//
116// 0 undefined
117//
118// 1 ATM (default)
119//
120// 2 PTM (Ethernet)
121//
122// (R,-W) (optional) (1-byte)
123//
Matteo Scandolof9d43412021-01-12 11:11:34 -0800124// NOTE - Many newer VDSL2 chip sets support only PTM. The ATM default is retained for backward
125// compatibility, but implementers should be aware that the default may need to be overridden by
126// provisioning before the xDSL UNI can be brought into service.
127//
128// Upstream Psd Mask Profile
Andrea Campanella10426e22021-10-15 17:58:04 +0200129// This attribute points to an instance of the xDSL PSD mask profile that defines upstream
130// parameters. Upon ME instantiation, the ONU sets this attribute to 0, a null pointer. (R,-W)
131// (optional) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800132//
133// Network Specific Extensions Pointer
Andrea Campanella10426e22021-10-15 17:58:04 +0200134// This attribute points to a network address ME that contains the path and name of a file
135// containing network specific parameters for the associated UNI. Upon ME instantiation, the ONU
136// sets this attribute to 0xFFFF, a null pointer. (R,-W) (optional) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800137//
138type PhysicalPathTerminationPointXdslUniPart1 struct {
139 ManagedEntityDefinition
140 Attributes AttributeValueMap
141}
142
Elia Battiston9bfe1102022-02-03 10:38:03 +0100143// Attribute name constants
144
145const PhysicalPathTerminationPointXdslUniPart1_LoopbackConfiguration = "LoopbackConfiguration"
146const PhysicalPathTerminationPointXdslUniPart1_AdministrativeState = "AdministrativeState"
147const PhysicalPathTerminationPointXdslUniPart1_OperationalState = "OperationalState"
148const PhysicalPathTerminationPointXdslUniPart1_XdslLineConfigurationProfile = "XdslLineConfigurationProfile"
149const PhysicalPathTerminationPointXdslUniPart1_XdslSubcarrierMaskingDownstreamProfile = "XdslSubcarrierMaskingDownstreamProfile"
150const PhysicalPathTerminationPointXdslUniPart1_XdslSubcarrierMaskingUpstreamProfile = "XdslSubcarrierMaskingUpstreamProfile"
151const PhysicalPathTerminationPointXdslUniPart1_XdslDownstreamPowerSpectralDensityPsdMaskProfile = "XdslDownstreamPowerSpectralDensityPsdMaskProfile"
152const PhysicalPathTerminationPointXdslUniPart1_XdslDownstreamRfiBandsProfile = "XdslDownstreamRfiBandsProfile"
153const PhysicalPathTerminationPointXdslUniPart1_Arc = "Arc"
154const PhysicalPathTerminationPointXdslUniPart1_ArcInterval = "ArcInterval"
155const PhysicalPathTerminationPointXdslUniPart1_ModemType = "ModemType"
156const PhysicalPathTerminationPointXdslUniPart1_UpstreamPsdMaskProfile = "UpstreamPsdMaskProfile"
157const PhysicalPathTerminationPointXdslUniPart1_NetworkSpecificExtensionsPointer = "NetworkSpecificExtensionsPointer"
158
Matteo Scandolof9d43412021-01-12 11:11:34 -0800159func init() {
160 physicalpathterminationpointxdslunipart1BME = &ManagedEntityDefinition{
161 Name: "PhysicalPathTerminationPointXdslUniPart1",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100162 ClassID: PhysicalPathTerminationPointXdslUniPart1ClassID,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800163 MessageTypes: mapset.NewSetWith(
164 Get,
165 Set,
166 ),
167 AllowedAttributeMask: 0xfff8,
168 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100169 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
170 1: ByteField(PhysicalPathTerminationPointXdslUniPart1_LoopbackConfiguration, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
171 2: ByteField(PhysicalPathTerminationPointXdslUniPart1_AdministrativeState, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
172 3: ByteField(PhysicalPathTerminationPointXdslUniPart1_OperationalState, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), true, true, false, 3),
173 4: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_XdslLineConfigurationProfile, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
174 5: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_XdslSubcarrierMaskingDownstreamProfile, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
175 6: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_XdslSubcarrierMaskingUpstreamProfile, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
176 7: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_XdslDownstreamPowerSpectralDensityPsdMaskProfile, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
177 8: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_XdslDownstreamRfiBandsProfile, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
178 9: ByteField(PhysicalPathTerminationPointXdslUniPart1_Arc, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), true, true, false, 9),
179 10: ByteField(PhysicalPathTerminationPointXdslUniPart1_ArcInterval, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
180 11: ByteField(PhysicalPathTerminationPointXdslUniPart1_ModemType, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
181 12: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_UpstreamPsdMaskProfile, UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
182 13: Uint16Field(PhysicalPathTerminationPointXdslUniPart1_NetworkSpecificExtensionsPointer, UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800183 },
184 Access: CreatedByOnu,
185 Support: UnknownSupport,
186 Alarms: AlarmMap{
187 0: "NE LOF",
188 1: "NE LOS",
189 2: "NE LOL",
190 3: "NE LPR",
191 4: "Card alm",
192 5: "FE LOF",
193 6: "FE LOS",
194 7: "FE LOL",
195 8: "FE LPR",
196 9: "DRT up",
197 10: "DRT down",
198 11: "LINIT",
199 12: "LCD",
200 13: "NCD",
201 14: "LCD-FE",
202 15: "NCD-FE",
203 16: "File not found",
204 17: "OOS",
205 18: "OOS-FE",
206 19: "LOR",
207 20: "LOM",
208 21: "LOR-FE",
209 22: "LOM-FE",
210 },
211 }
212}
213
214// NewPhysicalPathTerminationPointXdslUniPart1 (class ID 98) creates the basic
215// Managed Entity definition that is used to validate an ME of this type that
216// is received from or transmitted to the OMCC.
217func NewPhysicalPathTerminationPointXdslUniPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
218 return NewManagedEntity(*physicalpathterminationpointxdslunipart1BME, params...)
219}