|
@@ -45,25 +45,25 @@ class OLT
|
|
|
protected $ip;
|
|
|
|
|
|
/**
|
|
|
- * @var string $snmp_community
|
|
|
+ * @var string $snmpCommunity
|
|
|
*
|
|
|
* @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
*/
|
|
|
- protected $snmp_community;
|
|
|
+ protected $snmpCommunity;
|
|
|
|
|
|
/**
|
|
|
- * @var string $ssh_user
|
|
|
+ * @var string $sshUser
|
|
|
*
|
|
|
* @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
*/
|
|
|
- protected $ssh_user;
|
|
|
+ protected $sshUser;
|
|
|
|
|
|
/**
|
|
|
- * @var string $ssh_pass
|
|
|
+ * @var string $sshPass
|
|
|
*
|
|
|
* @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
*/
|
|
|
- protected $ssh_pass;
|
|
|
+ protected $sshPass;
|
|
|
|
|
|
/**
|
|
|
* @var string $firmware
|
|
@@ -73,21 +73,22 @@ class OLT
|
|
|
protected $firmware;
|
|
|
|
|
|
/**
|
|
|
- * @var string $library_version
|
|
|
+ * @var string $libraryVersion
|
|
|
*
|
|
|
* @ORM\Column(type="string", length=255, nullable=true, unique=false)
|
|
|
*/
|
|
|
- protected $library_version;
|
|
|
+ protected $libraryVersion;
|
|
|
|
|
|
/**
|
|
|
- * @var boolean $execute_snmp
|
|
|
+ * @var boolean $executeSnmp
|
|
|
*
|
|
|
* @ORM\Column(type="boolean", nullable=true, options={"default":true})
|
|
|
*/
|
|
|
- protected $execute_snmp = true;
|
|
|
+ protected $executeSnmp = true;
|
|
|
|
|
|
/**
|
|
|
* @ORM\ManyToOne(targetEntity="OLTModel", inversedBy="olts", fetch="EXTRA_LAZY")
|
|
|
+ * @ORM\JoinColumn(name="model_id", referencedColumnName="id", onDelete="SET NULL")
|
|
|
*/
|
|
|
protected $model;
|
|
|
|
|
@@ -149,7 +150,7 @@ class OLT
|
|
|
*/
|
|
|
public function getSnmpCommunity()
|
|
|
{
|
|
|
- return $this->snmp_community;
|
|
|
+ return $this->snmpCommunity;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -157,7 +158,7 @@ class OLT
|
|
|
*/
|
|
|
public function getSshUser()
|
|
|
{
|
|
|
- return $this->ssh_user;
|
|
|
+ return $this->sshUser;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -165,7 +166,7 @@ class OLT
|
|
|
*/
|
|
|
public function getSshPass()
|
|
|
{
|
|
|
- return $this->ssh_pass;
|
|
|
+ return $this->sshPass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -181,7 +182,7 @@ class OLT
|
|
|
*/
|
|
|
public function getLibraryVersion()
|
|
|
{
|
|
|
- return $this->library_version;
|
|
|
+ return $this->libraryVersion;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -189,7 +190,7 @@ class OLT
|
|
|
*/
|
|
|
public function getExecuteSnmp()
|
|
|
{
|
|
|
- return $this->execute_snmp;
|
|
|
+ return $this->executeSnmp;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -234,34 +235,34 @@ class OLT
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $snmp_community
|
|
|
+ * @param string $snmpCommunity
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setSnmpCommunity($snmp_community)
|
|
|
+ public function setSnmpCommunity($snmpCommunity)
|
|
|
{
|
|
|
- $this->snmp_community = $snmp_community;
|
|
|
+ $this->snmpCommunity = $snmpCommunity;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $ssh_user
|
|
|
+ * @param string $sshUser
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setSshUser($ssh_user)
|
|
|
+ public function setSshUser($sshUser)
|
|
|
{
|
|
|
- $this->ssh_user = $ssh_user;
|
|
|
+ $this->sshUser = $sshUser;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $ssh_pass
|
|
|
+ * @param string $sshPass
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setSshPass($ssh_pass)
|
|
|
+ public function setSshPass($sshPass)
|
|
|
{
|
|
|
- $this->ssh_pass = $ssh_pass;
|
|
|
+ $this->sshPass = $sshPass;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
@@ -278,23 +279,23 @@ class OLT
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $library_version
|
|
|
+ * @param string $libraryVersion
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setLibraryVersion($library_version)
|
|
|
+ public function setLibraryVersion($libraryVersion)
|
|
|
{
|
|
|
- $this->library_version = $library_version;
|
|
|
+ $this->libraryVersion = $libraryVersion;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param boolean $execute_snmp
|
|
|
+ * @param boolean $executeSnmp
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setExecuteSnmp($execute_snmp)
|
|
|
+ public function setExecuteSnmp($executeSnmp)
|
|
|
{
|
|
|
- $this->execute_snmp = $execute_snmp;
|
|
|
+ $this->executeSnmp = $executeSnmp;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
@@ -368,7 +369,7 @@ class OLT
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return "onu_state";
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
public function getWorkflowType()
|
|
@@ -380,7 +381,7 @@ class OLT
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return "state_machine";
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
}
|