-
Notifications
You must be signed in to change notification settings - Fork 5
/
macbridgeporticmpv6processpre-assigntable.go
114 lines (107 loc) · 5.3 KB
/
macbridgeporticmpv6processpre-assigntable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// MacBridgePortIcmpv6ProcessPreAssignTableClassID is the 16-bit ID for the OMCI
// Managed entity MAC bridge port ICMPv6 process pre-assign table
const MacBridgePortIcmpv6ProcessPreAssignTableClassID ClassID = ClassID(348)
var macbridgeporticmpv6processpreassigntableBME *ManagedEntityDefinition
// MacBridgePortIcmpv6ProcessPreAssignTable (class ID #348)
// This ME provides an approach to ICMPv6 message processing configuration to those ONUs that
// support IPv6 awareness. For every message, the MAC bridge port ICMPv6 process pre-assign table
// can designate a forward, discard or snoop operation. The ONU creates or deletes an instance of
// this ME automatically upon creation or deletion of a MAC bridge port configuration data ME.
//
// The MAC bridge port ICMPv6 process pre-assign table ME filters layer 2 traffic between the UNI
// and ANI. The operation of this ME is completely independent of the operation and traffic
// generated or received by a possible IPv6 host config data ME.
//
// Relationships
// An instance of this ME is associated with an instance of a MAC bridge port configuration data
// ME.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
// data ME. (R) (mandatory) (2-bytes)
//
// Icmpv6 Error Messages Processing
// ICMPv6 error messages processing: (R,-W) (mandatory) (1-byte)
//
// Icmpv6 Informational Messages Processing
// ICMPv6 informational messages processing: (R,-W) (mandatory) (1-byte)
//
// Router Solicitation Processing
// Router solicitation processing: (R,-W) (mandatory) (1-byte)
//
// Router Advertisement Processing
// Router advertisement processing: (R,-W) (mandatory) (1-byte)
//
// Neighbour Solicitation Processing
// Neighbour solicitation processing: (R,-W) (mandatory) (1-byte)
//
// Neighbour Advertisement Processing
// Neighbour advertisement processing: (R,-W) (mandatory) (1-byte)
//
// Redirect Processing
// Redirect processing: (R,-W) (mandatory) (1-byte)
//
// Multicast Listener Query Processing
// NOTE - If the ONU participates in multicast services, MLD queries should be controlled through
// the multicast operations profile ME. In such a case, it is strongly recommended not to provision
// the downstream direction of the multicast listener query processing attribute to any value other
// than forwarding.
//
// Unknown Icmpv6 Processing
// Unknown ICMPv6 processing: (R,-W) (mandatory) (1-byte)
//
type MacBridgePortIcmpv6ProcessPreAssignTable struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
macbridgeporticmpv6processpreassigntableBME = &ManagedEntityDefinition{
Name: "MacBridgePortIcmpv6ProcessPreAssignTable",
ClassID: 348,
MessageTypes: mapset.NewSetWith(
Get,
),
AllowedAttributeMask: 0XFF80,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
1: ByteField("Icmpv6ErrorMessagesProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
2: ByteField("Icmpv6InformationalMessagesProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
3: ByteField("RouterSolicitationProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
4: ByteField("RouterAdvertisementProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
5: ByteField("NeighbourSolicitationProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
6: ByteField("NeighbourAdvertisementProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 6),
7: ByteField("RedirectProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
8: ByteField("MulticastListenerQueryProcessing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8),
9: ByteField("UnknownIcmpv6Processing", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 9),
},
}
}
// NewMacBridgePortIcmpv6ProcessPreAssignTable (class ID 348 creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from the wire, about to be sent on the wire.
func NewMacBridgePortIcmpv6ProcessPreAssignTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*macbridgeporticmpv6processpreassigntableBME, params...)
}