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