blob: e0d149b4ee76d635bcf8620389469911dff81749 [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// MacBridgePortIcmpv6ProcessPreAssignTableClassID is the 16-bit ID for the OMCI
26// Managed entity MAC bridge port ICMPv6 process pre-assign table
27const MacBridgePortIcmpv6ProcessPreAssignTableClassID ClassID = ClassID(348)
28
29var macbridgeporticmpv6processpreassigntableBME *ManagedEntityDefinition
30
31// MacBridgePortIcmpv6ProcessPreAssignTable (class ID #348)
32// This ME provides an approach to ICMPv6 message processing configuration to those ONUs that
33// support IPv6 awareness. For every message, the MAC bridge port ICMPv6 process pre-assign table
34// can designate a forward, discard or snoop operation. The ONU creates or deletes an instance of
35// this ME automatically upon creation or deletion of a MAC bridge port configuration data ME.
36//
37// The MAC bridge port ICMPv6 process pre-assign table ME filters layer 2 traffic between the UNI
38// and ANI. The operation of this ME is completely independent of the operation and traffic
39// generated or received by a possible IPv6 host config data ME.
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
49// data ME. (R) (mandatory) (2-bytes)
50//
51// Icmpv6 Error Messages Processing
52// ICMPv6 error messages processing: (R,-W) (mandatory) (1-byte)
53//
54// Icmpv6 Informational Messages Processing
55// ICMPv6 informational messages processing: (R,-W) (mandatory) (1-byte)
56//
57// Router Solicitation Processing
58// Router solicitation processing: (R,-W) (mandatory) (1-byte)
59//
60// Router Advertisement Processing
61// Router advertisement processing: (R,-W) (mandatory) (1-byte)
62//
63// Neighbour Solicitation Processing
64// Neighbour solicitation processing: (R,-W) (mandatory) (1-byte)
65//
66// Neighbour Advertisement Processing
67// Neighbour advertisement processing: (R,-W) (mandatory) (1-byte)
68//
69// Redirect Processing
70// Redirect processing: (R,-W) (mandatory) (1-byte)
71//
72// Multicast Listener Query Processing
73// NOTE - If the ONU participates in multicast services, MLD queries should be controlled through
74// the multicast operations profile ME. In such a case, it is strongly recommended not to provision
75// the downstream direction of the multicast listener query processing attribute to any value other
76// than forwarding.
77//
78// Unknown Icmpv6 Processing
79// Unknown ICMPv6 processing: (R,-W) (mandatory) (1-byte)
80//
81type MacBridgePortIcmpv6ProcessPreAssignTable struct {
82 ManagedEntityDefinition
83 Attributes AttributeValueMap
84}
85
86func init() {
87 macbridgeporticmpv6processpreassigntableBME = &ManagedEntityDefinition{
88 Name: "MacBridgePortIcmpv6ProcessPreAssignTable",
89 ClassID: 348,
90 MessageTypes: mapset.NewSetWith(
91 Get,
92 ),
93 AllowedAttributeMask: 0xff80,
94 AttributeDefinitions: AttributeDefinitionMap{
95 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
96 1: ByteField("Icmpv6ErrorMessagesProcessing", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
97 2: ByteField("Icmpv6InformationalMessagesProcessing", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
98 3: ByteField("RouterSolicitationProcessing", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
99 4: ByteField("RouterAdvertisementProcessing", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
100 5: ByteField("NeighbourSolicitationProcessing", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
101 6: ByteField("NeighbourAdvertisementProcessing", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
102 7: ByteField("RedirectProcessing", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
103 8: ByteField("MulticastListenerQueryProcessing", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
104 9: ByteField("UnknownIcmpv6Processing", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
105 },
106 Access: CreatedByOnu,
107 Support: UnknownSupport,
108 }
109}
110
111// NewMacBridgePortIcmpv6ProcessPreAssignTable (class ID 348) creates the basic
112// Managed Entity definition that is used to validate an ME of this type that
113// is received from or transmitted to the OMCC.
114func NewMacBridgePortIcmpv6ProcessPreAssignTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
115 return NewManagedEntity(*macbridgeporticmpv6processpreassigntableBME, params...)
116}