|
@@ -0,0 +1,207 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace StatsBundle\Entity;
|
|
|
+
|
|
|
+use Doctrine\ORM\Mapping as ORM;
|
|
|
+use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|
|
+use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
|
|
|
+use Symfony\Component\Validator\Constraints as Assert;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ORM\Table
|
|
|
+ * @ORM\Entity
|
|
|
+ * @UniqueEntity(fields={"server", "cmtsDeviceId", "index"}, message="errors.duplicate_key")
|
|
|
+ * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"server_id", "cmts_device_id", "index"})})
|
|
|
+ */
|
|
|
+class CmtsInterfaceDescription
|
|
|
+{
|
|
|
+
|
|
|
+ use ExtraDataTrait;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="id", type="integer")
|
|
|
+ * @ORM\Id
|
|
|
+ * @ORM\GeneratedValue(strategy="AUTO")
|
|
|
+ */
|
|
|
+ private $id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ private $cmtsDeviceId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToOne(targetEntity="DeviceServer", fetch="EXTRA_LAZY")
|
|
|
+ */
|
|
|
+ protected $server;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="datetime")
|
|
|
+ */
|
|
|
+ protected $updated;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=false)
|
|
|
+ */
|
|
|
+ private $index;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var string
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="string", length=250, nullable=true)
|
|
|
+ */
|
|
|
+ private $name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifMtu;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifSpeed;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=250, nullable=true)
|
|
|
+ */
|
|
|
+ public $ifPhysAddress;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifAdminStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOperStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifLastChange;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInOctets;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInUcastPkts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInNUcastPkts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInDiscards;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInErrors;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifInUnknownProtos;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutOctets;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutUcastPkts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutNUcastPkts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutDiscards;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutErrors;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifOutQLen;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $ifSpecific;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQIncludesContention;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQUnerroreds;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQCorrecteds;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQUncorrectables;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQExtUnerroreds;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQExtCorrecteds;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ public $docsIfSigQExtUncorrectables;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="decimal", precision=9, scale=6, nullable=true)
|
|
|
+ */
|
|
|
+ public $cer;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|