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 | // XdslLineConfigurationProfilePart2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL line configuration profile part 2 |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 30 | const XdslLineConfigurationProfilePart2ClassID = ClassID(105) // 0x0069 |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 31 | |
| 32 | var xdsllineconfigurationprofilepart2BME *ManagedEntityDefinition |
| 33 | |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 34 | // XdslLineConfigurationProfilePart2 (Class ID: #105 / 0x0069) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 35 | // The overall xDSL line configuration profile is modelled in several parts, all of which are |
| 36 | // associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single |
| 37 | // pointer, which refers to the entire set of line configuration profile parts). |
| 38 | // |
| 39 | // Relationships |
| 40 | // An instance of this ME may be associated with zero or more instances of an xDSL UNI. |
| 41 | // |
| 42 | // Attributes |
| 43 | // Managed Entity Id |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 44 | // This attribute uniquely identifies each instance of this ME. All xDSL and VDSL2 line |
| 45 | // configuration profiles and extensions that pertain to a given PPTP xDSL UNI must share a common |
| 46 | // ME ID. (R, setbycreate) (mandatory) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 47 | // |
| 48 | // Downstream Minimum Time Interval For Upshift Rate Adaptation |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 49 | // This parameter defines the interval during which the downstream noise margin must remain above |
| 50 | // the downstream upshift noise margin before the xTU-R attempts to increase the downstream net |
| 51 | // data rate. Its value ranges from 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 52 | // |
| 53 | // Upstream Minimum Time Interval For Upshift Rate Adaptation |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 54 | // This parameter defines the interval during which the upstream noise margin must remain above the |
| 55 | // upstream upshift noise margin before the xTU-C attempts to increase the upstream net data rate. |
| 56 | // Its value ranges from 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 57 | // |
| 58 | // Downstream Downshift Noise Margin |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 59 | // If the downstream noise margin is below the downstream downshift noise margin and remains there |
| 60 | // for more than the downstream minimum time interval for downshift rate adaptation, the xTU-R |
| 61 | // attempts to decrease the downstream net data rate. This attribute's value ranges from 0 (0.0 dB) |
| 62 | // to 310 (31.0 dB). (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 63 | // |
| 64 | // Upstream Downshift Noise Margin |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 65 | // If the upstream noise margin is below the upstream downshift noise margin and remains there for |
| 66 | // more than the upstream minimum time interval for downshift rate adaptation, the xTUC attempts to |
| 67 | // decrease the upstream net data rate. This attribute's value ranges from 0 (0.0 dB) to 310 (31.0 |
| 68 | // dB). (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 69 | // |
| 70 | // Downstream Minimum Time Interval For Downshift Rate Adaptation |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 71 | // This parameter defines the interval during which the downstream noise margin must remain below |
| 72 | // the downstream downshift noise margin before the xTU-R attempts to decrease the downstream net |
| 73 | // data rate. Its value ranges from 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 74 | // |
| 75 | // Upstream Minimum Time Interval For Downshift Rate Adaptation |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 76 | // This parameter defines the interval during which the upstream noise margin must remain below the |
| 77 | // upstream downshift noise margin before the xTU-C attempts to decrease the upstream net data |
| 78 | // rate. Its value ranges from 0 to 16383-s. (R,-W, setbycreate) (optional) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 79 | // |
| 80 | // Xtu Impedance State Forced |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 81 | // This parameter forces the impedance state of the xTU-C. It applies only to the T/S interface, |
| 82 | // and is deprecated in the OMCI, which stands proxy for the Q interface. It is only valid for |
| 83 | // Annex A of [ITUT G.992.3], Annex A of [ITUT G.992.4] and Annex A of [ITUT G.992.5]. It is |
| 84 | // defined as follows. |
| 85 | // |
| 86 | // 1 Force the xTU-C to the disabled state. |
| 87 | // |
| 88 | // 2 Force the xTU-C to the inactive state. |
| 89 | // |
| 90 | // 3 Force the xTU-C to the active state. |
| 91 | // |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 92 | // (R,-W, setbycreate) (optional) (1-byte) |
| 93 | // |
| 94 | // L0_Time |
| 95 | // L0-time: This parameter specifies the minimum time between an exit from the L2 state and the |
| 96 | // next entry into the L2 state. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and |
| 97 | // [ITUT-G.992.5]. It ranges from 0 to 255-s. (R,-W, setbycreate) (mandatory) (1 byte) |
| 98 | // |
| 99 | // L2_Time |
| 100 | // L2-time: This parameter specifies the minimum time between an entry into the L2 state and the |
| 101 | // first power trim in the L2 state, or between two consecutive power trims in the L2 state. It is |
| 102 | // only valid for [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. It ranges from 0 to 255-s. (R, |
| 103 | // W, setbycreate) (mandatory) (1 byte) |
| 104 | // |
| 105 | // Downstream Maximum Nominal Power Spectral Density |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 106 | // This attribute specifies the maximum nominal transmit PSD in the downstream direction during |
| 107 | // initialization and showtime. A single MAXNOMPSDds attribute is defined per mode enabled in the |
| 108 | // xTSE line configuration attribute. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and |
| 109 | // [ITUT-G.992.5]. Its value ranges from 0 (60.0-dBm/Hz) to 300 (-30-dBm/Hz). (R, W, setbycreate) |
| 110 | // (mandatory) (2 bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 111 | // |
| 112 | // Upstream Maximum Nominal Power Spectral Density |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 113 | // This attribute specifies the maximum nominal transmit PSD in the upstream direction during |
| 114 | // initialization and showtime. A single MAXNOMPSDus attribute is defined per mode enabled in the |
| 115 | // xTSE line configuration attribute. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and |
| 116 | // [ITUT-G.993.2]. Its value ranges from 0 (-60.0-dBm/Hz) to 300 (-30-dBm/Hz). (R, W, setbycreate) |
| 117 | // (mandatory) (2 bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 118 | // |
| 119 | // Downstream Maximum Nominal Aggregate Transmit Power |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 120 | // This attribute specifies the maximum nominal aggregate transmit power in the downstream |
| 121 | // direction during initialization and showtime. It is only valid for [ITUT-G.992.3], |
| 122 | // [ITUT-G.992.4], [ITUT-G.992.5] and [ITUT-G.993.2]. Its value ranges from 0 (0.0-dBm) to 255 |
| 123 | // (25.5-dBm). (R, W, setbycreate) (mandatory) (1-byte) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 124 | // |
| 125 | // Upstream Maximum Nominal Aggregate Transmit Power |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 126 | // This parameter specifies the maximum nominal aggregate transmit power in the upstream direction |
| 127 | // during initialization and showtime. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and |
| 128 | // [ITUT-G.992.5]. Its value ranges from 0 (0.0-dBm) to 255 (25.5-dBm). (R, W, setbycreate) |
| 129 | // (mandatory) (1 byte) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 130 | // |
| 131 | // Upstream Maximum Aggregate_Receive Power |
| 132 | // Upstream maximum aggregate-receive power: This parameter specifies the maximum upstream |
| 133 | // aggregate receive power over a set of subcarriers, as defined in the relevant Recommendation. |
| 134 | // The xTU-C requests an upstream power cutback such that the upstream aggregate receive power over |
| 135 | // that set of subcarriers is at or below the configured maximum value. It is only valid for |
| 136 | // [ITUT-G.992.3], [ITUT-G.992.4] and [ITUT-G.992.5]. This attribute ranges from 0 (25.5-dBm) to |
| 137 | // 510 (+25.5-dBm). The special value 0xFFFF indicates that no upstream maximum aggregate receive |
| 138 | // power limit is to be applied. (R, W setbycreate) (mandatory) (2 bytes) |
| 139 | // |
| 140 | // Vdsl2 Transmission System Enabling |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 141 | // This configuration attribute extends the transmission system coding types to be allowed by the |
| 142 | // xTU-C. It is a bit map, defined as octet 8 (bits 57..64) in Table-9.7.12-1. (R, W, setbycreate) |
| 143 | // (optional) (1 byte) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 144 | // |
| 145 | type XdslLineConfigurationProfilePart2 struct { |
| 146 | ManagedEntityDefinition |
| 147 | Attributes AttributeValueMap |
| 148 | } |
| 149 | |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 150 | // Attribute name constants |
| 151 | |
| 152 | const XdslLineConfigurationProfilePart2_DownstreamMinimumTimeIntervalForUpshiftRateAdaptation = "DownstreamMinimumTimeIntervalForUpshiftRateAdaptation" |
| 153 | const XdslLineConfigurationProfilePart2_UpstreamMinimumTimeIntervalForUpshiftRateAdaptation = "UpstreamMinimumTimeIntervalForUpshiftRateAdaptation" |
| 154 | const XdslLineConfigurationProfilePart2_DownstreamDownshiftNoiseMargin = "DownstreamDownshiftNoiseMargin" |
| 155 | const XdslLineConfigurationProfilePart2_UpstreamDownshiftNoiseMargin = "UpstreamDownshiftNoiseMargin" |
| 156 | const XdslLineConfigurationProfilePart2_DownstreamMinimumTimeIntervalForDownshiftRateAdaptation = "DownstreamMinimumTimeIntervalForDownshiftRateAdaptation" |
| 157 | const XdslLineConfigurationProfilePart2_UpstreamMinimumTimeIntervalForDownshiftRateAdaptation = "UpstreamMinimumTimeIntervalForDownshiftRateAdaptation" |
| 158 | const XdslLineConfigurationProfilePart2_XtuImpedanceStateForced = "XtuImpedanceStateForced" |
| 159 | const XdslLineConfigurationProfilePart2_L0Time = "L0Time" |
| 160 | const XdslLineConfigurationProfilePart2_L2Time = "L2Time" |
| 161 | const XdslLineConfigurationProfilePart2_DownstreamMaximumNominalPowerSpectralDensity = "DownstreamMaximumNominalPowerSpectralDensity" |
| 162 | const XdslLineConfigurationProfilePart2_UpstreamMaximumNominalPowerSpectralDensity = "UpstreamMaximumNominalPowerSpectralDensity" |
| 163 | const XdslLineConfigurationProfilePart2_DownstreamMaximumNominalAggregateTransmitPower = "DownstreamMaximumNominalAggregateTransmitPower" |
| 164 | const XdslLineConfigurationProfilePart2_UpstreamMaximumNominalAggregateTransmitPower = "UpstreamMaximumNominalAggregateTransmitPower" |
| 165 | const XdslLineConfigurationProfilePart2_UpstreamMaximumAggregateReceivePower = "UpstreamMaximumAggregateReceivePower" |
| 166 | const XdslLineConfigurationProfilePart2_Vdsl2TransmissionSystemEnabling = "Vdsl2TransmissionSystemEnabling" |
| 167 | |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 168 | func init() { |
| 169 | xdsllineconfigurationprofilepart2BME = &ManagedEntityDefinition{ |
| 170 | Name: "XdslLineConfigurationProfilePart2", |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 171 | ClassID: XdslLineConfigurationProfilePart2ClassID, |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 172 | MessageTypes: mapset.NewSetWith( |
| 173 | Create, |
| 174 | Delete, |
| 175 | Get, |
| 176 | Set, |
| 177 | ), |
| 178 | AllowedAttributeMask: 0xfffe, |
| 179 | AttributeDefinitions: AttributeDefinitionMap{ |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 180 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 181 | 1: Uint16Field(XdslLineConfigurationProfilePart2_DownstreamMinimumTimeIntervalForUpshiftRateAdaptation, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 1), |
| 182 | 2: Uint16Field(XdslLineConfigurationProfilePart2_UpstreamMinimumTimeIntervalForUpshiftRateAdaptation, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 2), |
| 183 | 3: Uint16Field(XdslLineConfigurationProfilePart2_DownstreamDownshiftNoiseMargin, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 3), |
| 184 | 4: Uint16Field(XdslLineConfigurationProfilePart2_UpstreamDownshiftNoiseMargin, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4), |
| 185 | 5: Uint16Field(XdslLineConfigurationProfilePart2_DownstreamMinimumTimeIntervalForDownshiftRateAdaptation, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5), |
| 186 | 6: Uint16Field(XdslLineConfigurationProfilePart2_UpstreamMinimumTimeIntervalForDownshiftRateAdaptation, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6), |
| 187 | 7: ByteField(XdslLineConfigurationProfilePart2_XtuImpedanceStateForced, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7), |
| 188 | 8: ByteField(XdslLineConfigurationProfilePart2_L0Time, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 8), |
| 189 | 9: ByteField(XdslLineConfigurationProfilePart2_L2Time, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 9), |
| 190 | 10: Uint16Field(XdslLineConfigurationProfilePart2_DownstreamMaximumNominalPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 10), |
| 191 | 11: Uint16Field(XdslLineConfigurationProfilePart2_UpstreamMaximumNominalPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 11), |
| 192 | 12: ByteField(XdslLineConfigurationProfilePart2_DownstreamMaximumNominalAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 12), |
| 193 | 13: ByteField(XdslLineConfigurationProfilePart2_UpstreamMaximumNominalAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 13), |
| 194 | 14: Uint16Field(XdslLineConfigurationProfilePart2_UpstreamMaximumAggregateReceivePower, UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 14), |
| 195 | 15: ByteField(XdslLineConfigurationProfilePart2_Vdsl2TransmissionSystemEnabling, UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 15), |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 196 | }, |
| 197 | Access: CreatedByOlt, |
| 198 | Support: UnknownSupport, |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | // NewXdslLineConfigurationProfilePart2 (class ID 105) creates the basic |
| 203 | // Managed Entity definition that is used to validate an ME of this type that |
| 204 | // is received from or transmitted to the OMCC. |
| 205 | func NewXdslLineConfigurationProfilePart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 206 | return NewManagedEntity(*xdsllineconfigurationprofilepart2BME, params...) |
| 207 | } |