| /* |
| * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| * Copyright 2020-present Open Networking Foundation |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| /* |
| * NOTE: This file was generated, manual edits will be overwritten! |
| * |
| * Generated by 'goCodeGenerator.py': |
| * https://github.com/cboling/OMCI-parser/README.md |
| */ |
| |
| package generated |
| |
| import "github.com/deckarep/golang-set" |
| |
| // PwEthernetConfigurationDataClassID is the 16-bit ID for the OMCI |
| // Managed entity PW Ethernet configuration data |
| const PwEthernetConfigurationDataClassID = ClassID(339) // 0x0153 |
| |
| var pwethernetconfigurationdataBME *ManagedEntityDefinition |
| |
| // PwEthernetConfigurationData (Class ID: #339 / 0x0153) |
| // This ME contains the Ethernet pseudowire configuration data. Instances of this ME are created |
| // and deleted by the OLT. |
| // |
| // Relationships |
| // An instance of this ME is associated with an instance of the MPLS pseudowire TP ME with a |
| // pseudowire type attribute equal to the following.//// 5 Ethernet |
| // |
| // Attributes |
| // Managed Entity Id |
| // This attribute uniquely identifies each instance of this ME. (R, setbycreate)-(mandatory) (2 |
| // bytes) |
| // |
| // Mpls Pseudowire Tp Pointer |
| // This attribute points to an instance of the MPLS pseudowire TP ME associated with this ME. (R, |
| // W, setbycreate) (mandatory) (2 bytes) |
| // |
| // Tp Type |
| // This attribute identifies the type of UNI associated with this Ethernet PW. Valid values are as |
| // follows. |
| // |
| // 1 Physical path termination point Ethernet UNI |
| // |
| // 3 IEEE 802.1p mapper service profile |
| // |
| // 7 Physical path termination point xDSL UNI part 1 |
| // |
| // 11 Virtual Ethernet interface point |
| // |
| // 12 Physical path termination point MoCA UNI |
| // |
| // 13 MAC bridge port configuration data |
| // |
| // Other values are reserved |
| // |
| // (R,-W, setbycreate) (mandatory) (1-byte) |
| // |
| // Uni Pointer |
| // This attribute points to the associated instance of a UNI-side ME. The type of UNI is determined |
| // by the TP type attribute. (R, W, setbycreate) (mandatory) (2 bytes) |
| // |
| type PwEthernetConfigurationData struct { |
| ManagedEntityDefinition |
| Attributes AttributeValueMap |
| } |
| |
| // Attribute name constants |
| |
| const PwEthernetConfigurationData_MplsPseudowireTpPointer = "MplsPseudowireTpPointer" |
| const PwEthernetConfigurationData_TpType = "TpType" |
| const PwEthernetConfigurationData_UniPointer = "UniPointer" |
| |
| func init() { |
| pwethernetconfigurationdataBME = &ManagedEntityDefinition{ |
| Name: "PwEthernetConfigurationData", |
| ClassID: PwEthernetConfigurationDataClassID, |
| MessageTypes: mapset.NewSetWith( |
| Create, |
| Delete, |
| Get, |
| Set, |
| ), |
| AllowedAttributeMask: 0xe000, |
| AttributeDefinitions: AttributeDefinitionMap{ |
| 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 1: Uint16Field(PwEthernetConfigurationData_MplsPseudowireTpPointer, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 2: ByteField(PwEthernetConfigurationData_TpType, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 3: Uint16Field(PwEthernetConfigurationData_UniPointer, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| }, |
| Access: CreatedByOlt, |
| Support: UnknownSupport, |
| } |
| } |
| |
| // NewPwEthernetConfigurationData (class ID 339) creates the basic |
| // Managed Entity definition that is used to validate an ME of this type that |
| // is received from or transmitted to the OMCC. |
| func NewPwEthernetConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| return NewManagedEntity(*pwethernetconfigurationdataBME, params...) |
| } |