blob: 84fa5847d2be62e4f2d27157cb4a223080c710de [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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 = ClassID(337)
31
32var pwatmconfigurationdataBME *ManagedEntityDefinition
33
34// PwAtmConfigurationData (class ID #337)
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// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R,
46// setbycreate)-(mandatory) (2 bytes)
47//
48// Tp Type
49// 2 TCP/UDP config data
50//
51// Transport Tp Pointer
52// Transport TP pointer: This attribute points to an associated instance of the transport layer TP,
53// whose type is specified by the TP type attribute. (R, W, setbycreate) (mandatory) (2 bytes)
54//
55// Pptp Atm Uni Pointer
56// PPTP ATM UNI pointer: This attribute points to an associated instance of the ITU-T G.983.2 PPTP
57// ATM UNI. Refer to [ITUT G.983.2] for the definition of the target ME. (R, W, setbycreate)
58// (mandatory) (2 bytes)
59//
60// Max C Ell C Oncatenation
61// Max cell concatenation: This attribute specifies the maximum number of ATM cells that can be
62// concatenated into one PW packet in the upstream direction. (R, W, setbycreate) (mandatory) (2
63// bytes)
64//
65// Far End M Ax C Ell C Oncatenation
66// Far-end max cell concatenation: This attribute specifies the maximum number of ATM cells that
67// can be concatenated into one PW packet as provisioned at the far end. This attribute may be used
68// for error checking of downstream traffic. The value 0 specifies that the ONU uses its internal
69// default. (R, W, set-by-create) (optional) (2 bytes)
70//
71// Atm Cell Loss Priority Clp Qos Mapping
72// The value 0 specifies that the ONU uses its internal default. (R, W, setbycreate) (optional) (1
73// byte)
74//
75// Timeout Mode
76// The value 0 specifies that the ONU uses its internal default. (R, W, setbycreate) (optional) (1
77// byte)
78//
79// Pw Atm Mapping Table
80// (R,-W) (mandatory) (21N bytes, where N is the number of entries in the list)
81//
82type PwAtmConfigurationData struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
87func init() {
88 pwatmconfigurationdataBME = &ManagedEntityDefinition{
89 Name: "PwAtmConfigurationData",
90 ClassID: 337,
91 MessageTypes: mapset.NewSetWith(
92 Create,
93 Delete,
94 Get,
95 GetNext,
96 Set,
97 ),
98 AllowedAttributeMask: 0xff00,
99 AttributeDefinitions: AttributeDefinitionMap{
100 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
101 1: ByteField("TpType", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
102 2: Uint16Field("TransportTpPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
103 3: Uint16Field("PptpAtmUniPointer", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
104 4: Uint16Field("MaxCEllCOncatenation", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
105 5: Uint16Field("FarEndMAxCEllCOncatenation", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
106 6: ByteField("AtmCellLossPriorityClpQosMapping", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6),
107 7: ByteField("TimeoutMode", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7),
108 8: TableField("PwAtmMappingTable", TableAttributeType, 0x0100, TableInfo{nil, 21}, mapset.NewSetWith(Read, Write), false, false, false, 8),
109 },
110 Access: CreatedByOlt,
111 Support: UnknownSupport,
112 }
113}
114
115// NewPwAtmConfigurationData (class ID 337) creates the basic
116// Managed Entity definition that is used to validate an ME of this type that
117// is received from or transmitted to the OMCC.
118func NewPwAtmConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
119 return NewManagedEntity(*pwatmconfigurationdataBME, params...)
120}