Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * Unless required by applicable law or agreed to in writing, software |
| 9 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | * See the License for the specific language governing permissions and |
| 12 | * limitations under the License. |
| 13 | */ |
| 14 | /* |
| 15 | * NOTE: This file was generated, manual edits will be overwritten! |
| 16 | * |
| 17 | * Generated by 'goCodeGenerator.py': |
| 18 | * https://github.com/cboling/OMCI-parser/README.md |
| 19 | */ |
| 20 | |
| 21 | package generated |
| 22 | |
| 23 | import "github.com/deckarep/golang-set" |
| 24 | |
| 25 | // PhysicalPathTerminationPointXdslUniPart2ClassID is the 16-bit ID for the OMCI |
| 26 | // Managed entity Physical path termination point xDSL UNI part 2 |
| 27 | const PhysicalPathTerminationPointXdslUniPart2ClassID ClassID = ClassID(99) |
| 28 | |
| 29 | var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition |
| 30 | |
| 31 | // PhysicalPathTerminationPointXdslUniPart2 (class ID #99) |
| 32 | // This ME represents the point in the ONU where physical paths terminate on an xDSL CO modem |
| 33 | // (xTU-C). Standards and chip sets support several forms of DSL, including VDSL2, and the xDSL ME |
| 34 | // family is used for all of them, with specific extensions for technology variations. |
| 35 | // |
| 36 | // The ONU creates or deletes an instance of this ME at the same time it creates or deletes the |
| 37 | // corresponding PPTP xDSL UNI part 1. |
| 38 | // |
| 39 | // Relationships |
| 40 | // An instance of this ME is associated with each instance of a PPTP xDSL UNI part 1. |
| 41 | // |
| 42 | // Attributes |
| 43 | // Managed Entity Id |
| 44 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 45 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R) |
| 46 | // (mandatory) (2-bytes) |
| 47 | // |
| 48 | // Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream |
| 49 | // xDSL channel configuration profile for bearer channel 0 downstream: (R,-W) (optional) (2-bytes) |
| 50 | // |
| 51 | // Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream |
| 52 | // xDSL channel configuration profile for bearer channel 1 downstream: (R,-W) (optional) (2-bytes) |
| 53 | // |
| 54 | // Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream |
| 55 | // xDSL channel configuration profile for bearer channel 2 downstream: (R,-W) (optional) (2-bytes) |
| 56 | // |
| 57 | // Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream |
| 58 | // xDSL channel configuration profile for bearer channel 3 downstream: (R,-W) (optional) (2-bytes) |
| 59 | // |
| 60 | // Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream |
| 61 | // xDSL channel configuration profile for bearer channel 0 upstream: (R,-W) (optional) (2-bytes) |
| 62 | // |
| 63 | // Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream |
| 64 | // xDSL channel configuration profile for bearer channel 1 upstream: (R,-W) (optional) (2-bytes) |
| 65 | // |
| 66 | // Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream |
| 67 | // xDSL channel configuration profile for bearer channel 2 upstream: (R,-W) (optional) (2-bytes) |
| 68 | // |
| 69 | // Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream |
| 70 | // xDSL channel configuration profile for bearer channel 3 upstream: (R,-W) (optional) (2-bytes) |
| 71 | // |
| 72 | type PhysicalPathTerminationPointXdslUniPart2 struct { |
| 73 | ManagedEntityDefinition |
| 74 | Attributes AttributeValueMap |
| 75 | } |
| 76 | |
| 77 | func init() { |
| 78 | physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{ |
| 79 | Name: "PhysicalPathTerminationPointXdslUniPart2", |
| 80 | ClassID: 99, |
| 81 | MessageTypes: mapset.NewSetWith( |
| 82 | Get, |
| 83 | Set, |
| 84 | ), |
| 85 | AllowedAttributeMask: 0xff00, |
| 86 | AttributeDefinitions: AttributeDefinitionMap{ |
| 87 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 88 | 1: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Downstream", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1), |
| 89 | 2: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Downstream", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2), |
| 90 | 3: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Downstream", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3), |
| 91 | 4: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Downstream", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4), |
| 92 | 5: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Upstream", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5), |
| 93 | 6: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Upstream", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6), |
| 94 | 7: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Upstream", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, true, false, 7), |
| 95 | 8: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Upstream", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8), |
| 96 | }, |
| 97 | Access: CreatedByOnu, |
| 98 | Support: UnknownSupport, |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | // NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99) creates the basic |
| 103 | // Managed Entity definition that is used to validate an ME of this type that |
| 104 | // is received from or transmitted to the OMCC. |
| 105 | func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 106 | return NewManagedEntity(*physicalpathterminationpointxdslunipart2BME, params...) |
| 107 | } |