update change ip gateway
This commit is contained in:
@@ -251,11 +251,13 @@ class DeviceController extends Controller {
|
||||
"OldIPAddress" => $OldIpAddress,
|
||||
"NewIPAddress" => $data["Ip"],
|
||||
"NetMask" => $data["SubnetMask"],
|
||||
"GATEIPAddress" => $data["Gateway"],
|
||||
"MAC" => $model->mac_address
|
||||
]);
|
||||
if ($res == 0) {
|
||||
$model->ip_address = $data["Ip"];
|
||||
$model->subnet_mask = $data["SubnetMask"];
|
||||
$model->gateway = $data["Gateway"];
|
||||
$model->save();
|
||||
return ["status" => true];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user