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

(trafficshaper) add template generation to service reload action

parent eed931ab
......@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
*/
namespace OPNsense\Proxy\TrafficShaper;
namespace OPNsense\TrafficShaper\Api;
use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Core\Backend;
......@@ -47,6 +47,9 @@ class ServiceController extends ApiControllerBase
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$backend->configdRun("template reload OPNsense.IPFW");
return array("status" => "ok");
} else {
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