blob: da84b210c93d6c0d8d703422f20a4b9d928cb97b [file] [log] [blame]
Andrea Campanella10426e22021-10-15 17:58:04 +02001/*
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 *
Andrea Campanella10426e22021-10-15 17:58:04 +02005 * 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 *
Andrea Campanella10426e22021-10-15 17:58:04 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Andrea Campanella10426e22021-10-15 17:58:04 +020011 * 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// PhysicalPathTerminationPointXdslUniPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity Physical path termination point xDSL UNI part 3
30const PhysicalPathTerminationPointXdslUniPart3ClassID = ClassID(427) // 0x01ab
31
32var physicalpathterminationpointxdslunipart3BME *ManagedEntityDefinition
33
34// PhysicalPathTerminationPointXdslUniPart3 (Class ID: #427 / 0x01ab)
35// This ME represents the point in the ONU where physical paths terminate on an xDSL CO modem
36// (xTU-C). Standards and chip sets support several forms of DSL, including VDSL2 and FAST, and the
37// xDSL ME family is used for all of them, with specific extensions for technology variations.
38//
39// The ONU creates or deletes an instance of this ME at the same time it creates or deletes the
40// corresponding PPTP xDSL UNI part 1.
41//
42// Relationships
43// An instance of this ME is associated with each instance of a real or preprovisioned xDSL port
44//
45// Attributes
46// Managed Entity Id
47// This attribute uniquely identifies each instance of this ME. This 2 byte number indicates the
48// physical position of the UNI. The six LSBs of the first byte are the slot ID, defined in clause
49// 9.1.5. The two MSBs indicate the channel number in some of the implicitly linked MEs, and must
50// be 0 in the PPTP itself. This reduces the possible number of physical slots to 64. The second
51// byte is the port ID, with range 1..255. (R) (mandatory) (2 bytes)
52//
53// Fast Line Configuration Profile
54// This attribute points to an instance of the FAST line configuration profiles (part 1, 2, 3 and
55// 4) MEs, also to FAST vectoring line configuration extension MEs. Upon ME instantiation, the ONU
56// sets this attribute to 0, a null pointer. (R, W) (mandatory) (2 bytes)
57//
58// Fast Data Path Configuration Profile
59// This attribute points to an instance of the FAST data configuration profile that defines data
60// path parameters. Upon ME instantiation, the ONU sets this attribute to 0, a null pointer. (R, W)
61// (optional) (2 bytes)
62//
63// Fast Channel Configuration Profile For Bearer Channel 0 Downstream
64// This attribute points to an instance of the FAST channel configuration profile that defines
65// channel parameters. Upon ME instantiation, the ONU sets this attribute to 0, a null pointer.
66// (R,-W) (optional) (2-bytes) (R,-W) (optional) (2-bytes)
67//
68// Fast Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream
69// This attribute points to an instance of the FAST channel configuration profile that defines
70// channel parameters. Upon ME instantiation, the ONU sets this attribute to 0, a null pointer
71// (R,-W) (optional) (2-bytes)
72//
73type PhysicalPathTerminationPointXdslUniPart3 struct {
74 ManagedEntityDefinition
75 Attributes AttributeValueMap
76}
77
Elia Battiston9bfe1102022-02-03 10:38:03 +010078// Attribute name constants
79
80const PhysicalPathTerminationPointXdslUniPart3_FastLineConfigurationProfile = "FastLineConfigurationProfile"
81const PhysicalPathTerminationPointXdslUniPart3_FastDataPathConfigurationProfile = "FastDataPathConfigurationProfile"
82const PhysicalPathTerminationPointXdslUniPart3_FastChannelConfigurationProfileForBearerChannel0Downstream = "FastChannelConfigurationProfileForBearerChannel0Downstream"
83const PhysicalPathTerminationPointXdslUniPart3_FastXdslChannelConfigurationProfileForBearerChannel0Upstream = "FastXdslChannelConfigurationProfileForBearerChannel0Upstream"
84
Andrea Campanella10426e22021-10-15 17:58:04 +020085func init() {
86 physicalpathterminationpointxdslunipart3BME = &ManagedEntityDefinition{
87 Name: "PhysicalPathTerminationPointXdslUniPart3",
Elia Battiston9bfe1102022-02-03 10:38:03 +010088 ClassID: PhysicalPathTerminationPointXdslUniPart3ClassID,
Andrea Campanella10426e22021-10-15 17:58:04 +020089 MessageTypes: mapset.NewSetWith(
90 Get,
91 Set,
92 ),
93 AllowedAttributeMask: 0xf000,
94 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +010095 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
96 1: Uint16Field(PhysicalPathTerminationPointXdslUniPart3_FastLineConfigurationProfile, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
97 2: Uint16Field(PhysicalPathTerminationPointXdslUniPart3_FastDataPathConfigurationProfile, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
98 3: Uint16Field(PhysicalPathTerminationPointXdslUniPart3_FastChannelConfigurationProfileForBearerChannel0Downstream, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
99 4: Uint16Field(PhysicalPathTerminationPointXdslUniPart3_FastXdslChannelConfigurationProfileForBearerChannel0Upstream, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
Andrea Campanella10426e22021-10-15 17:58:04 +0200100 },
101 Access: CreatedByOnu,
102 Support: UnknownSupport,
103 }
104}
105
106// NewPhysicalPathTerminationPointXdslUniPart3 (class ID 427) creates the basic
107// Managed Entity definition that is used to validate an ME of this type that
108// is received from or transmitted to the OMCC.
109func NewPhysicalPathTerminationPointXdslUniPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
110 return NewManagedEntity(*physicalpathterminationpointxdslunipart3BME, params...)
111}