Committing vendored dependencies and generated protos
Change-Id: I349c149b513d9de7d9f60bde2c954a939da2fc54
diff --git a/vendor/github.com/cboling/omci/generated/physicalpathterminationpointvideoani.go b/vendor/github.com/cboling/omci/generated/physicalpathterminationpointvideoani.go
new file mode 100644
index 0000000..494121d
--- /dev/null
+++ b/vendor/github.com/cboling/omci/generated/physicalpathterminationpointvideoani.go
@@ -0,0 +1,157 @@
+/*
+ * 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"
+
+const PhysicalPathTerminationPointVideoAniClassId ClassID = ClassID(90)
+
+var physicalpathterminationpointvideoaniBME *ManagedEntityDefinition
+
+// PhysicalPathTerminationPointVideoAni (class ID #90)
+// This ME represents an RF video ANI in the ONU, where physical paths terminate and physical path
+// level functions are performed.
+//
+// The ONU automatically creates an instance of this ME per port as follows.
+//
+// • When the ONU has video ANI ports built into its factory configuration.
+//
+// • When a cardholder is provisioned to expect a circuit pack of the video ANI type.
+//
+// • When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the video
+// ANI type. Note that the installation of a plug-and-play card may indicate the presence of video
+// ANI ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate a
+// port-mapping package that specifies video ANI ports.
+//
+// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
+// expect a video ANI circuit pack, nor is it equipped with a video ANI circuit pack.
+//
+// Relationships
+// An instance of this ME is associated with each instance of a real or pre-provisioned video ANI
+// 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 ANI. 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)
+//
+// 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)
+//
+// 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)
+//
+// Frequency Range Low
+// (R) (mandatory) (1 byte)
+//
+// Frequency Range High
+// (R) (mandatory) (1 byte)
+//
+// Signal Capability
+// (R) (mandatory) (1 byte)
+//
+// Optical Signal Level
+// (R) (optional) (1 byte)
+//
+// Pilot Signal Level
+// (R) (optional) (1 byte)
+//
+// Signal Level Min
+// Signal level min: This attribute indicates the minimum optical RF power per channel that results
+// in a CNR of 47 dBc for a channel of 4.5 MHz bandwidth at a receive optical power of –5 dBm. The
+// unit of this attribute is decibel-microwatt optical. (R) (mandatory) (1 byte)
+//
+// Signal Level Max
+// Signal level max: This attribute indicates the maximum optical RF power per channel that results
+// in a CTB of –57 dBc for an 80-channel ensemble of carriers at a perchannel optical modulation
+// index (OMI) of 3.5%. The unit of this attribute is decibel-microwatt optical. (R) (mandatory)
+// (1 byte)
+//
+// Pilot Frequency
+// (R, W) (optional) (4 bytes)
+//
+// Agc Mode
+// (R, W) (optional) (1 byte)
+//
+// Agc Setting
+// (R, W) (optional) (1 byte)
+//
+// Video Lower Optical Threshold
+// NOTE – Because the power measurement returned in the optical signal level attribute has a
+// resolution of 1 dB, it is possible that the measured value could appear to be in-range, even
+// though an out-of-range alarm has been declared against a threshold with 0.1 dB resolution.
+//
+// Video Upper Optical Threshold
+// Video upper optical threshold: This attribute specifies the optical level used to declare the
+// video OOR high alarm. Valid values are –12 to +6 dBm in 0.1 dB increments, represented as a 2s
+// complement integer. (Coding –120 to +60, 0x00 = 0 dBm, 0x88 = –12.0 dBm, etc.) Upon ME
+// instantiation, the ONU sets this attribute to 0x19 (+2.5 dBm). (R, W) (optional) (1 byte)
+//
+type PhysicalPathTerminationPointVideoAni struct {
+ ManagedEntityDefinition
+ Attributes AttributeValueMap
+}
+
+func init() {
+ physicalpathterminationpointvideoaniBME = &ManagedEntityDefinition{
+ Name: "PhysicalPathTerminationPointVideoAni",
+ ClassID: 90,
+ MessageTypes: mapset.NewSetWith(
+ Get,
+ Set,
+ ),
+ AllowedAttributeMask: 0XFFFF,
+ AttributeDefinitions: AttributeDefinitionMap{
+ 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
+ 1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
+ 2: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 2),
+ 3: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 3),
+ 4: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
+ 5: ByteField("FrequencyRangeLow", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
+ 6: ByteField("FrequencyRangeHigh", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
+ 7: ByteField("SignalCapability", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
+ 8: ByteField("OpticalSignalLevel", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
+ 9: ByteField("PilotSignalLevel", 0, mapset.NewSetWith(Read), false, false, true, false, 9),
+ 10: ByteField("SignalLevelMin", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
+ 11: ByteField("SignalLevelMax", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
+ 12: Uint32Field("PilotFrequency", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
+ 13: ByteField("AgcMode", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
+ 14: ByteField("AgcSetting", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 14),
+ 15: ByteField("VideoLowerOpticalThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 15),
+ 16: ByteField("VideoUpperOpticalThreshold", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 16),
+ },
+ }
+}
+
+// NewPhysicalPathTerminationPointVideoAni (class ID 90 creates the basic
+// Managed Entity definition that is used to validate an ME of this type that
+// is received from the wire, about to be sent on the wire.
+func NewPhysicalPathTerminationPointVideoAni(params ...ParamData) (*ManagedEntity, OmciErrors) {
+ return NewManagedEntity(physicalpathterminationpointvideoaniBME, params...)
+}