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