blob: 971fb686290826c8ab06f2d8b9720d4f71199d76 [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// MacBridgePortBridgeTableDataClassID is the 16-bit ID for the OMCI
26// Managed entity MAC bridge port bridge table data
27const MacBridgePortBridgeTableDataClassID ClassID = ClassID(50)
28
29var macbridgeportbridgetabledataBME *ManagedEntityDefinition
30
31// MacBridgePortBridgeTableData (class ID #50)
32// This ME reports status data associated with a bridge port. The ONU automatically creates or
33// deletes an instance of this ME upon the creation or deletion of a MAC bridge port configuration
34// data.
35//
36// Relationships
37// An instance of this ME is associated with an instance of a MAC bridge port configuration data
38// ME.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
44// data ME. (R) (mandatory) (2-bytes)
45//
46// Bridge Table
47// Upon ME instantiation, this attribute is an empty list. (R) (mandatory) (8-*-M-bytes, where M is
48// the number of entries in the list.)
49//
50type MacBridgePortBridgeTableData struct {
51 ManagedEntityDefinition
52 Attributes AttributeValueMap
53}
54
55func init() {
56 macbridgeportbridgetabledataBME = &ManagedEntityDefinition{
57 Name: "MacBridgePortBridgeTableData",
58 ClassID: 50,
59 MessageTypes: mapset.NewSetWith(
60 Get,
61 GetNext,
62 ),
63 AllowedAttributeMask: 0x8000,
64 AttributeDefinitions: AttributeDefinitionMap{
65 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
66 1: TableField("BridgeTable", TableAttributeType, 0x8000, TableInfo{nil, 8}, mapset.NewSetWith(Read), false, false, false, 1),
67 },
68 Access: CreatedByOnu,
69 Support: UnknownSupport,
70 }
71}
72
73// NewMacBridgePortBridgeTableData (class ID 50) creates the basic
74// Managed Entity definition that is used to validate an ME of this type that
75// is received from or transmitted to the OMCC.
76func NewMacBridgePortBridgeTableData(params ...ParamData) (*ManagedEntity, OmciErrors) {
77 return NewManagedEntity(*macbridgeportbridgetabledataBME, params...)
78}