Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 | */ |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 | // PwAtmConfigurationDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity PW ATM configuration data |
| 30 | const PwAtmConfigurationDataClassID ClassID = ClassID(337) |
| 31 | |
| 32 | var 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 | // |
| 82 | type PwAtmConfigurationData struct { |
| 83 | ManagedEntityDefinition |
| 84 | Attributes AttributeValueMap |
| 85 | } |
| 86 | |
| 87 | func init() { |
| 88 | pwatmconfigurationdataBME = &ManagedEntityDefinition{ |
| 89 | Name: "PwAtmConfigurationData", |
| 90 | ClassID: 337, |
| 91 | MessageTypes: mapset.NewSetWith( |
| 92 | Create, |
| 93 | Delete, |
| 94 | Get, |
| 95 | GetNext, |
| 96 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 97 | SetTable, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 98 | ), |
| 99 | AllowedAttributeMask: 0xff00, |
| 100 | AttributeDefinitions: AttributeDefinitionMap{ |
| 101 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 102 | 1: ByteField("TpType", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 103 | 2: Uint16Field("TransportTpPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 104 | 3: Uint16Field("PptpAtmUniPointer", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 105 | 4: Uint16Field("MaxCEllCOncatenation", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4), |
| 106 | 5: Uint16Field("FarEndMAxCEllCOncatenation", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5), |
| 107 | 6: ByteField("AtmCellLossPriorityClpQosMapping", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6), |
| 108 | 7: ByteField("TimeoutMode", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7), |
| 109 | 8: TableField("PwAtmMappingTable", TableAttributeType, 0x0100, TableInfo{nil, 21}, mapset.NewSetWith(Read, Write), false, false, false, 8), |
| 110 | }, |
| 111 | Access: CreatedByOlt, |
| 112 | Support: UnknownSupport, |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // NewPwAtmConfigurationData (class ID 337) creates the basic |
| 117 | // Managed Entity definition that is used to validate an ME of this type that |
| 118 | // is received from or transmitted to the OMCC. |
| 119 | func NewPwAtmConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 120 | return NewManagedEntity(*pwatmconfigurationdataBME, params...) |
| 121 | } |