Pārlūkot izejas kodu

Se agregaron algunos detalles para hacerlo compatible con ZTE.

Maximiliano Schvindt 7 gadi atpakaļ
vecāks
revīzija
fa94817d8f

+ 1 - 0
app/AppKernel.php

@@ -44,6 +44,7 @@ class AppKernel extends Kernel
             new FiberhomeBundle\FiberhomeBundle(),
             new HuaweiBundle\HuaweiBundle(),
             new FiberlinkBundle\FiberlinkBundle(),
+            new ZteBundle\ZteBundle(),
             new StatsDBundle\StatsDBundle(),
             new GeoserverBundle\GeoserverBundle(),
             new LeafletBundle\LeafletBundle(),

+ 1 - 1
src/StatsBundle/Command/StatsPonPortCommand.php

@@ -52,7 +52,7 @@ class StatsPonPortCommand extends BaseCommand
         if($this->lock($flag)) {return;}
         
         $ponsCached = $this->getData($key_pon_stats, true);
-        
+
         if(empty($ponsCached)) {
             $this->output->writeln("Se requiere {$key_pon_stats}.");
             $this->removeLock($flag);

+ 4 - 0
src/StatsBundle/Controller/OltReportController.php

@@ -192,7 +192,11 @@ class OltReportController extends Controller
         $dataCached = $redis->get($key_olt_scan);
         $bandwidthCached = $redis->get($key_olt_pon_bandwidth);
         $restPercent = $sum = $total = $count = $totalIn = $totalOut = 0;
+
         foreach($dataCached as $index => $pon) {
+            
+            if(isset($pon['nexo'])) continue;
+
             if(isset($bandwidthCached[$index])) {
                 $in = number_format($bandwidthCached[$index]['inBand'] / 1048576, 2);
                 $out = number_format($bandwidthCached[$index]['outBand'] / 1048576, 2);