blob: 5ec16b53bb0ca6b00b634d8d6f4e2ef38edcd94d [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 EfmBondingLinkClassId ClassID = ClassID(420)
25
26var efmbondinglinkBME *ManagedEntityDefinition
27
28// EfmBondingLink (class ID #420)
29// The EFM bonding link represents a link that can be bonded with other links to form a group. In
30// [IEEE 802.3], a bonding group is known as a PAF and a link is known as a PME. Instances of this
31// ME are created and deleted by the OLT.
32//
33// Relationships
34// An instance of this ME may be associated with zero or one instance of an EFM bonding group.
35//
36// Attributes
37// Managed Entity Id
38// NOTE – This attribute has the same meaning as the Stream ID in clause C.3.1.2 of [ITU-T
39// G.998.2], except that it cannot be changed. (R, setbycreate) (mandatory) (2 bytes)
40//
41// Associated Group Me Id
42// Associated group ME ID: This attribute is the ME ID of the bonding group to which this link is
43// associated. Changing this attribute moves the link from one group to another. Setting this
44// attribute to an ME ID that has not yet been provisioned will result in this link being placed in
45// a single-link group that contains only this link. The default value for this attribute is the
46// null pointer, 0xFFFF. (R, W, setbycreate) (mandatory) (2 bytes)
47//
48// Link Alarm Enable
49// (R, W, setbycreate) (mandatory) (1 bytes)
50//
51type EfmBondingLink struct {
52 ManagedEntityDefinition
53 Attributes AttributeValueMap
54}
55
56func init() {
57 efmbondinglinkBME = &ManagedEntityDefinition{
58 Name: "EfmBondingLink",
59 ClassID: 420,
60 MessageTypes: mapset.NewSetWith(
61 Create,
62 Delete,
63 Get,
64 Set,
65 ),
66 AllowedAttributeMask: 0XC000,
67 AttributeDefinitions: AttributeDefinitionMap{
68 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
69 1: Uint16Field("AssociatedGroupMeId", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
70 2: ByteField("LinkAlarmEnable", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
71 },
72 }
73}
74
75// NewEfmBondingLink (class ID 420 creates the basic
76// Managed Entity definition that is used to validate an ME of this type that
77// is received from the wire, about to be sent on the wire.
78func NewEfmBondingLink(params ...ParamData) (*ManagedEntity, OmciErrors) {
79 return NewManagedEntity(efmbondinglinkBME, params...)
80}