|
@@ -57,28 +57,32 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* @var string $ip
|
|
|
*
|
|
|
- * @ORM\Column(type="string", length=50, nullable=true, unique=true)
|
|
|
+ * @ORM\Column(type="string", length=50, nullable=false, unique=true)
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $ip;
|
|
|
|
|
|
/**
|
|
|
* @var string $snmpCommunity
|
|
|
*
|
|
|
- * @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=false, unique=false)
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $snmpCommunity;
|
|
|
|
|
|
/**
|
|
|
* @var string $sshUser
|
|
|
*
|
|
|
- * @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=false, unique=false)
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $sshUser;
|
|
|
|
|
|
/**
|
|
|
* @var string $sshPass
|
|
|
*
|
|
|
- * @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=false, unique=false)
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $sshPass;
|
|
|
|
|
@@ -92,7 +96,8 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* @var int $port
|
|
|
*
|
|
|
- * @ORM\Column(type="integer", nullable=true)
|
|
|
+ * @ORM\Column(type="integer", nullable=false)
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $sshPort;
|
|
|
|