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){
|
||||
if(!("username" in result.data)) {
|
||||
console.log("Session: Not authenticated!");
|
||||
RPC_SESSION_ID = RPC_DEFAULT_SESSION_ID; // reset sid to 000..
|
||||
deferred.reject();
|
||||
} else {
|
||||
self.$session = result;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
$juci.module("internet")
|
||||
.controller("InternetExHostPageCtrl", function($scope, $rpc, $config, $uci, $tr){
|
||||
$scope.config = $config;
|
||||
$scope.wan = {};
|
||||
|
||||
async.parallel([
|
||||
function(next){
|
||||
|
|
|
|||
|
|
@ -7,13 +7,19 @@
|
|||
<h3>{{'Vodafone TV Channels'|translate}}</h3>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Group IP</th>
|
||||
<th>Bandwidth Usage (kbps)</th>
|
||||
<th>PID/CC Error</th>
|
||||
<th>LAN Port</th>
|
||||
<th>Client IP</th>
|
||||
<th translate>Group IP</th>
|
||||
<th translate>Client IP</th>
|
||||
<th translate>LAN Port</th>
|
||||
<th translate>WAN Port</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>
|
||||
</table>
|
||||
</luci-config-section>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
$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