blob: 6aca5a12b0c88a039e4a1326b4a711e83284bc9f [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
David K. Bainbridgeadf422d2021-04-09 16:06:41 +000017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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// PhysicalPathTerminationPointXdslUniPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity Physical path termination point xDSL UNI part 2
Chip Boling610117d2021-09-09 11:24:34 -050030const PhysicalPathTerminationPointXdslUniPart2ClassID = ClassID(99) // 0x0063
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// PhysicalPathTerminationPointXdslUniPart2 (Class ID: #99 / 0x0063)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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 the xDSL ME
37// 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 PPTP xDSL UNI part 1.
44//
45// Attributes
46// Managed Entity Id
Chip Boling610117d2021-09-09 11:24:34 -050047// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
48// implicitly linked to an instance of the PPTP xDSL UNI part 1. (R) (mandatory) (2-bytes)
49//
50// Each of the following eight attributes is a pointer to an xDSL channel configuration profile ME.
51// In each case, the default value 0, set when the ME is auto-created, is a null pointer.
Chip Boling6e27b352020-02-14 09:10:01 -060052//
53// Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream
Chip Boling610117d2021-09-09 11:24:34 -050054// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060055//
56// Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream
Chip Boling610117d2021-09-09 11:24:34 -050057// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060058//
59// Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream
Chip Boling610117d2021-09-09 11:24:34 -050060// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060061//
62// Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream
Chip Boling610117d2021-09-09 11:24:34 -050063// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060064//
65// Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream
Chip Boling610117d2021-09-09 11:24:34 -050066// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060067//
68// Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream
Chip Boling610117d2021-09-09 11:24:34 -050069// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060070//
71// Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream
Chip Boling610117d2021-09-09 11:24:34 -050072// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060073//
74// Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream
Chip Boling610117d2021-09-09 11:24:34 -050075// (R,-W) (optional) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060076//
77type PhysicalPathTerminationPointXdslUniPart2 struct {
78 ManagedEntityDefinition
79 Attributes AttributeValueMap
80}
81
82func init() {
83 physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{
84 Name: "PhysicalPathTerminationPointXdslUniPart2",
85 ClassID: 99,
86 MessageTypes: mapset.NewSetWith(
87 Get,
88 Set,
89 ),
90 AllowedAttributeMask: 0xff00,
91 AttributeDefinitions: AttributeDefinitionMap{
92 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
93 1: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Downstream", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1),
94 2: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Downstream", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
95 3: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Downstream", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
96 4: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Downstream", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
97 5: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Upstream", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
98 6: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Upstream", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
99 7: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Upstream", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, true, false, 7),
100 8: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Upstream", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8),
101 },
102 Access: CreatedByOnu,
103 Support: UnknownSupport,
104 }
105}
106
107// NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99) creates the basic
108// Managed Entity definition that is used to validate an ME of this type that
109// is received from or transmitted to the OMCC.
110func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
111 return NewManagedEntity(*physicalpathterminationpointxdslunipart2BME, params...)
112}