mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/udpbroadcastrelay: update controller interface for 24.7; closes #4107
This commit is contained in:
committed by
Franco Fichtner
parent
30fe0beda9
commit
7a533a171b
@@ -1,6 +1,6 @@
|
||||
PLUGIN_NAME= udpbroadcastrelay
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 3
|
||||
PLUGIN_REVISION= 4
|
||||
PLUGIN_COMMENT= Control udpbroadcastrelay processes
|
||||
PLUGIN_DEPENDS= udpbroadcastrelay
|
||||
PLUGIN_MAINTAINER= mjwasley@gmail.com
|
||||
|
||||
-9
@@ -45,9 +45,6 @@ class ServiceController extends ApiMutableModelControllerBase
|
||||
public function statusAction($uuid)
|
||||
{
|
||||
$result = array("result" => "failed", "function" => "status");
|
||||
if ($this->request->isPost()) {
|
||||
$this->sessionClose();
|
||||
}
|
||||
if ($uuid != null) {
|
||||
$mdlUDPBroadcastRelay = new UDPBroadcastRelay();
|
||||
$node = $mdlUDPBroadcastRelay->getNodeByReference('udpbroadcastrelay.' . $uuid);
|
||||
@@ -127,9 +124,6 @@ class ServiceController extends ApiMutableModelControllerBase
|
||||
public function configAction()
|
||||
{
|
||||
$result = array("result" => "failed", "function" => "config");
|
||||
if ($this->request->isPost()) {
|
||||
$this->sessionClose();
|
||||
}
|
||||
$result['result'] = $this->callBackend('template');
|
||||
return $result;
|
||||
}
|
||||
@@ -140,9 +134,6 @@ class ServiceController extends ApiMutableModelControllerBase
|
||||
*/
|
||||
public function reloadAction()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
$this->sessionClose();
|
||||
}
|
||||
$result = $this->configAction();
|
||||
if ($result['result'] == 'OK') {
|
||||
$result['function'] = "reload";
|
||||
|
||||
Reference in New Issue
Block a user