blob: 454a1269bfa5ec686e686c93fad2109d629eca56 [file] [log] [blame]
Chip Boling610117d2021-09-09 11:24:34 -05001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * 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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * 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
78func init() {
79 physicalpathterminationpointxdslunipart3BME = &ManagedEntityDefinition{
80 Name: "PhysicalPathTerminationPointXdslUniPart3",
81 ClassID: 427,
82 MessageTypes: mapset.NewSetWith(
83 Get,
84 Set,
85 ),
86 AllowedAttributeMask: 0xf000,
87 AttributeDefinitions: AttributeDefinitionMap{
88 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
89 1: Uint16Field("FastLineConfigurationProfile", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
90 2: Uint16Field("FastDataPathConfigurationProfile", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
91 3: Uint16Field("FastChannelConfigurationProfileForBearerChannel0Downstream", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
92 4: Uint16Field("FastXdslChannelConfigurationProfileForBearerChannel0Upstream", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
93 },
94 Access: CreatedByOnu,
95 Support: UnknownSupport,
96 }
97}
98
99// NewPhysicalPathTerminationPointXdslUniPart3 (class ID 427) creates the basic
100// Managed Entity definition that is used to validate an ME of this type that
101// is received from or transmitted to the OMCC.
102func NewPhysicalPathTerminationPointXdslUniPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
103 return NewManagedEntity(*physicalpathterminationpointxdslunipart3BME, params...)
104}