blob: a977b8d26d7a30b7a00c49048fc89f2818c692d3 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// PwEthernetConfigurationDataClassID is the 16-bit ID for the OMCI
26// Managed entity PW Ethernet configuration data
27const PwEthernetConfigurationDataClassID ClassID = ClassID(339)
28
29var pwethernetconfigurationdataBME *ManagedEntityDefinition
30
31// PwEthernetConfigurationData (class ID #339)
32// This ME contains the Ethernet pseudowire configuration data. Instances of this ME are created
33// and deleted by the OLT.
34//
35// Relationships
36// An instance of this ME is associated with an instance of the MPLS pseudowire TP ME with a
37// pseudowire type attribute equal to the following.//// 5 Ethernet
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R,
42// setbycreate)-(mandatory) (2 bytes)
43//
44// Mpls Pseudowire Tp Pointer
45// MPLS pseudowire TP pointer: This attribute points to an instance of the MPLS pseudowire TP ME
46// associated with this ME. (R, W, setbycreate) (mandatory) (2 bytes)
47//
48// Tp Type
49// (R,-W, setbycreate) (mandatory) (1-byte)
50//
51// Uni Pointer
52// UNI pointer: This attribute points to the associated instance of a UNI-side ME. The type of UNI
53// is determined by the TP type attribute. (R, W, setbycreate) (mandatory) (2 bytes)
54//
55type PwEthernetConfigurationData struct {
56 ManagedEntityDefinition
57 Attributes AttributeValueMap
58}
59
60func init() {
61 pwethernetconfigurationdataBME = &ManagedEntityDefinition{
62 Name: "PwEthernetConfigurationData",
63 ClassID: 339,
64 MessageTypes: mapset.NewSetWith(
65 Create,
66 Delete,
67 Get,
68 Set,
69 ),
70 AllowedAttributeMask: 0xe000,
71 AttributeDefinitions: AttributeDefinitionMap{
72 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
73 1: Uint16Field("MplsPseudowireTpPointer", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
74 2: ByteField("TpType", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
75 3: Uint16Field("UniPointer", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
76 },
77 Access: CreatedByOlt,
78 Support: UnknownSupport,
79 }
80}
81
82// NewPwEthernetConfigurationData (class ID 339) creates the basic
83// Managed Entity definition that is used to validate an ME of this type that
84// is received from or transmitted to the OMCC.
85func NewPwEthernetConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
86 return NewManagedEntity(*pwethernetconfigurationdataBME, params...)
87}