Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
62352cbd
Commit
62352cbd
authored
May 28, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(trafficshaper) improve error handling
parent
c85b9ed2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ServiceController.php
...trollers/OPNsense/TrafficShaper/Api/ServiceController.php
+6
-1
index.volt
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
+1
-1
No files found.
src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/ServiceController.php
View file @
62352cbd
...
@@ -49,7 +49,12 @@ class ServiceController extends ApiControllerBase
...
@@ -49,7 +49,12 @@ class ServiceController extends ApiControllerBase
$backend
=
new
Backend
();
$backend
=
new
Backend
();
$backend
->
configdRun
(
"template reload OPNsense.IPFW"
);
$backend
->
configdRun
(
"template reload OPNsense.IPFW"
);
$status
=
$backend
->
configdRun
(
"ipfw reload"
);
$bckresult
=
trim
(
$backend
->
configdRun
(
"ipfw reload"
));
if
(
$bckresult
==
"OK"
)
{
$status
=
"ok"
;
}
else
{
$status
=
"error reloading shaper ("
.
$bckresult
.
")"
;
}
return
array
(
"status"
=>
$status
);
return
array
(
"status"
=>
$status
);
}
else
{
}
else
{
...
...
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
View file @
62352cbd
...
@@ -254,7 +254,7 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -254,7 +254,7 @@ POSSIBILITY OF SUCH DAMAGE.
BootstrapDialog.show({
BootstrapDialog.show({
type: BootstrapDialog.TYPE_WARNING,
type: BootstrapDialog.TYPE_WARNING,
title: "Error reconfiguring trafficshaper",
title: "Error reconfiguring trafficshaper",
message:
JSON.stringify(data)
,
message:
data['status']
,
draggable: true
draggable: true
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment