blob: 47eabb237d6e29e45c26344dfa5fe06838db5ef6 [file] [log] [blame]
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
const PhysicalPathTerminationPointXdslUniPart2ClassId ClassID = ClassID(99)
var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition
// PhysicalPathTerminationPointXdslUniPart2 (class ID #99)
// This ME represents the point in the ONU where physical paths terminate on an xDSL CO modem
// (xTU-C). Standards and chip sets support several forms of DSL, including VDSL2, and the xDSL ME
// family is used for all of them, with specific extensions for technology variations.
//
// The ONU creates or deletes an instance of this ME at the same time it creates or deletes the
// corresponding PPTP xDSL UNI part 1.
//
// Relationships
// An instance of this ME is associated with each instance of a PPTP xDSL UNI part 1.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
// (mandatory) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream
// xDSL channel configuration profile for bearer channel 0 downstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream
// xDSL channel configuration profile for bearer channel 1 downstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream
// xDSL channel configuration profile for bearer channel 2 downstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream
// xDSL channel configuration profile for bearer channel 3 downstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream
// xDSL channel configuration profile for bearer channel 0 upstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream
// xDSL channel configuration profile for bearer channel 1 upstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream
// xDSL channel configuration profile for bearer channel 2 upstream: (R, W) (optional) (2 bytes)
//
// Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream
// xDSL channel configuration profile for bearer channel 3 upstream: (R, W) (optional) (2 bytes)
//
type PhysicalPathTerminationPointXdslUniPart2 struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{
Name: "PhysicalPathTerminationPointXdslUniPart2",
ClassID: 99,
MessageTypes: mapset.NewSetWith(
Get,
Set,
),
AllowedAttributeMask: 0XFF00,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
1: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 1),
2: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 2),
3: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 3),
4: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
5: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 5),
6: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
7: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
8: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
},
}
}
// NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99 creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from the wire, about to be sent on the wire.
func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(physicalpathterminationpointxdslunipart2BME, params...)
}