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