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