blob: 972bb6f8e619d9c4ee475e6891153284c7fa2acf [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// MacBridgePortFilterTableDataClassID is the 16-bit ID for the OMCI
29// Managed entity MAC bridge port filter table data
30const MacBridgePortFilterTableDataClassID ClassID = ClassID(49)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var macbridgeportfiltertabledataBME *ManagedEntityDefinition
33
34// MacBridgePortFilterTableData (class ID #49)
35// This ME organizes data associated with a bridge port. The ONU automatically creates or deletes
36// an instance of this ME upon the creation or deletion of a MAC bridge port configuration data ME.
37//
Matteo Scandolof9d43412021-01-12 11:11:34 -080038// NOTE - The OLT should disable the learning mode in the MAC bridge service profile before writing
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070039// to the MAC filter table.
40//
41// Relationships
42// An instance of this ME is associated with an instance of a MAC bridge port configuration data
43// ME.
44//
45// Attributes
46// Managed Entity Id
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
48// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
Matteo Scandolof9d43412021-01-12 11:11:34 -080049// data ME. (R) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070050//
51// Mac Filter Table
Matteo Scandolof9d43412021-01-12 11:11:34 -080052// (R,-W) (Mandatory) (8N bytes, where N is the number of entries in the list)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070053//
54type MacBridgePortFilterTableData struct {
55 ManagedEntityDefinition
56 Attributes AttributeValueMap
57}
58
59func init() {
60 macbridgeportfiltertabledataBME = &ManagedEntityDefinition{
61 Name: "MacBridgePortFilterTableData",
62 ClassID: 49,
63 MessageTypes: mapset.NewSetWith(
64 Get,
65 GetNext,
66 Set,
67 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080068 AllowedAttributeMask: 0x8000,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070069 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080070 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
71 1: TableField("MacFilterTable", TableAttributeType, 0x8000, TableInfo{nil, 8}, mapset.NewSetWith(Read, Write), false, false, false, 1),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070072 },
Matteo Scandolof9d43412021-01-12 11:11:34 -080073 Access: CreatedByOnu,
74 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070075 }
76}
77
Matteo Scandolof9d43412021-01-12 11:11:34 -080078// NewMacBridgePortFilterTableData (class ID 49) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070079// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -080080// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070081func NewMacBridgePortFilterTableData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -080082 return NewManagedEntity(*macbridgeportfiltertabledataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070083}