Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 1 | /* |
| 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 | */ |
David K. Bainbridge | d80007b | 2021-04-12 12:22:29 +0000 | [diff] [blame] | 17 | /* |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [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 | // VlanTaggingFilterDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity VLAN tagging filter data |
| 30 | const VlanTaggingFilterDataClassID ClassID = ClassID(84) |
| 31 | |
| 32 | var vlantaggingfilterdataBME *ManagedEntityDefinition |
| 33 | |
| 34 | // VlanTaggingFilterData (class ID #84) |
| 35 | // This ME organizes data associated with VLAN tagging. Instances of this ME are created and |
| 36 | // deleted by the OLT. |
| 37 | // |
| 38 | // Relationships |
| 39 | // An instance of this ME is associated with an instance of a MAC bridge port configuration data |
| 40 | // ME. By definition, tag filtering occurs closer to the MAC bridge than the tagging operation. |
| 41 | // Schematically, the ordering of the functions is as given in Figure 9.3.11-1://// Figure 9.3.11-1 |
| 42 | // |
| 43 | // Attributes |
| 44 | // Managed Entity Id |
| 45 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 46 | // identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration |
| 47 | // data ME. (R, setbycreate) (mandatory) (2-bytes) |
| 48 | // |
| 49 | // Vlan Filter List |
| 50 | // VLAN filter list: This attribute is a list of provisioned tag control information (TCI) values |
| 51 | // for the bridge port. A TCI, comprising user priority, canonical format indicator (CFI) and |
| 52 | // virtual local area network identifier (VID), is represented by 2-bytes. This attribute supports |
| 53 | // up to 12 VLAN entries. The first N are valid, where N is given by the number of entries |
| 54 | // attribute. (R,-W, setbycreate) (mandatory) (24-bytes) |
| 55 | // |
| 56 | // Forward Operation |
| 57 | // Table 9.3.11-1 and the actions listed are discussed in detail in the following. |
| 58 | // |
| 59 | // Number Of Entries |
| 60 | // Number of entries: This attribute specifies the number of valid entries in the VLAN filter list. |
| 61 | // (R,-W, setbycreate) (mandatory) (1-byte) |
| 62 | // |
| 63 | type VlanTaggingFilterData struct { |
| 64 | ManagedEntityDefinition |
| 65 | Attributes AttributeValueMap |
| 66 | } |
| 67 | |
| 68 | func init() { |
| 69 | vlantaggingfilterdataBME = &ManagedEntityDefinition{ |
| 70 | Name: "VlanTaggingFilterData", |
| 71 | ClassID: 84, |
| 72 | MessageTypes: mapset.NewSetWith( |
| 73 | Create, |
| 74 | Delete, |
| 75 | Get, |
| 76 | Set, |
| 77 | ), |
| 78 | AllowedAttributeMask: 0xe000, |
| 79 | AttributeDefinitions: AttributeDefinitionMap{ |
| 80 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 81 | 1: MultiByteField("VlanFilterList", OctetsAttributeType, 0x8000, 24, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 82 | 2: ByteField("ForwardOperation", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 83 | 3: ByteField("NumberOfEntries", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 84 | }, |
| 85 | Access: CreatedByOlt, |
| 86 | Support: UnknownSupport, |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // NewVlanTaggingFilterData (class ID 84) creates the basic |
| 91 | // Managed Entity definition that is used to validate an ME of this type that |
| 92 | // is received from or transmitted to the OMCC. |
| 93 | func NewVlanTaggingFilterData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 94 | return NewManagedEntity(*vlantaggingfilterdataBME, params...) |
| 95 | } |