Added igmptable code to status.tv

This commit is contained in:
Martin Schröder 2015-05-19 17:29:41 +02:00 committed by Martin Schröder
parent 34c91ff769
commit c217973005
4 changed files with 22 additions and 8 deletions

View file

@ -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;

View file

@ -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){

View file

@ -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>

View file

@ -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;
});
}); });