Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 4 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 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 |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 8 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 10 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 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 | */ |
David K. Bainbridge | d80007b | 2021-04-12 12:22:29 +0000 | [diff] [blame] | 17 | /* |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 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 | |
| 24 | package generated |
| 25 | |
| 26 | import "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 |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 30 | const PhysicalPathTerminationPointXdslUniPart2ClassID = ClassID(99) // 0x0063 |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 31 | |
| 32 | var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition |
| 33 | |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 34 | // PhysicalPathTerminationPointXdslUniPart2 (Class ID: #99 / 0x0063) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 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 |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 47 | // 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. |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 52 | // |
| 53 | // Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 54 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 55 | // |
| 56 | // Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 57 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 58 | // |
| 59 | // Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 60 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 61 | // |
| 62 | // Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 63 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 64 | // |
| 65 | // Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 66 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 67 | // |
| 68 | // Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 69 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 70 | // |
| 71 | // Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 72 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 73 | // |
| 74 | // Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 75 | // (R,-W) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 76 | // |
| 77 | type PhysicalPathTerminationPointXdslUniPart2 struct { |
| 78 | ManagedEntityDefinition |
| 79 | Attributes AttributeValueMap |
| 80 | } |
| 81 | |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 82 | // Attribute name constants |
| 83 | |
| 84 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel0Downstream = "XdslChannelConfigurationProfileForBearerChannel0Downstream" |
| 85 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel1Downstream = "XdslChannelConfigurationProfileForBearerChannel1Downstream" |
| 86 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel2Downstream = "XdslChannelConfigurationProfileForBearerChannel2Downstream" |
| 87 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel3Downstream = "XdslChannelConfigurationProfileForBearerChannel3Downstream" |
| 88 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel0Upstream = "XdslChannelConfigurationProfileForBearerChannel0Upstream" |
| 89 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel1Upstream = "XdslChannelConfigurationProfileForBearerChannel1Upstream" |
| 90 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel2Upstream = "XdslChannelConfigurationProfileForBearerChannel2Upstream" |
| 91 | const PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel3Upstream = "XdslChannelConfigurationProfileForBearerChannel3Upstream" |
| 92 | |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 93 | func init() { |
| 94 | physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{ |
| 95 | Name: "PhysicalPathTerminationPointXdslUniPart2", |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 96 | ClassID: PhysicalPathTerminationPointXdslUniPart2ClassID, |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 97 | MessageTypes: mapset.NewSetWith( |
| 98 | Get, |
| 99 | Set, |
| 100 | ), |
| 101 | AllowedAttributeMask: 0xff00, |
| 102 | AttributeDefinitions: AttributeDefinitionMap{ |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 103 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 104 | 1: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel0Downstream, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1), |
| 105 | 2: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel1Downstream, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2), |
| 106 | 3: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel2Downstream, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3), |
| 107 | 4: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel3Downstream, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4), |
| 108 | 5: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel0Upstream, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5), |
| 109 | 6: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel1Upstream, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6), |
| 110 | 7: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel2Upstream, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, true, false, 7), |
| 111 | 8: Uint16Field(PhysicalPathTerminationPointXdslUniPart2_XdslChannelConfigurationProfileForBearerChannel3Upstream, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8), |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 112 | }, |
| 113 | Access: CreatedByOnu, |
| 114 | Support: UnknownSupport, |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | // NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99) creates the basic |
| 119 | // Managed Entity definition that is used to validate an ME of this type that |
| 120 | // is received from or transmitted to the OMCC. |
| 121 | func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 122 | return NewManagedEntity(*physicalpathterminationpointxdslunipart2BME, params...) |
| 123 | } |