mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Added igmptable code to status.tv
This commit is contained in:
parent
34c91ff769
commit
c217973005
4 changed files with 22 additions and 8 deletions
|
|
@ -84,6 +84,7 @@
|
||||||
}).done(function(result){
|
}).done(function(result){
|
||||||
if(!("username" in result.data)) {
|
if(!("username" in result.data)) {
|
||||||
console.log("Session: Not authenticated!");
|
console.log("Session: Not authenticated!");
|
||||||
|
RPC_SESSION_ID = RPC_DEFAULT_SESSION_ID; // reset sid to 000..
|
||||||
deferred.reject();
|
deferred.reject();
|
||||||
} else {
|
} else {
|
||||||
self.$session = result;
|
self.$session = result;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
$juci.module("internet")
|
$juci.module("internet")
|
||||||
.controller("InternetExHostPageCtrl", function($scope, $rpc, $config, $uci, $tr){
|
.controller("InternetExHostPageCtrl", function($scope, $rpc, $config, $uci, $tr){
|
||||||
$scope.config = $config;
|
$scope.config = $config;
|
||||||
|
$scope.wan = {};
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
function(next){
|
function(next){
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,19 @@
|
||||||
<h3>{{'Vodafone TV Channels'|translate}}</h3>
|
<h3>{{'Vodafone TV Channels'|translate}}</h3>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Group IP</th>
|
<th translate>Group IP</th>
|
||||||
<th>Bandwidth Usage (kbps)</th>
|
<th translate>Client IP</th>
|
||||||
<th>PID/CC Error</th>
|
<th translate>LAN Port</th>
|
||||||
<th>LAN Port</th>
|
<th translate>WAN Port</th>
|
||||||
<th>Client IP</th>
|
<th translate>Timeout</th>
|
||||||
|
</tr>
|
||||||
|
<tr ng-repeat="row in igmptable">
|
||||||
|
<td>{{row.group}}</td>
|
||||||
|
<td>{{row.reporter}}</td>
|
||||||
|
<td>{{row.device}}</td>
|
||||||
|
<td>{{row.srcdevice}}</td>
|
||||||
|
<td>{{row.timeout}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr></tr>
|
|
||||||
</table>
|
</table>
|
||||||
</luci-config-section>
|
</luci-config-section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
$juci.module("status")
|
$juci.module("status")
|
||||||
.controller("StatusTVPageCtrl", function($scope){
|
.controller("StatusTVPageCtrl", function($scope, $rpc, gettext){
|
||||||
|
$rpc.router.igmptable().done(function(result){
|
||||||
|
if(!result.table) {
|
||||||
|
$scope.$emit("error", gettext("Unable to retreive igmptable from device!"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$scope.igmptable = result.igmptable;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue