|
@@ -3,6 +3,7 @@
|
|
|
namespace FTTHBundle\Entity;
|
|
|
|
|
|
use Base\AdminBundle\Interfaces\PreRemoveInterface;
|
|
|
+use Base\AdminBundle\Interfaces\SoftDeleteInterface;
|
|
|
use Base\AdminBundle\Traits\TenancyIdTrait;
|
|
|
use Base\AdminBundle\Traits\TenancyIdTraitInterface;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
@@ -13,13 +14,12 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|
|
use Symfony\Component\Workflow\Exception\ExceptionInterface;
|
|
|
use DeviceBundle\Validator\Constraints as ValidatorAssert;
|
|
|
use DeviceBundle\Interfaces\DeviceInterface;
|
|
|
+use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity as SoftDeleteable;
|
|
|
use MapBundle\Entity\Interfaces\LocationInterface;
|
|
|
use MapBundle\Entity\Traits\LocationTrait;
|
|
|
use WorkflowBundle\Entity\Interfaces\WorkflowInterface;
|
|
|
use WorkflowBundle\Entity\Traits\WorkflowTrait;
|
|
|
-use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity as SoftDeleteable;
|
|
|
use Gedmo\Mapping\Annotation as Gedmo;
|
|
|
-use Base\AdminBundle\Interfaces\SoftDeleteInterface;
|
|
|
|
|
|
/**
|
|
|
* @ORM\Entity
|
|
@@ -82,6 +82,27 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
*/
|
|
|
protected $sshPass;
|
|
|
|
|
|
+ /**
|
|
|
+ * @var string $enablePass
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
+ */
|
|
|
+ protected $enablePass;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int $port
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ protected $sshPort;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var boolean $sshConnect
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="boolean", options={"default": false})
|
|
|
+ */
|
|
|
+ protected $sshConnect;
|
|
|
+
|
|
|
/**
|
|
|
* @var string $libraryVersion
|
|
|
*
|
|
@@ -654,4 +675,54 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
}
|
|
|
return $resp;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getEnablePass()
|
|
|
+ {
|
|
|
+ return $this->enablePass;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param string $enablePass
|
|
|
+ */
|
|
|
+ public function setEnablePass($enablePass)
|
|
|
+ {
|
|
|
+ $this->enablePass = $enablePass;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getSshPort()
|
|
|
+ {
|
|
|
+ return $this->sshPort;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param int $sshPort
|
|
|
+ */
|
|
|
+ public function setSshPort($sshPort)
|
|
|
+ {
|
|
|
+ $this->sshPort = $sshPort;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
+ public function isSshConnect()
|
|
|
+ {
|
|
|
+ return $this->sshConnect;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param bool $sshConnect
|
|
|
+ */
|
|
|
+ public function setSshConnect($sshConnect)
|
|
|
+ {
|
|
|
+ $this->sshConnect = $sshConnect;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|