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 EthernetPseudowireParametersClassId ClassID = ClassID(400) |
| 25 | |
| 26 | var ethernetpseudowireparametersBME *ManagedEntityDefinition |
| 27 | |
| 28 | // EthernetPseudowireParameters (class ID #400) |
| 29 | // This ME contains the Ethernet pseudowire parameters. Instances of this ME are created and |
| 30 | // deleted by the OLT. |
| 31 | // |
| 32 | // Relationships |
| 33 | // An instance of this ME is associated with an instance of the PW Ethernet configuration data ME. |
| 34 | // |
| 35 | // Attributes |
| 36 | // Managed Entity Id |
| 37 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 38 | // identical ID, this ME is implicitly linked to an instance of the PW Ethernet configuration data |
| 39 | // ME. (R, set-by-create) (mandatory) (2 bytes) |
| 40 | // |
| 41 | // Mtu |
| 42 | // MTU: This attribute identifies the maximum transmission unit (bytes) that can be received from |
| 43 | // the CPE in the upstream direction. Larger frames are discarded. (R, W, set-by-create) |
| 44 | // (mandatory) (2 bytes) |
| 45 | // |
| 46 | type EthernetPseudowireParameters struct { |
| 47 | ManagedEntityDefinition |
| 48 | Attributes AttributeValueMap |
| 49 | } |
| 50 | |
| 51 | func init() { |
| 52 | ethernetpseudowireparametersBME = &ManagedEntityDefinition{ |
| 53 | Name: "EthernetPseudowireParameters", |
| 54 | ClassID: 400, |
| 55 | MessageTypes: mapset.NewSetWith( |
| 56 | Create, |
| 57 | Delete, |
| 58 | Get, |
| 59 | Set, |
| 60 | ), |
| 61 | AllowedAttributeMask: 0X8000, |
| 62 | AttributeDefinitions: AttributeDefinitionMap{ |
| 63 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 64 | 1: Uint16Field("Mtu", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1), |
| 65 | }, |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // NewEthernetPseudowireParameters (class ID 400 creates the basic |
| 70 | // Managed Entity definition that is used to validate an ME of this type that |
| 71 | // is received from the wire, about to be sent on the wire. |
| 72 | func NewEthernetPseudowireParameters(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 73 | return NewManagedEntity(ethernetpseudowireparametersBME, params...) |
| 74 | } |