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