blob: 19061728b0b04dcdd03a3b6a35de1c438e6ad1ac [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 Ieee8021PMapperServiceProfileClassId ClassID = ClassID(130)
25
26var ieee8021pmapperserviceprofileBME *ManagedEntityDefinition
27
28// Ieee8021PMapperServiceProfile (class ID #130)
29// This ME associates the priorities of IEEE 802.1p [IEEE 802.1D] priority tagged frames with
30// specific connections. This ME directs upstream traffic to the designated GEM ports. Downstream
31// traffic arriving on any of the IEEE 802.1p mapper's GEM ports is directed to the mapper's root
32// TP. Other mechanisms exist to direct downstream traffic, specifically a direct pointer to a
33// downstream queue from the GEM port network CTP. If such an alternative is used, it should be
34// provisioned to be consistent with the flow model of the mapper.
35//
36// Instances of this ME are created and deleted by the OLT.
37//
38// Relationships
39// At its root, an instance of this ME may be associated with zero or one instance of a PPTP UNI,
40// MAC bridge port configuration data, or any type of IW TP ME that carries IEEE 802 traffic. Each
41// of its eight branches is associated with zero or one GEM IW TP.
42//
43// Attributes
44// Managed Entity Id
45// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
46// (mandatory) (2 bytes)
47//
48// Tp Pointer
49// (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Interwork Tp Pointer For P_Bit Priority 0
52// Interwork TP pointer for P-bit priority 0: (R, W, setbycreate) (mandatory) (2 bytes)
53//
54// Interwork Tp Pointer For P_Bit Priority 1
55// Interwork TP pointer for P-bit priority 1: (R, W, setbycreate) (mandatory) (2 bytes)
56//
57// Interwork Tp Pointer For P_Bit Priority 2
58// Interwork TP pointer for P-bit priority 2: (R, W, setbycreate) (mandatory) (2 bytes)
59//
60// Interwork Tp Pointer For P_Bit Priority 3
61// Interwork TP pointer for P-bit priority 3: (R, W, setbycreate) (mandatory) (2 bytes)
62//
63// Interwork Tp Pointer For P_Bit Priority 4
64// Interwork TP pointer for P-bit priority 4: (R, W, setbycreate) (mandatory) (2 bytes)
65//
66// Interwork Tp Pointer For P_Bit Priority 5
67// Interwork TP pointer for P-bit priority 5: (R, W, setbycreate) (mandatory) (2 bytes)
68//
69// Interwork Tp Pointer For P_Bit Priority 6
70// Interwork TP pointer for P-bit priority 6: (R, W, setbycreate) (mandatory) (2 bytes)
71//
72// Interwork Tp Pointer For P_Bit Priority 7
73// Interwork TP pointer for P-bit priority 7: (R, W, setbycreate) (mandatory) (2 bytes)
74//
75// Unmarked Frame Option
76// Untagged downstream frames are passed through the mapper transparently.
77//
78// Dscp To P Bit Mapping
79// NOTE – If certain bits in the DSCP field are to be ignored in the mapping process, the attribute
80// should be provisioned such that all possible values of those bits produce the same P-bit
81// mapping. This can be applied to the case where instead of full DSCP, the operator wishes to
82// adopt the priority mechanism based on IP precedence, which needs only the three MSBs of the DSCP
83// field.
84//
85// Default P Bit Assumption
86// Default P-bit assumption: This attribute is valid when the unmarked frame option attribute is
87// set to 1. In its LSBs, the default Pbit assumption attribute contains the default PCP field to
88// be assumed. The unmodified frame is then directed to the GEM IW TP indicated by the interwork TP
89// pointer mappings. (R, W, setbycreate) (mandatory) (1 byte)
90//
91// Tp Type
92// (R, W, setbycreate) (optional) (1 byte)
93//
94type Ieee8021PMapperServiceProfile struct {
95 ManagedEntityDefinition
96 Attributes AttributeValueMap
97}
98
99func init() {
100 ieee8021pmapperserviceprofileBME = &ManagedEntityDefinition{
101 Name: "Ieee8021PMapperServiceProfile",
102 ClassID: 130,
103 MessageTypes: mapset.NewSetWith(
104 Create,
105 Delete,
106 Get,
107 Set,
108 ),
109 AllowedAttributeMask: 0XFFF8,
110 AttributeDefinitions: AttributeDefinitionMap{
111 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
112 1: Uint16Field("TpPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
113 2: Uint16Field("InterworkTpPointerForPBitPriority0", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
114 3: Uint16Field("InterworkTpPointerForPBitPriority1", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
115 4: Uint16Field("InterworkTpPointerForPBitPriority2", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4),
116 5: Uint16Field("InterworkTpPointerForPBitPriority3", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 5),
117 6: Uint16Field("InterworkTpPointerForPBitPriority4", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 6),
118 7: Uint16Field("InterworkTpPointerForPBitPriority5", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 7),
119 8: Uint16Field("InterworkTpPointerForPBitPriority6", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 8),
120 9: Uint16Field("InterworkTpPointerForPBitPriority7", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 9),
121 10: ByteField("UnmarkedFrameOption", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 10),
122 11: MultiByteField("DscpToPBitMapping", 24, nil, mapset.NewSetWith(Read, Write), false, false, false, false, 11),
123 12: ByteField("DefaultPBitAssumption", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 12),
124 13: ByteField("TpType", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 13),
125 },
126 }
127}
128
129// NewIeee8021PMapperServiceProfile (class ID 130 creates the basic
130// Managed Entity definition that is used to validate an ME of this type that
131// is received from the wire, about to be sent on the wire.
132func NewIeee8021PMapperServiceProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
133 return NewManagedEntity(ieee8021pmapperserviceprofileBME, params...)
134}