blob: 9b90e3cc4e1df4b272dd1aad5f1f82321d495513 [file] [log] [blame]
mpagenko836a1fd2021-11-01 16:12:42 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
mpagenko836a1fd2021-11-01 16:12:42 +00005 * 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 Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
mpagenko836a1fd2021-11-01 16:12:42 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
mpagenko836a1fd2021-11-01 16:12:42 +000011 * 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 */
17/*
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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// PwAtmConfigurationDataClassID is the 16-bit ID for the OMCI
29// Managed entity PW ATM configuration data
30const PwAtmConfigurationDataClassID = ClassID(337) // 0x0151
31
32var pwatmconfigurationdataBME *ManagedEntityDefinition
33
34// PwAtmConfigurationData (Class ID: #337 / 0x0151)
35// This ME contains generic configuration data for an ATM pseudowire. Definitions of attributes are
36// from PW-ATM-MIB [IETF RFC 5605]. Instances of this ME are created and deleted by the OLT.
37//
38// Relationships
39// An instance of this ME is associated with an instance of the MPLS pseudowire TP ME with a
40// pseudowire type attribute equal to one of the following.//// 2 ATM AAL5 SDU VCC transport//// 3 ATM transparent cell transport//// 9 ATM n-to-one VCC cell transport//// 10 ATM n-to-one VPC cell transport//// 12 ATM one-to-one VCC cell mode//// 13 ATM one-to-one VPC cell mode//// 14 ATM AAL5 PDU VCC transport//// Alternatively, an instance of this ME may be associated with an Ethernet flow TP or a TCP/UDP
41// config data ME, depending on the transport layer of the pseudowire.
42//
43// Attributes
44// Managed Entity Id
45// This attribute uniquely identifies each instance of this ME. (R, setbycreate)-(mandatory) (2
46// bytes)
47//
48// Tp Type
49// This attribute specifies the type of the underlying transport layer. (R, W, setbycreate)
50// (mandatory) (1 byte)
51//
52// 0 MPLS pseudowire termination point
53//
54// 1 Ethernet flow termination point
55//
56// 2 TCP/UDP config data
57//
58// Transport Tp Pointer
59// This attribute points to an associated instance of the transport layer TP, whose type is
60// specified by the TP type attribute. (R, W, setbycreate) (mandatory) (2 bytes)
61//
62// Pptp Atm Uni Pointer
63// This attribute points to an associated instance of the ITU-T G.983.2 PPTP ATM UNI. Refer to
64// [ITUT G.983.2] for the definition of the target ME. (R, W, setbycreate) (mandatory) (2 bytes)
65//
66// Max C Ell C Oncatenation
67// Max cell concatenation: This attribute specifies the maximum number of ATM cells that can be
68// concatenated into one PW packet in the upstream direction. (R, W, setbycreate) (mandatory) (2
69// bytes)
70//
71// Far End M Ax C Ell C Oncatenation
72// Far-end max cell concatenation: This attribute specifies the maximum number of ATM cells that
73// can be concatenated into one PW packet as provisioned at the far end. This attribute may be used
74// for error checking of downstream traffic. The value 0 specifies that the ONU uses its internal
75// default. (R, W, set-by-create) (optional) (2 bytes)
76//
77// Atm Cell Loss Priority Clp Qos Mapping
78// ATM cell loss priority (CLP) QoS mapping: This attribute specifies whether the CLP bits should
79// be considered when setting the value in the QoS fields of the encapsulating protocol (e.g., TC
80// fields of the MPLS label stack).
81//
82// 1 ATM CLP bits mapping to QoS fields of the encapsulating protocol
83//
84// 2 Not applicable
85//
86// The value 0 specifies that the ONU uses its internal default. (R, W, setbycreate) (optional) (1
87// byte)
88//
89// Timeout Mode
90// The value 0 specifies that the ONU uses its internal default. (R, W, setbycreate) (optional) (1
91// byte)
92//
93// This attribute specifies whether a packet is transmitted in the upstream direction based on
94// timeout expiration for collecting cells. The actual handling of the timeout is implementation
95// specific; as such, this attribute may be changed at any time with proper consideration of the
96// traffic disruption effect.
97//
98// 1 Disabled. The ONU does not generate packets based on timeout cells.
99//
100// 2 Enabled. The ONU generates packets based on timeout cells.
101//
102// Pw Atm Mapping Table
103// 12 ATM one-to-one VCC cell mode
104//
105// 13 ATM one-to-one VPC cell mode
106//
107// 14 ATM AAL5 PDU VCC transport
108//
109// Each entry contains:
110//
111// Entry number: (1-byte), the index of this row. A set operation with all fields zero has the
112// effect of clearing the table. A set operation with a non-zero entry number and all other fields
113// zero, has the effect of deleting one row.
114//
115// Upstream VPI: (2 bytes)
116//
117// The VPI value of this ATM PW at the UNI. When pseudowire type-= ATM transparent cell transport
118// (3), this field is ignored.
119//
120// Upstream VCI: (2 bytes)
121//
122// The VCI value of this ATM PW at the UNI. When pseudowire type-= ATM transparent cell transport
123// (3), or in virtual path (VP) cases, this field is ignored.
124//
125// Upstream traffic descriptor profile pointer: (2 bytes)
126//
127// A pointer to an instance of an ITU-T G.983.2 traffic descriptor profile ME that contains the
128// traffic parameters used for the ATM upstream traffic. Refer to clause 7.5.2 of [ITUT-G.983.2]
129// for the definition of this class of MEs. A null pointer indicates BE.
130//
131// Upstream mapped VPI: (2 bytes)
132//
133// The VPI value of the upstream MPLS ATM PW. This field is valid when the pseudowire type is as
134// follows.
135//
136// 9 ATM n-to-one VCC cell transport
137//
138// 10 ATM n-to-one VPC cell transport
139//
140// 12 ATM one-to-one VCC cell mode
141//
142// 13 ATM one-to-one VPC cell mode
143//
144// This field is not used for other pseudowire types.
145//
146// Upstream mapped VCI: (2 bytes)
147//
148// The VCI value of the upstream MPLS ATM PW. This field is valid when the pseudowire type is as
149// follows.
150//
151// 9 ATM n-to-one VCC cell transport
152//
153// 10 ATM n-to-one VPC cell transport
154//
155// 12 ATM one-to-one VCC cell mode
156//
157// 13 ATM one-to-one VPC cell mode
158//
159// This field is not used for other pseudowire types.
160//
161// Downstream VPI: (2 bytes)
162//
163// The downstream VPI value of this MPLS ATM PW. When pseudowire type-= ATM transparent cell
164// transport (3), this field is ignored.
165//
166// Downstream VCI: (2 bytes)
167//
168// The downstream VCI value of this MPLS ATM PW. When pseudowire type-= ATM transparent cell
169// transport (3) or in the VP case, this field is ignored.
170//
171// Downstream traffic descriptor profile pointer: (2 bytes)
172//
173// A pointer to an instance of an ITU-T G.983.2 traffic descriptor profile ME that contains the
174// traffic parameters used for the ATM downstream traffic. Refer to clause 7.5.2 of [ITUT-G.983.2]
175// for definition of this class of MEs. A null pointer indicates BE.
176//
177// Downstream mapped VPI: (2 bytes)
178//
179// The VPI value of this ATM PW at the UNI. This field is valid when the pseudowire type is as
180// follows.
181//
182// 9 ATM n-to-one VCC cell transport
183//
184// 10 ATM n-to-one VPC cell transport
185//
186// 12 ATM one-to-one VCC cell mode
187//
188// 13 ATM one-to-one VPC cell mode
189//
190// This field is not used for other pseudowire types.
191//
192// Downstream mapped VCI: (2 bytes)
193//
194// The VCI value of this ATM PW at the UNI. This field is valid when the pseudowire type is as
195// follows.
196//
197// 9 ATM n-to-one VCC cell transport
198//
199// 10 ATM n-to-one VPC cell transport
200//
201// 12 ATM one-to-one VCC cell mode
202//
203// 13 ATM one-to-one VPC cell mode
204//
205// This field is not used for other pseudowire types.
206//
207// (R,-W) (mandatory) (21N bytes, where N is the number of entries in the list)
208//
209// This attribute lists ATM VPI/VCI mapping entries in both the upstream and downstream directions.
210// In the upstream direction, ATM cells that match no entry's upstream VPI (and conditionally VCI)
211// values are discarded; conversely in the downstream direction. Upon ME instantiation, the ONU
212// sets this attribute to an empty table, which discards all cells in both directions.
213//
214// The table can contain up to N entries when the pseudowire type is equal to one of the following:
215//
216// 9 ATM n-to-one VCC cell transport
217//
218// 10 ATM n-to-one VPC cell transport
219//
220// The table contains only one entry when the pseudowire type is equal to one of the following.
221//
222// 2 ATM AAL5 SDU VCC transport
223//
224// 3 ATM transparent cell transport
225//
226type PwAtmConfigurationData struct {
227 ManagedEntityDefinition
228 Attributes AttributeValueMap
229}
230
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000231// Attribute name constants
232
233const PwAtmConfigurationData_TpType = "TpType"
234const PwAtmConfigurationData_TransportTpPointer = "TransportTpPointer"
235const PwAtmConfigurationData_PptpAtmUniPointer = "PptpAtmUniPointer"
236const PwAtmConfigurationData_MaxCEllCOncatenation = "MaxCEllCOncatenation"
237const PwAtmConfigurationData_FarEndMAxCEllCOncatenation = "FarEndMAxCEllCOncatenation"
238const PwAtmConfigurationData_AtmCellLossPriorityClpQosMapping = "AtmCellLossPriorityClpQosMapping"
239const PwAtmConfigurationData_TimeoutMode = "TimeoutMode"
240const PwAtmConfigurationData_PwAtmMappingTable = "PwAtmMappingTable"
241
mpagenko836a1fd2021-11-01 16:12:42 +0000242func init() {
243 pwatmconfigurationdataBME = &ManagedEntityDefinition{
244 Name: "PwAtmConfigurationData",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000245 ClassID: PwAtmConfigurationDataClassID,
mpagenko836a1fd2021-11-01 16:12:42 +0000246 MessageTypes: mapset.NewSetWith(
247 Create,
248 Delete,
249 Get,
250 GetNext,
251 Set,
252 SetTable,
253 ),
254 AllowedAttributeMask: 0xff00,
255 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000256 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
257 1: ByteField(PwAtmConfigurationData_TpType, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
258 2: Uint16Field(PwAtmConfigurationData_TransportTpPointer, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
259 3: Uint16Field(PwAtmConfigurationData_PptpAtmUniPointer, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
260 4: Uint16Field(PwAtmConfigurationData_MaxCEllCOncatenation, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
261 5: Uint16Field(PwAtmConfigurationData_FarEndMAxCEllCOncatenation, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
262 6: ByteField(PwAtmConfigurationData_AtmCellLossPriorityClpQosMapping, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6),
263 7: ByteField(PwAtmConfigurationData_TimeoutMode, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7),
264 8: TableField(PwAtmConfigurationData_PwAtmMappingTable, TableAttributeType, 0x0100, TableInfo{nil, 21}, mapset.NewSetWith(Read, Write), false, false, false, 8),
mpagenko836a1fd2021-11-01 16:12:42 +0000265 },
266 Access: CreatedByOlt,
267 Support: UnknownSupport,
268 }
269}
270
271// NewPwAtmConfigurationData (class ID 337) creates the basic
272// Managed Entity definition that is used to validate an ME of this type that
273// is received from or transmitted to the OMCC.
274func NewPwAtmConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
275 return NewManagedEntity(*pwatmconfigurationdataBME, params...)
276}