|
@@ -94,6 +94,11 @@ class NAS implements TenancyIdTraitInterface, DeviceInterface, LocationInterface
|
|
|
*/
|
|
|
private $acctEnabled;
|
|
|
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", nullable=true, columnDefinition="BOOLEAN DEFAULT TRUE")
|
|
|
+ */
|
|
|
+ protected $executeSnmp = true;
|
|
|
+
|
|
|
/**
|
|
|
* @return string
|
|
|
*/
|
|
@@ -262,6 +267,22 @@ class NAS implements TenancyIdTraitInterface, DeviceInterface, LocationInterface
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
+ public function isExecuteSnmp()
|
|
|
+ {
|
|
|
+ return $this->executeSnmp;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param bool $executeSnmp
|
|
|
+ */
|
|
|
+ public function setExecuteSnmp($executeSnmp)
|
|
|
+ {
|
|
|
+ $this->executeSnmp = $executeSnmp;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return array
|
|
|
*/
|
|
@@ -279,7 +300,8 @@ class NAS implements TenancyIdTraitInterface, DeviceInterface, LocationInterface
|
|
|
'snmpVersion' => $this->snmpVersion,
|
|
|
'radiusPassword' => $this->radiusPassword,
|
|
|
'acctEnabled' => $this->acctEnabled,
|
|
|
- 'description' => $this->description
|
|
|
+ 'description' => $this->description,
|
|
|
+ 'executeSnmp' => $this->executeSnmp
|
|
|
);
|
|
|
|
|
|
if ($this->model) {
|