blob: 894c40ae80fdcad3152889907df8d019eda096fa [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// PhysicalPathTerminationPointXdslUniPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity Physical path termination point xDSL UNI part 2
30const PhysicalPathTerminationPointXdslUniPart2ClassID ClassID = ClassID(99)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition
33
34// PhysicalPathTerminationPointXdslUniPart2 (class ID #99)
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 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
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
48// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080049// (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070050//
51// Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080052// xDSL channel configuration profile for bearer channel 0 downstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070053//
54// Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080055// xDSL channel configuration profile for bearer channel 1 downstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070056//
57// Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080058// xDSL channel configuration profile for bearer channel 2 downstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070059//
60// Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080061// xDSL channel configuration profile for bearer channel 3 downstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070062//
63// Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080064// xDSL channel configuration profile for bearer channel 0 upstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070065//
66// Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080067// xDSL channel configuration profile for bearer channel 1 upstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070068//
69// Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// xDSL channel configuration profile for bearer channel 2 upstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
72// Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080073// xDSL channel configuration profile for bearer channel 3 upstream: (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070074//
75type PhysicalPathTerminationPointXdslUniPart2 struct {
76 ManagedEntityDefinition
77 Attributes AttributeValueMap
78}
79
80func init() {
81 physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{
82 Name: "PhysicalPathTerminationPointXdslUniPart2",
83 ClassID: 99,
84 MessageTypes: mapset.NewSetWith(
85 Get,
86 Set,
87 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080088 AllowedAttributeMask: 0xff00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070089 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080090 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
91 1: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Downstream", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1),
92 2: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Downstream", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
93 3: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Downstream", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
94 4: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Downstream", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
95 5: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Upstream", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
96 6: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Upstream", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
97 7: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Upstream", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, true, false, 7),
98 8: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Upstream", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070099 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800100 Access: CreatedByOnu,
101 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700102 }
103}
104
Matteo Scandolof9d43412021-01-12 11:11:34 -0800105// NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700106// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800107// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700108func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800109 return NewManagedEntity(*physicalpathterminationpointxdslunipart2BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700110}