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