-
Notifications
You must be signed in to change notification settings - Fork 5
/
physicalpathterminationpointethernetuni.go
160 lines (153 loc) · 7.55 KB
/
physicalpathterminationpointethernetuni.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// PhysicalPathTerminationPointEthernetUniClassID is the 16-bit ID for the OMCI
// Managed entity Physical path termination point Ethernet UNI
const PhysicalPathTerminationPointEthernetUniClassID ClassID = ClassID(11)
var physicalpathterminationpointethernetuniBME *ManagedEntityDefinition
// PhysicalPathTerminationPointEthernetUni (class ID #11)
// This ME represents the point at an Ethernet UNI where the physical path terminates and Ethernet
// physical level functions are performed.
//
// The ONU automatically creates an instance of this ME per port:
//
// o when the ONU has Ethernet ports built into its factory configuration;
//
// o when a cardholder is provisioned to expect a circuit pack of the Ethernet type;
//
// o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the
// Ethernet type. Note that the installation of a plug-and-play card may indicate the presence of
// Ethernet ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate
// a port-mapping package that specifies Ethernet ports.
//
// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
// expect an Ethernet circuit pack, nor is it equipped with an Ethernet circuit pack.
//
// Relationships
// An instance of this ME is associated with each instance of a pre-provisioned or real Ethernet
// port.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
//
// Expected Type
// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
//
// Sensed Type
// (R) (mandatory if the ONU supports circuit packs with configurable interface types, e.g., 10/100
// BASE-T card) (1-byte)
//
// Auto Detection Configuration
// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory for interfaces with
// autodetection options) (1-byte)
//
// Ethernet Loopback Configuration
// Upon ME instantiation, the ONU sets this attribute to 0. (R,-W) (mandatory) (1-byte)
//
// Administrative State
// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
// ME. Administrative state is further described in clause A.1.6. (R,-W) (mandatory) (1-byte)
//
// Operational State
// Operational state: This attribute indicates whether the ME is capable of performing its
// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
//
// Configuration Ind
// The value 0 indicates that the configuration status is unknown (e.g., Ethernet link is not
// established or the circuit pack is not yet installed). Upon ME instantiation, the ONU sets this
// attribute to 0. (R) (mandatory) (1-byte)
//
// Max Frame Size
// Max frame size: This attribute denotes the maximum frame size allowed across this interface.
// Upon ME instantiation, the ONU sets the attribute to 1518. (R,-W) (mandatory for G-PON, optional
// for ITU-T G.986 systems) (2 bytes)
//
// Dte Or Dce Ind
// (R,-W) (mandatory) (1-byte)
//
// Pause Time
// Pause time: This attribute allows the PPTP to ask the subscriber terminal to temporarily suspend
// sending data. Units are in pause quanta (1 pause quantum is 512 bit times of the particular
// implementation). Values: 0..0xFFFF. Upon ME instantiation, the ONU sets this attribute to 0.
// (R,-W) (optional) (2-bytes)
//
// Bridged Or Ip Ind
// Upon ME instantiation, the ONU sets this attribute to 2. (R,-W) (optional) (1-byte)
//
// Arc
// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
//
// Arc Interval
// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
//
// Pppoe Filter
// PPPoE filter: This attribute controls filtering of PPPoE packets on this Ethernet port. The
// value 0 allows packets of all types. The value 1 discards everything but PPPoE packets. The
// default value is 0. (R,-W) (optional) (1-byte)
//
// Power Control
// NOTE - This attribute is the equivalent of the acPSEAdminControl variable defined in clause
// 30.9.1.2.1 of [IEEE 802.3]. Other variables related to PoE appear in the PoE control ME.
//
type PhysicalPathTerminationPointEthernetUni struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
physicalpathterminationpointethernetuniBME = &ManagedEntityDefinition{
Name: "PhysicalPathTerminationPointEthernetUni",
ClassID: 11,
MessageTypes: mapset.NewSetWith(
Get,
Set,
),
AllowedAttributeMask: 0xfffe,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
1: ByteField("ExpectedType", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
2: ByteField("SensedType", 0, mapset.NewSetWith(Read), true, false, false, false, 2),
3: ByteField("AutoDetectionConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
4: ByteField("EthernetLoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
5: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
6: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 6),
7: ByteField("ConfigurationInd", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
8: Uint16Field("MaxFrameSize", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8),
9: ByteField("DteOrDceInd", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 9),
10: Uint16Field("PauseTime", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
11: ByteField("BridgedOrIpInd", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
12: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 12),
13: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
14: ByteField("PppoeFilter", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 14),
15: ByteField("PowerControl", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 15),
},
Access: UnknownAccess,
Support: UnknownSupport,
}
}
// NewPhysicalPathTerminationPointEthernetUni (class ID 11) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewPhysicalPathTerminationPointEthernetUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*physicalpathterminationpointethernetuniBME, params...)
}