blob: 0912f1fc76bb5449942ac9087b8ef656d471f207 [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * 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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * 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 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
Matteo Scandolof9d43412021-01-12 11:11:34 -080018 * 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 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// MacBridgePortFilterPreAssignTableClassID is the 16-bit ID for the OMCI
29// Managed entity MAC bridge port filter pre-assign table
30const MacBridgePortFilterPreAssignTableClassID ClassID = ClassID(79)
31
32var macbridgeportfilterpreassigntableBME *ManagedEntityDefinition
33
34// MacBridgePortFilterPreAssignTable (class ID #79)
35// This ME provides an alternate approach to DA filtering from that supported through the MAC
36// bridge port filter table data ME. This alternate approach is useful when all groups of addresses
37// are stored beforehand in the ONU, and the MAC bridge port filter pre-assign table ME designates
38// which groups are valid or invalid for filtering. On a circuit pack in which all groups of
39// addresses are pre-assigned and stored locally, the ONU creates or deletes an instance of this ME
40// automatically upon creation or deletion of a MAC bridge port configuration data ME.
41//
42// Relationships
43// An instance of this ME is associated with an instance of a MAC bridge port configuration data
44// ME.
45//
46// Attributes
47// Managed Entity Id
48// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
49// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
50// data ME. (R) (mandatory) (2-bytes)
51//
52// Ipv4 Multicast Filtering
53// IPv4 multicast filtering: (R,-W) (mandatory) (1-byte)
54//
55// Ipv6 Multicast Filtering
56// IPv6 multicast filtering: (R,-W) (mandatory) (1-byte)
57//
58// Ipv4 Broadcast Filtering
59// IPv4 broadcast filtering: (R,-W) (mandatory) (1-byte)
60//
61// Rarp Filtering
62// RARP filtering: (R,-W) (mandatory) (1-byte)
63//
64// Ipx Filtering
65// IPX filtering: (R,-W) (mandatory) (1-byte)
66//
67// Netbeui Filtering
68// NetBEUI filtering: (R,-W) (mandatory) (1-byte)
69//
70// Appletalk Filtering
71// AppleTalk filtering: (R,-W) (mandatory) (1-byte)
72//
73// Bridge Management Information Filtering
74// 2 Addresses from 01.80.C2.00.00.20 to 01.80.C2.00.00.2F are used for generic attribute
75// registration protocol (GARP) applications.
76//
77// Arp Filtering
78// ARP filtering: (R,-W) (mandatory) (1-byte)
79//
80// Point_To_Point Protocol Over Ethernet Pppoe Broadcast Filtering
81// Point-to-point protocol over Ethernet (PPPoE) broadcast filtering: (R,-W) (mandatory) (1-byte)
82//
83type MacBridgePortFilterPreAssignTable struct {
84 ManagedEntityDefinition
85 Attributes AttributeValueMap
86}
87
88func init() {
89 macbridgeportfilterpreassigntableBME = &ManagedEntityDefinition{
90 Name: "MacBridgePortFilterPreAssignTable",
91 ClassID: 79,
92 MessageTypes: mapset.NewSetWith(
93 Get,
94 Set,
95 ),
96 AllowedAttributeMask: 0xffc0,
97 AttributeDefinitions: AttributeDefinitionMap{
98 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
99 1: ByteField("Ipv4MulticastFiltering", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
100 2: ByteField("Ipv6MulticastFiltering", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
101 3: ByteField("Ipv4BroadcastFiltering", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
102 4: ByteField("RarpFiltering", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
103 5: ByteField("IpxFiltering", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
104 6: ByteField("NetbeuiFiltering", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
105 7: ByteField("AppletalkFiltering", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
106 8: ByteField("BridgeManagementInformationFiltering", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
107 9: ByteField("ArpFiltering", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
108 10: ByteField("PointToPointProtocolOverEthernetPppoeBroadcastFiltering", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, false, false, 10),
109 },
110 Access: CreatedByOnu,
111 Support: UnknownSupport,
112 }
113}
114
115// NewMacBridgePortFilterPreAssignTable (class ID 79) creates the basic
116// Managed Entity definition that is used to validate an ME of this type that
117// is received from or transmitted to the OMCC.
118func NewMacBridgePortFilterPreAssignTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
119 return NewManagedEntity(*macbridgeportfilterpreassigntableBME, params...)
120}