|
@@ -349,23 +349,36 @@ class Cablemodem implements DeviceInterface, TenancyIdTraitInterface, LocationIn
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return boolean
|
|
|
- */
|
|
|
- public function getMtaEnabled()
|
|
|
- {
|
|
|
- return $this->mtaEnabled;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param boolean $mtaEnabled
|
|
|
- *
|
|
|
- * @return Cablemodem
|
|
|
- */
|
|
|
- public function setMtaEnabled($mtaEnabled)
|
|
|
- {
|
|
|
- $this->mtaEnabled = $mtaEnabled;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
+ * @return boolean
|
|
|
+ */
|
|
|
+ public function getMtaEnabled()
|
|
|
+ {
|
|
|
+ return $this->mtaEnabled;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param boolean $mtaEnabled
|
|
|
+ *
|
|
|
+ * @return Cablemodem
|
|
|
+ */
|
|
|
+ public function setMtaEnabled($mtaEnabled)
|
|
|
+ {
|
|
|
+ $this->mtaEnabled = $mtaEnabled;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getDHCPOptions()
|
|
|
+ {
|
|
|
+ $options = "";
|
|
|
+ if ($this->mtaEnabled) {
|
|
|
+ $options .= "option option122.dhcp-server 255.255.255.255;\r\noption option122.provisioning-type \"BASIC.1\";\r\n";
|
|
|
+ }
|
|
|
+
|
|
|
+ return $options;
|
|
|
+ }
|
|
|
|
|
|
}
|