blob: 9edacadf9dc4516c71056096d415888ea030e14e [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// VlanTaggingFilterDataClassID is the 16-bit ID for the OMCI
29// Managed entity VLAN tagging filter data
30const VlanTaggingFilterDataClassID ClassID = ClassID(84)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var 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
Matteo Scandolof9d43412021-01-12 11:11:34 -080047// data ME. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070048//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080052// virtual local area network identifier (VID), is represented by 2-bytes. This attribute supports
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070053// up to 12 VLAN entries. The first N are valid, where N is given by the number of entries
Matteo Scandolof9d43412021-01-12 11:11:34 -080054// attribute. (R,-W, setbycreate) (mandatory) (24-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055//
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.
Matteo Scandolof9d43412021-01-12 11:11:34 -080061// (R,-W, setbycreate) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070062//
63type VlanTaggingFilterData struct {
64 ManagedEntityDefinition
65 Attributes AttributeValueMap
66}
67
68func init() {
69 vlantaggingfilterdataBME = &ManagedEntityDefinition{
70 Name: "VlanTaggingFilterData",
71 ClassID: 84,
72 MessageTypes: mapset.NewSetWith(
73 Create,
74 Delete,
75 Get,
76 Set,
77 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080078 AllowedAttributeMask: 0xe000,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070079 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080080 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),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070084 },
Matteo Scandolof9d43412021-01-12 11:11:34 -080085 Access: CreatedByOlt,
86 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070087 }
88}
89
Matteo Scandolof9d43412021-01-12 11:11:34 -080090// NewVlanTaggingFilterData (class ID 84) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070091// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -080092// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070093func NewVlanTaggingFilterData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -080094 return NewManagedEntity(*vlantaggingfilterdataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070095}