Explorar el Código

Updated the extradata

Jean Sumara Leopoldo hace 5 años
padre
commit
6965ba610c

+ 1 - 3
src/FTTHBundle/Admin/OLTAdmin.php

@@ -111,9 +111,7 @@ class OLTAdmin extends WorkflowBaseAdmin
                     ->with('olt_execute_time')
                         ->add('executeSnmp')
                         ->add('timeScan', 'integer', array('attr' => array('min' => 0)))
-                        ->add('timeOnuStats', 'integer', array('attr' => array('min' => 0)))
-                        ->add('timePonStats', 'integer', array('attr' => array('min' => 0)))
-                        ->add('timeOltOctets', 'integer', array('attr' => array('min' => 0)))
+                        ->add('timeOltScan', 'integer', array('attr' => array('min' => 0)))
                     ->end()
                 ->end()
                 ->tab('Backups')

+ 9 - 66
src/FTTHBundle/Entity/OLT.php

@@ -161,19 +161,9 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
     protected $timeScan = 10;
 
     /**
-     * @ORM\Column(type="integer", options={"unsigned":true, "default":5})
-     */
-    protected $timeOltOctets = 5;
-
-    /**
-     * @ORM\Column(type="integer", options={"unsigned":true, "default":5})
-     */
-    protected $timePonStats = 5;
-
-    /**
-     * @ORM\Column(type="integer", options={"unsigned":true, "default":5})
+     * @ORM\Column(type="integer", options={"unsigned":true, "default":10})
      */
-    protected $timeOnuStats = 5;
+    protected $timeOltScan = 10;
 
     /**
      * @ORM\Column(type="string", nullable=true)
@@ -440,10 +430,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
 
         $deviceExtraData['executeSnmp'] = $this->executeSnmp;
         $deviceExtraData['timeScan'] = $this->timeScan;
-        $deviceExtraData['timeOnuStats'] = $this->timeOnuStats;
-        $deviceExtraData['timePonStats'] = $this->timePonStats;
-        $deviceExtraData['timeOltOctets'] = $this->timeOltOctets;
-        $deviceExtraData['timeDiscovery'] = $this->timeDiscovery;
+        $deviceExtraData['timeOltScan'] = $this->timeOltScan;
 
         $deviceData['extraData'] = json_encode($deviceExtraData);
 
@@ -493,63 +480,19 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
     }
 
     /**
-     * Set timeOltOctets
-     *
-     * @param integer $timeOltOctets
-     */
-    public function setTimeOltOctets($timeOltOctets)
-    {
-        $this->timeOltOctets = $timeOltOctets;
-    }
-
-    /**
-     * Get timeOltOctets
-     *
-     * @return integer
-     */
-    public function getTimeOltOctets()
-    {
-        return $this->timeOltOctets;
-    }
-
-    /**
-     * Set timeOnuStats
-     *
-     * @param integer $timeOnuStats
-     */
-    public function setTimeOnuStats($timeOnuStats)
-    {
-        $this->timeOnuStats = $timeOnuStats;
-    }
-
-    /**
-     * Get timeOnuStats
-     *
-     * @return integer
-     */
-    public function getTimeOnuStats()
-    {
-        return $this->timeOnuStats;
-    }
-
-    /**
-     * Set timePonStats
-     *
-     * @param integer $timePonStats
+     * @return int
      */
-    public function setTimePonStats($timePonStats)
+    public function getTimeOltScan()
     {
-        $this->timePonStats = $timePonStats;
+        return $this->timeOltScan;
     }
 
     /**
-     * Get timePonStats
-     *
-     * @return integer
+     * @param int $timeOltScan
      */
-    public function getTimePonStats()
+    public function setTimeOltScan($timeOltScan)
     {
-        return $this->timePonStats;
+        $this->timeOltScan = $timeOltScan;
     }
 
     /**

+ 2 - 4
src/FTTHBundle/Resources/translations/FTTHBundle.es.yml

@@ -130,10 +130,8 @@ form:
     label_nap: NAP
     label_extra_data: Extra Data
     label_library: Librería
-    label_time_scan: Escanear ONUs y PON PORTs
-    label_time_pon_stats: Estadísticas de PON PORTs
-    label_time_onu_stats: Estadísticas de ONUs
-    label_time_olt_octets: Tráfico de OLT
+    label_time_scan: Escanear ONUs
+    label_time_olt_scan: Escanear OLTs
     label_map: Mapa
     label_slot: Slot
     label_link: Link