Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 | */ |
David K. Bainbridge | adf422d | 2021-04-09 16:06:41 +0000 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * 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 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // MacBridgePortIcmpv6ProcessPreAssignTableClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity MAC bridge port ICMPv6 process pre-assign table |
| 30 | const MacBridgePortIcmpv6ProcessPreAssignTableClassID ClassID = ClassID(348) |
| 31 | |
| 32 | var macbridgeporticmpv6processpreassigntableBME *ManagedEntityDefinition |
| 33 | |
| 34 | // MacBridgePortIcmpv6ProcessPreAssignTable (class ID #348) |
| 35 | // This ME provides an approach to ICMPv6 message processing configuration to those ONUs that |
| 36 | // support IPv6 awareness. For every message, the MAC bridge port ICMPv6 process pre-assign table |
| 37 | // can designate a forward, discard or snoop operation. The ONU creates or deletes an instance of |
| 38 | // this ME automatically upon creation or deletion of a MAC bridge port configuration data ME. |
| 39 | // |
| 40 | // The MAC bridge port ICMPv6 process pre-assign table ME filters layer 2 traffic between the UNI |
| 41 | // and ANI. The operation of this ME is completely independent of the operation and traffic |
| 42 | // generated or received by a possible IPv6 host config data ME. |
| 43 | // |
| 44 | // Relationships |
| 45 | // An instance of this ME is associated with an instance of a MAC bridge port configuration data |
| 46 | // ME. |
| 47 | // |
| 48 | // Attributes |
| 49 | // Managed Entity Id |
| 50 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 51 | // identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration |
| 52 | // data ME. (R) (mandatory) (2-bytes) |
| 53 | // |
| 54 | // Icmpv6 Error Messages Processing |
| 55 | // ICMPv6 error messages processing: (R,-W) (mandatory) (1-byte) |
| 56 | // |
| 57 | // Icmpv6 Informational Messages Processing |
| 58 | // ICMPv6 informational messages processing: (R,-W) (mandatory) (1-byte) |
| 59 | // |
| 60 | // Router Solicitation Processing |
| 61 | // Router solicitation processing: (R,-W) (mandatory) (1-byte) |
| 62 | // |
| 63 | // Router Advertisement Processing |
| 64 | // Router advertisement processing: (R,-W) (mandatory) (1-byte) |
| 65 | // |
| 66 | // Neighbour Solicitation Processing |
| 67 | // Neighbour solicitation processing: (R,-W) (mandatory) (1-byte) |
| 68 | // |
| 69 | // Neighbour Advertisement Processing |
| 70 | // Neighbour advertisement processing: (R,-W) (mandatory) (1-byte) |
| 71 | // |
| 72 | // Redirect Processing |
| 73 | // Redirect processing: (R,-W) (mandatory) (1-byte) |
| 74 | // |
| 75 | // Multicast Listener Query Processing |
| 76 | // NOTE - If the ONU participates in multicast services, MLD queries should be controlled through |
| 77 | // the multicast operations profile ME. In such a case, it is strongly recommended not to provision |
| 78 | // the downstream direction of the multicast listener query processing attribute to any value other |
| 79 | // than forwarding. |
| 80 | // |
| 81 | // Unknown Icmpv6 Processing |
| 82 | // Unknown ICMPv6 processing: (R,-W) (mandatory) (1-byte) |
| 83 | // |
| 84 | type MacBridgePortIcmpv6ProcessPreAssignTable struct { |
| 85 | ManagedEntityDefinition |
| 86 | Attributes AttributeValueMap |
| 87 | } |
| 88 | |
| 89 | func init() { |
| 90 | macbridgeporticmpv6processpreassigntableBME = &ManagedEntityDefinition{ |
| 91 | Name: "MacBridgePortIcmpv6ProcessPreAssignTable", |
| 92 | ClassID: 348, |
| 93 | MessageTypes: mapset.NewSetWith( |
| 94 | Get, |
| 95 | ), |
| 96 | AllowedAttributeMask: 0xff80, |
| 97 | AttributeDefinitions: AttributeDefinitionMap{ |
| 98 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 99 | 1: ByteField("Icmpv6ErrorMessagesProcessing", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1), |
| 100 | 2: ByteField("Icmpv6InformationalMessagesProcessing", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2), |
| 101 | 3: ByteField("RouterSolicitationProcessing", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3), |
| 102 | 4: ByteField("RouterAdvertisementProcessing", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4), |
| 103 | 5: ByteField("NeighbourSolicitationProcessing", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5), |
| 104 | 6: ByteField("NeighbourAdvertisementProcessing", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6), |
| 105 | 7: ByteField("RedirectProcessing", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7), |
| 106 | 8: ByteField("MulticastListenerQueryProcessing", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8), |
| 107 | 9: ByteField("UnknownIcmpv6Processing", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9), |
| 108 | }, |
| 109 | Access: CreatedByOnu, |
| 110 | Support: UnknownSupport, |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // NewMacBridgePortIcmpv6ProcessPreAssignTable (class ID 348) creates the basic |
| 115 | // Managed Entity definition that is used to validate an ME of this type that |
| 116 | // is received from or transmitted to the OMCC. |
| 117 | func NewMacBridgePortIcmpv6ProcessPreAssignTable(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 118 | return NewManagedEntity(*macbridgeporticmpv6processpreassigntableBME, params...) |
| 119 | } |