blob: d6420dc7fb4724075e05c9c595169d7bd6c892c5 [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 PhysicalPathTerminationPointXdslUniPart1ClassId ClassID = ClassID(98)
25
26var physicalpathterminationpointxdslunipart1BME *ManagedEntityDefinition
27
28// PhysicalPathTerminationPointXdslUniPart1 (class ID #98)
29// This ME represents the point where physical paths terminate on an xDSL CO modem (xTU-C). The
30// xDSL ME family is used for ADSL VDSL2 and FAST services. A legacy family of VDSL MEs remains
31// valid for ITUT G.993.1 VDSL, if needed. It is documented in [ITUT G.983.2].
32//
33// The ONU automatically creates an instance of this ME per port:
34//
35// • when the ONU has xDSL ports built into its factory configuration;
36//
37// • when a cardholder is provisioned to expect a circuit pack of the xDSL type;
38//
39// • when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the xDSL
40// type. Note that the installation of a plug-and-play card may indicate the presence of xDSL ports
41// via equipment ID as well as its type, and indeed may cause the ONU to instantiate a port-mapping
42// package that specifies xDSL ports.
43//
44// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
45// expect an xDSL circuit pack, nor is it equipped with an xDSL circuit pack.
46//
47// Relationships
48// An instance of this ME is associated with each instance of a real or pre-provisioned xDSL port.
49//
50// Attributes
51// Managed Entity Id
52// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
53// number indicates the physical position of the UNI. The six LSBs of the first byte are the slot
54// ID, defined in clause 9.1.5. The two MSBs indicate the channel number in some of the implicitly
55// linked MEs, and must be 0 in the PPTP itself. This reduces the possible number of physical slots
56// to 64. The second byte is the port ID, with the range 1..255. (R) (mandatory) (2 bytes)
57//
58// Loopback Configuration
59// Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory) (1 byte)
60//
61// Administrative State
62// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
63// ME. Administrative state is further described in clause A.1.6. (R, W) (mandatory) (1 byte)
64//
65// Operational State
66// Operational state: This attribute indicates whether the ME is capable of performing its
67// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
68//
69// Xdsl Line Configuration Profile
70// xDSL line configuration profile: This attribute points to an instance of the xDSL line
71// configuration profiles (part 1, 2 and 3) MEs, and if necessary, also to VDSL2 line configuration
72// extensions (1 and 2) MEs, also to vectoring line configuration extension MEs. Upon ME
73// instantiation, the ONU sets this attribute to 0, a null pointer. (R, W) (mandatory) (2 bytes)
74//
75// Xdsl Subcarrier Masking Downstream Profile
76// xDSL subcarrier masking downstream profile: This attribute points to an instance of the xDSL
77// subcarrier masking downstream profile ME. Upon ME instantiation, the ONU sets this attribute to
78// 0, a null pointer. (R, W) (mandatory) (2 bytes)
79//
80// Xdsl Subcarrier Masking Upstream Profile
81// xDSL subcarrier masking upstream profile: This attribute points to an instance of the xDSL
82// subcarrier masking upstream profile ME. Upon ME instantiation, the ONU sets this attribute to 0,
83// a null pointer. (R, W) (mandatory) (2 bytes)
84//
85// Xdsl Downstream Power Spectral Density Psd Mask Profile
86// xDSL downstream power spectral density (PSD) mask profile: This attribute points to an instance
87// of the xDSL PSD mask profile ME that defines downstream parameters. Upon ME instantiation, the
88// ONU sets this attribute to 0, a null pointer. (R, W) (mandatory) (2 bytes)
89//
90// Xdsl Downstream Rfi Bands Profile
91// xDSL downstream RFI bands profile: This attribute points to an instance of the xDSL downstream
92// RFI bands profile ME. Upon ME instantiation, the ONU sets this attribute to 0, a null pointer.
93// (R, W) (mandatory) (2 bytes)
94//
95// Arc
96// ARC: See clause A.1.4.3. (R, W) (optional) (1 byte)
97//
98// Arc Interval
99// ARC interval: See clause A.1.4.3. (R, W) (optional) (1 byte)
100//
101// Modem Type
102// NOTE – Many newer VDSL2 chip sets support only PTM. The ATM default is retained for backward
103// compatibility, but implementers should be aware that the default may need to be overridden by
104// provisioning before the xDSL UNI can be brought into service.
105//
106// Upstream Psd Mask Profile
107// Upstream PSD mask profile: This attribute points to an instance of the xDSL PSD mask profile
108// that defines upstream parameters. Upon ME instantiation, the ONU sets this attribute to 0, a
109// null pointer. (R, W) (optional) (2 bytes)
110//
111// Network Specific Extensions Pointer
112// Network specific extensions pointer: This attribute points to a network address ME that contains
113// the path and name of a file containing network specific parameters for the associated UNI. Upon
114// ME instantiation, the ONU sets this attribute to 0xFFFF, a null pointer. (R, W) (optional)
115// (2 bytes)
116//
117type PhysicalPathTerminationPointXdslUniPart1 struct {
118 ManagedEntityDefinition
119 Attributes AttributeValueMap
120}
121
122func init() {
123 physicalpathterminationpointxdslunipart1BME = &ManagedEntityDefinition{
124 Name: "PhysicalPathTerminationPointXdslUniPart1",
125 ClassID: 98,
126 MessageTypes: mapset.NewSetWith(
127 Get,
128 Set,
129 ),
130 AllowedAttributeMask: 0XFFF8,
131 AttributeDefinitions: AttributeDefinitionMap{
132 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
133 1: ByteField("LoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
134 2: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
135 3: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 3),
136 4: Uint16Field("XdslLineConfigurationProfile", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
137 5: Uint16Field("XdslSubcarrierMaskingDownstreamProfile", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
138 6: Uint16Field("XdslSubcarrierMaskingUpstreamProfile", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 6),
139 7: Uint16Field("XdslDownstreamPowerSpectralDensityPsdMaskProfile", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
140 8: Uint16Field("XdslDownstreamRfiBandsProfile", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8),
141 9: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 9),
142 10: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
143 11: ByteField("ModemType", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
144 12: Uint16Field("UpstreamPsdMaskProfile", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
145 13: Uint16Field("NetworkSpecificExtensionsPointer", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
146 },
147 }
148}
149
150// NewPhysicalPathTerminationPointXdslUniPart1 (class ID 98 creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from the wire, about to be sent on the wire.
153func NewPhysicalPathTerminationPointXdslUniPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(physicalpathterminationpointxdslunipart1BME, params...)
155}