blob: 209517f55a6dd69a27a539f52c73ea19712002df [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 VlanTaggingFilterDataClassId ClassID = ClassID(84)
25
26var vlantaggingfilterdataBME *ManagedEntityDefinition
27
28// VlanTaggingFilterData (class ID #84)
29// This ME organizes data associated with VLAN tagging. Instances of this ME are created and
30// deleted by the OLT.
31//
32// Relationships
33// An instance of this ME is associated with an instance of a MAC bridge port configuration data
34// ME. By definition, tag filtering occurs closer to the MAC bridge than the tagging operation.
35// Schematically, the ordering of the functions is as given in Figure 9.3.11-1://// Figure 9.3.11-1
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
41// data ME. (R, setbycreate) (mandatory) (2 bytes)
42//
43// Vlan Filter List
44// VLAN filter list: This attribute is a list of provisioned tag control information (TCI) values
45// for the bridge port. A TCI, comprising user priority, canonical format indicator (CFI) and
46// virtual local area network identifier (VID), is represented by 2 bytes. This attribute supports
47// up to 12 VLAN entries. The first N are valid, where N is given by the number of entries
48// attribute. (R, W, setbycreate) (mandatory) (24 bytes)
49//
50// Forward Operation
51// Table 9.3.11-1 and the actions listed are discussed in detail in the following.
52//
53// Number Of Entries
54// Number of entries: This attribute specifies the number of valid entries in the VLAN filter list.
55// (R, W, setbycreate) (mandatory) (1 byte)
56//
57type VlanTaggingFilterData struct {
58 ManagedEntityDefinition
59 Attributes AttributeValueMap
60}
61
62func init() {
63 vlantaggingfilterdataBME = &ManagedEntityDefinition{
64 Name: "VlanTaggingFilterData",
65 ClassID: 84,
66 MessageTypes: mapset.NewSetWith(
67 Create,
68 Delete,
69 Get,
70 Set,
71 ),
72 AllowedAttributeMask: 0XE000,
73 AttributeDefinitions: AttributeDefinitionMap{
74 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
75 1: MultiByteField("VlanFilterList", 24, nil, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
76 2: ByteField("ForwardOperation", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
77 3: ByteField("NumberOfEntries", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
78 },
79 }
80}
81
82// NewVlanTaggingFilterData (class ID 84 creates the basic
83// Managed Entity definition that is used to validate an ME of this type that
84// is received from the wire, about to be sent on the wire.
85func NewVlanTaggingFilterData(params ...ParamData) (*ManagedEntity, OmciErrors) {
86 return NewManagedEntity(vlantaggingfilterdataBME, params...)
87}