Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [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 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const XdslLineConfigurationProfilePart2ClassId ClassID = ClassID(105) |
| 25 | |
| 26 | var xdsllineconfigurationprofilepart2BME *ManagedEntityDefinition |
| 27 | |
| 28 | // XdslLineConfigurationProfilePart2 (class ID #105) |
| 29 | // The overall xDSL line configuration profile is modelled in several parts, all of which are |
| 30 | // associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single |
| 31 | // pointer, which refers to the entire set of line configuration profile parts). |
| 32 | // |
| 33 | // Relationships |
| 34 | // An instance of this ME may be associated with zero or more instances of an xDSL UNI. |
| 35 | // |
| 36 | // Attributes |
| 37 | // Managed Entity Id |
| 38 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and |
| 39 | // VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must |
| 40 | // share a common ME ID. (R, setbycreate) (mandatory) (2 bytes) |
| 41 | // |
| 42 | // Downstream Minimum Time Interval For Upshift Rate Adaptation |
| 43 | // Downstream minimum time interval for upshift rate adaptation: This parameter defines the |
| 44 | // interval during which the downstream noise margin must remain above the downstream upshift noise |
| 45 | // margin before the xTU-R attempts to increase the downstream net data rate. Its value ranges from |
| 46 | // 0 to 16383 s. (R, W, setbycreate) (optional) (2 bytes) |
| 47 | // |
| 48 | // Upstream Minimum Time Interval For Upshift Rate Adaptation |
| 49 | // Upstream minimum time interval for upshift rate adaptation: This parameter defines the interval |
| 50 | // during which the upstream noise margin must remain above the upstream upshift noise margin |
| 51 | // before the xTU-C attempts to increase the upstream net data rate. Its value ranges from 0 to |
| 52 | // 16383 s. (R, W, setbycreate) (optional) (2 bytes) |
| 53 | // |
| 54 | // Downstream Downshift Noise Margin |
| 55 | // Downstream downshift noise margin: If the downstream noise margin is below the downstream |
| 56 | // downshift noise margin and remains there for more than the downstream minimum time interval for |
| 57 | // downshift rate adaptation, the xTU-R attempts to decrease the downstream net data rate. This |
| 58 | // attribute's value ranges from 0 (0.0 dB) to 310 (31.0 dB). (R, W, setbycreate) (optional) |
| 59 | // (2 bytes) |
| 60 | // |
| 61 | // Upstream Downshift Noise Margin |
| 62 | // Upstream downshift noise margin: If the upstream noise margin is below the upstream downshift |
| 63 | // noise margin and remains there for more than the upstream minimum time interval for downshift |
| 64 | // rate adaptation, the xTUC attempts to decrease the upstream net data rate. This attribute's |
| 65 | // value ranges from 0 (0.0 dB) to 310 (31.0 dB). (R, W, setbycreate) (optional) (2 bytes) |
| 66 | // |
| 67 | // Downstream Minimum Time Interval For Downshift Rate Adaptation |
| 68 | // Downstream minimum time interval for downshift rate adaptation: This parameter defines the |
| 69 | // interval during which the downstream noise margin must remain below the downstream downshift |
| 70 | // noise margin before the xTU-R attempts to decrease the downstream net data rate. Its value |
| 71 | // ranges from 0 to 16383 s. (R, W, setbycreate) (optional) (2 bytes) |
| 72 | // |
| 73 | // Upstream Minimum Time Interval For Downshift Rate Adaptation |
| 74 | // Upstream minimum time interval for downshift rate adaptation: This parameter defines the |
| 75 | // interval during which the upstream noise margin must remain below the upstream downshift noise |
| 76 | // margin before the xTU-C attempts to decrease the upstream net data rate. Its value ranges from 0 |
| 77 | // to 16383 s. (R, W, setbycreate) (optional) (2 bytes) |
| 78 | // |
| 79 | // Xtu Impedance State Forced |
| 80 | // (R, W, setbycreate) (optional) (1 byte) |
| 81 | // |
| 82 | // L0_Time |
| 83 | // L0-time: This parameter specifies the minimum time between an exit from the L2 state and the |
| 84 | // next entry into the L2 state. It is only valid for [ITUT G.992.3], [ITUT G.992.4] and |
| 85 | // [ITUT G.992.5]. It ranges from 0 to 255 s. (R, W, setbycreate) (mandatory) (1 byte) |
| 86 | // |
| 87 | // L2_Time |
| 88 | // L2-time: This parameter specifies the minimum time between an entry into the L2 state and the |
| 89 | // first power trim in the L2 state, or between two consecutive power trims in the L2 state. It is |
| 90 | // only valid for [ITUT G.992.3], [ITUT G.992.4] and [ITUT G.992.5]. It ranges from 0 to 255 s. (R, |
| 91 | // W, setbycreate) (mandatory) (1 byte) |
| 92 | // |
| 93 | // Downstream Maximum Nominal Power Spectral Density |
| 94 | // Downstream maximum nominal power spectral density: This attribute specifies the maximum nominal |
| 95 | // transmit PSD in the downstream direction during initialization and showtime. A single |
| 96 | // MAXNOMPSDds attribute is defined per mode enabled in the xTSE line configuration attribute. It |
| 97 | // is only valid for [ITUT G.992.3], [ITUT G.992.4] and [ITUT G.992.5]. Its value ranges from 0 |
| 98 | // (60.0 dBm/Hz) to 300 (–30 dBm/Hz). (R, W, setbycreate) (mandatory) (2 bytes) |
| 99 | // |
| 100 | // Upstream Maximum Nominal Power Spectral Density |
| 101 | // Upstream maximum nominal power spectral density: This attribute specifies the maximum nominal |
| 102 | // transmit PSD in the upstream direction during initialization and showtime. A single MAXNOMPSDus |
| 103 | // attribute is defined per mode enabled in the xTSE line configuration attribute. It is only valid |
| 104 | // for [ITUT G.992.3], [ITUT G.992.4] and [ITUT G.993.2]. Its value ranges from 0 (–60.0 dBm/Hz) to |
| 105 | // 300 (–30 dBm/Hz). (R, W, setbycreate) (mandatory) (2 bytes) |
| 106 | // |
| 107 | // Downstream Maximum Nominal Aggregate Transmit Power |
| 108 | // Downstream maximum nominal aggregate transmit power: This attribute specifies the maximum |
| 109 | // nominal aggregate transmit power in the downstream direction during initialization and showtime. |
| 110 | // It is only valid for [ITUT G.992.3], [ITUT G.992.4], [ITUT G.992.5] and [ITUT G.993.2]. Its |
| 111 | // value ranges from 0 (0.0 dBm) to 255 (25.5 dBm). (R, W, setbycreate) (mandatory) (1 byte) |
| 112 | // |
| 113 | // Upstream Maximum Nominal Aggregate Transmit Power |
| 114 | // Upstream maximum nominal aggregate transmit power: This parameter specifies the maximum nominal |
| 115 | // aggregate transmit power in the upstream direction during initialization and showtime. It is |
| 116 | // only valid for [ITUT G.992.3], [ITUT G.992.4] and [ITUT G.992.5]. Its value ranges from 0 |
| 117 | // (0.0 dBm) to 255 (25.5 dBm). (R, W, setbycreate) (mandatory) (1 byte) |
| 118 | // |
| 119 | // Upstream Maximum Aggregate_Receive Power |
| 120 | // Upstream maximum aggregate receive power: This parameter specifies the maximum upstream |
| 121 | // aggregate receive power over a set of subcarriers, as defined in the relevant Recommendation. |
| 122 | // The xTU-C requests an upstream power cutback such that the upstream aggregate receive power over |
| 123 | // that set of subcarriers is at or below the configured maximum value. It is only valid for |
| 124 | // [ITUT G.992.3], [ITUT G.992.4] and [ITUT G.992.5]. This attribute ranges from 0 (25.5 dBm) to |
| 125 | // 510 (+25.5 dBm). The special value 0xFFFF indicates that no upstream maximum aggregate receive |
| 126 | // power limit is to be applied. (R, W setbycreate) (mandatory) (2 bytes) |
| 127 | // |
| 128 | // Vdsl2 Transmission System Enabling |
| 129 | // VDSL2 transmission system enabling: This configuration attribute extends the transmission system |
| 130 | // coding types to be allowed by the xTU-C. It is a bit map, defined as octet 8 (bits 57..64) in |
| 131 | // Table 9.7.12-1. (R, W, setbycreate) (optional) (1 byte) |
| 132 | // |
| 133 | type XdslLineConfigurationProfilePart2 struct { |
| 134 | ManagedEntityDefinition |
| 135 | Attributes AttributeValueMap |
| 136 | } |
| 137 | |
| 138 | func init() { |
| 139 | xdsllineconfigurationprofilepart2BME = &ManagedEntityDefinition{ |
| 140 | Name: "XdslLineConfigurationProfilePart2", |
| 141 | ClassID: 105, |
| 142 | MessageTypes: mapset.NewSetWith( |
| 143 | Create, |
| 144 | Delete, |
| 145 | Get, |
| 146 | Set, |
| 147 | ), |
| 148 | AllowedAttributeMask: 0XFFFE, |
| 149 | AttributeDefinitions: AttributeDefinitionMap{ |
| 150 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 151 | 1: Uint16Field("DownstreamMinimumTimeIntervalForUpshiftRateAdaptation", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 1), |
| 152 | 2: Uint16Field("UpstreamMinimumTimeIntervalForUpshiftRateAdaptation", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 2), |
| 153 | 3: Uint16Field("DownstreamDownshiftNoiseMargin", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 3), |
| 154 | 4: Uint16Field("UpstreamDownshiftNoiseMargin", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 4), |
| 155 | 5: Uint16Field("DownstreamMinimumTimeIntervalForDownshiftRateAdaptation", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 5), |
| 156 | 6: Uint16Field("UpstreamMinimumTimeIntervalForDownshiftRateAdaptation", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 6), |
| 157 | 7: ByteField("XtuImpedanceStateForced", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 7), |
| 158 | 8: ByteField("L0Time", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 8), |
| 159 | 9: ByteField("L2Time", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 9), |
| 160 | 10: Uint16Field("DownstreamMaximumNominalPowerSpectralDensity", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 10), |
| 161 | 11: Uint16Field("UpstreamMaximumNominalPowerSpectralDensity", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 11), |
| 162 | 12: ByteField("DownstreamMaximumNominalAggregateTransmitPower", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 12), |
| 163 | 13: ByteField("UpstreamMaximumNominalAggregateTransmitPower", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 13), |
| 164 | 14: Uint16Field("UpstreamMaximumAggregateReceivePower", 0, mapset.NewSetWith(Read), false, false, false, false, 14), |
| 165 | 15: ByteField("Vdsl2TransmissionSystemEnabling", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 15), |
| 166 | }, |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | // NewXdslLineConfigurationProfilePart2 (class ID 105 creates the basic |
| 171 | // Managed Entity definition that is used to validate an ME of this type that |
| 172 | // is received from the wire, about to be sent on the wire. |
| 173 | func NewXdslLineConfigurationProfilePart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 174 | return NewManagedEntity(xdsllineconfigurationprofilepart2BME, params...) |
| 175 | } |