blob: 2409ab0bc1a004e00dc52b37b803201a3acbedf9 [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 MacBridgePortFilterPreAssignTableClassId ClassID = ClassID(79)
25
26var macbridgeportfilterpreassigntableBME *ManagedEntityDefinition
27
28// MacBridgePortFilterPreAssignTable (class ID #79)
29// This ME provides an alternate approach to DA filtering from that supported through the MAC
30// bridge port filter table data ME. This alternate approach is useful when all groups of addresses
31// are stored beforehand in the ONU, and the MAC bridge port filter pre-assign table ME designates
32// which groups are valid or invalid for filtering. On a circuit pack in which all groups of
33// addresses are pre-assigned and stored locally, the ONU creates or deletes an instance of this ME
34// automatically upon creation or deletion of a MAC bridge port configuration data ME.
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// Ipv4 Multicast Filtering
47// IPv4 multicast filtering: (R, W) (mandatory) (1 byte)
48//
49// Ipv6 Multicast Filtering
50// IPv6 multicast filtering: (R, W) (mandatory) (1 byte)
51//
52// Ipv4 Broadcast Filtering
53// IPv4 broadcast filtering: (R, W) (mandatory) (1 byte)
54//
55// Rarp Filtering
56// RARP filtering: (R, W) (mandatory) (1 byte)
57//
58// Ipx Filtering
59// IPX filtering: (R, W) (mandatory) (1 byte)
60//
61// Netbeui Filtering
62// NetBEUI filtering: (R, W) (mandatory) (1 byte)
63//
64// Appletalk Filtering
65// AppleTalk filtering: (R, W) (mandatory) (1 byte)
66//
67// Bridge Management Information Filtering
68// 2 Addresses from 01.80.C2.00.00.20 to 01.80.C2.00.00.2F are used for generic attribute
69// registration protocol (GARP) applications.
70//
71// Arp Filtering
72// ARP filtering: (R, W) (mandatory) (1 byte)
73//
74// Point_To_Point Protocol Over Ethernet Pppoe Broadcast Filtering
75// Point-to-point protocol over Ethernet (PPPoE) broadcast filtering: (R, W) (mandatory) (1 byte)
76//
77type MacBridgePortFilterPreAssignTable struct {
78 ManagedEntityDefinition
79 Attributes AttributeValueMap
80}
81
82func init() {
83 macbridgeportfilterpreassigntableBME = &ManagedEntityDefinition{
84 Name: "MacBridgePortFilterPreAssignTable",
85 ClassID: 79,
86 MessageTypes: mapset.NewSetWith(
87 Get,
88 Set,
89 ),
90 AllowedAttributeMask: 0XFFC0,
91 AttributeDefinitions: AttributeDefinitionMap{
92 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
93 1: ByteField("Ipv4MulticastFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
94 2: ByteField("Ipv6MulticastFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
95 3: ByteField("Ipv4BroadcastFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
96 4: ByteField("RarpFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
97 5: ByteField("IpxFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
98 6: ByteField("NetbeuiFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 6),
99 7: ByteField("AppletalkFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
100 8: ByteField("BridgeManagementInformationFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8),
101 9: ByteField("ArpFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 9),
102 10: ByteField("PointToPointProtocolOverEthernetPppoeBroadcastFiltering", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 10),
103 },
104 }
105}
106
107// NewMacBridgePortFilterPreAssignTable (class ID 79 creates the basic
108// Managed Entity definition that is used to validate an ME of this type that
109// is received from the wire, about to be sent on the wire.
110func NewMacBridgePortFilterPreAssignTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
111 return NewManagedEntity(macbridgeportfilterpreassigntableBME, params...)
112}