blob: f1f63d2082cde245f22857723cd4b99533c56d89 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// PhysicalPathTerminationPointEthernetUniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point Ethernet UNI
27const PhysicalPathTerminationPointEthernetUniClassID ClassID = ClassID(11)
28
29var physicalpathterminationpointethernetuniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointEthernetUni (class ID #11)
32// This ME represents the point at an Ethernet UNI where the physical path terminates and Ethernet
33// physical level functions are performed.
34//
35// The ONU automatically creates an instance of this ME per port:
36//
37// o when the ONU has Ethernet ports built into its factory configuration;
38//
39// o when a cardholder is provisioned to expect a circuit pack of the Ethernet type;
40//
41// o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the
42// Ethernet type. Note that the installation of a plug-and-play card may indicate the presence of
43// Ethernet ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate
44// a port-mapping package that specifies Ethernet ports.
45//
46// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
47// expect an Ethernet circuit pack, nor is it equipped with an Ethernet circuit pack.
48//
49// Relationships
50// An instance of this ME is associated with each instance of a pre-provisioned or real Ethernet
51// port.
52//
53// Attributes
54// Managed Entity Id
55// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
56// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
57// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
58//
59// Expected Type
60// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
61//
62// Sensed Type
63// (R) (mandatory if the ONU supports circuit packs with configurable interface types, e.g., 10/100
64// BASE-T card) (1-byte)
65//
66// Auto Detection Configuration
67// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory for interfaces with
68// autodetection options) (1-byte)
69//
70// Ethernet Loopback Configuration
71// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
72//
73// Administrative State
74// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
75// ME. Administrative state is further described in clause A.1.6. (R,-W) (mandatory) (1-byte)
76//
77// Operational State
78// Operational state: This attribute indicates whether the ME is capable of performing its
79// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
80//
81// Configuration Ind
82// The value 0 indicates that the configuration status is unknown (e.g., Ethernet link is not
83// established or the circuit pack is not yet installed). Upon ME instantiation, the ONU sets this
84// attribute to 0. (R) (mandatory) (1-byte)
85//
86// Max Frame Size
87// Max frame size: This attribute denotes the maximum frame size allowed across this interface.
88// Upon ME instantiation, the ONU sets the attribute to 1518. (R,-W) (mandatory for G-PON, optional
89// for ITU-T G.986 systems) (2 bytes)
90//
91// Dte Or Dce Ind
92// (R,-W) (mandatory) (1-byte)
93//
94// Pause Time
95// Pause time: This attribute allows the PPTP to ask the subscriber terminal to temporarily suspend
96// sending data. Units are in pause quanta (1 pause quantum is 512 bit times of the particular
97// implementation). Values: 0..0xFFFF. Upon ME instantiation, the ONU sets this attribute to 0.
98// (R,-W) (optional) (2-bytes)
99//
100// Bridged Or Ip Ind
101// Upon ME instantiation, the ONU sets this attribute to 2. (R,-W) (optional) (1-byte)
102//
103// Arc
104// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
105//
106// Arc Interval
107// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
108//
109// Pppoe Filter
110// PPPoE filter: This attribute controls filtering of PPPoE packets on this Ethernet port. The
111// value 0 allows packets of all types. The value 1 discards everything but PPPoE packets. The
112// default value is 0. (R,-W) (optional) (1-byte)
113//
114// Power Control
115// NOTE - This attribute is the equivalent of the acPSEAdminControl variable defined in clause
116// 30.9.1.2.1 of [IEEE 802.3]. Other variables related to PoE appear in the PoE control ME.
117//
118type PhysicalPathTerminationPointEthernetUni struct {
119 ManagedEntityDefinition
120 Attributes AttributeValueMap
121}
122
123func init() {
124 physicalpathterminationpointethernetuniBME = &ManagedEntityDefinition{
125 Name: "PhysicalPathTerminationPointEthernetUni",
126 ClassID: 11,
127 MessageTypes: mapset.NewSetWith(
128 Get,
129 Set,
130 ),
131 AllowedAttributeMask: 0xfffe,
132 AttributeDefinitions: AttributeDefinitionMap{
133 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
134 1: ByteField("ExpectedType", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
135 2: ByteField("SensedType", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, false, false, 2),
136 3: ByteField("AutoDetectionConfiguration", EnumerationAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
137 4: ByteField("EthernetLoopbackConfiguration", EnumerationAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
138 5: ByteField("AdministrativeState", EnumerationAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
139 6: ByteField("OperationalState", EnumerationAttributeType, 0x0400, 0, mapset.NewSetWith(Read), true, true, false, 6),
140 7: ByteField("ConfigurationInd", EnumerationAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
141 8: Uint16Field("MaxFrameSize", UnsignedIntegerAttributeType, 0x0100, 1518, mapset.NewSetWith(Read, Write), false, false, false, 8),
142 9: ByteField("DteOrDceInd", EnumerationAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
143 10: Uint16Field("PauseTime", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
144 11: ByteField("BridgedOrIpInd", EnumerationAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
145 12: ByteField("Arc", EnumerationAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), true, true, false, 12),
146 13: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
147 14: ByteField("PppoeFilter", EnumerationAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
148 15: ByteField("PowerControl", EnumerationAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
149 },
150 Access: CreatedByOnu,
151 Support: UnknownSupport,
152 }
153}
154
155// NewPhysicalPathTerminationPointEthernetUni (class ID 11) creates the basic
156// Managed Entity definition that is used to validate an ME of this type that
157// is received from or transmitted to the OMCC.
158func NewPhysicalPathTerminationPointEthernetUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
159 return NewManagedEntity(*physicalpathterminationpointethernetuniBME, params...)
160}