Commit 27f161d9 authored by Ad Schellevis's avatar Ad Schellevis

(trafficshaper) add template generation to service reload action

parent eed931ab
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Proxy\TrafficShaper; namespace OPNsense\TrafficShaper\Api;
use \OPNsense\Base\ApiControllerBase; use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Core\Backend; use \OPNsense\Core\Backend;
...@@ -47,6 +47,9 @@ class ServiceController extends ApiControllerBase ...@@ -47,6 +47,9 @@ class ServiceController extends ApiControllerBase
// close session for long running action // close session for long running action
$this->sessionClose(); $this->sessionClose();
$backend = new Backend();
$backend->configdRun("template reload OPNsense.IPFW");
return array("status" => "ok"); return array("status" => "ok");
} else { } else {
return array("status" => "failed"); return array("status" => "failed");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment