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