[SEBA-434] Replacing omci-sim with omci-lib-go
Change-Id: I499afc9ec49bb483467ea93bd6ce3077dd0ccc6e
diff --git a/vendor/github.com/opencord/omci-lib-go/generated/physicalpathterminationpointethernetuni.go b/vendor/github.com/opencord/omci-lib-go/generated/physicalpathterminationpointethernetuni.go
new file mode 100644
index 0000000..063e742
--- /dev/null
+++ b/vendor/github.com/opencord/omci-lib-go/generated/physicalpathterminationpointethernetuni.go
@@ -0,0 +1,166 @@
+/*
+ * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
+ * Copyright 2020-present Open Networking Foundation
+
+ * 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", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
+ 1: ByteField("ExpectedType", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
+ 2: ByteField("SensedType", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, false, false, 2),
+ 3: ByteField("AutoDetectionConfiguration", EnumerationAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
+ 4: ByteField("EthernetLoopbackConfiguration", EnumerationAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
+ 5: ByteField("AdministrativeState", EnumerationAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
+ 6: ByteField("OperationalState", EnumerationAttributeType, 0x0400, 0, mapset.NewSetWith(Read), true, true, false, 6),
+ 7: ByteField("ConfigurationInd", EnumerationAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
+ 8: Uint16Field("MaxFrameSize", UnsignedIntegerAttributeType, 0x0100, 1518, mapset.NewSetWith(Read, Write), false, false, false, 8),
+ 9: ByteField("DteOrDceInd", EnumerationAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
+ 10: Uint16Field("PauseTime", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
+ 11: ByteField("BridgedOrIpInd", EnumerationAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
+ 12: ByteField("Arc", EnumerationAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), true, true, false, 12),
+ 13: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
+ 14: ByteField("PppoeFilter", EnumerationAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
+ 15: ByteField("PowerControl", EnumerationAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
+ },
+ Access: CreatedByOnu,
+ Support: UnknownSupport,
+ Alarms: AlarmMap{
+ 0: "LAN-LOS",
+ },
+ }
+}
+
+// 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...)
+}