瀏覽代碼

Added a field OLT timeout and implemented on actions.

Jean Sumara Leopoldo 4 年之前
父節點
當前提交
e54161186b

File diff suppressed because it is too large
+ 4 - 4
app/DoctrineMigrations/src/action.yml


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

@@ -56,6 +56,7 @@ class OLTAdmin extends WorkflowBaseAdmin
             ->add('sshConnect')
             ->add('sshPort')
             ->add('enable')
+            ->add('oltTimeout')
             ->add('backups')
             ->add('currentState','string', array('template' => 'WorkflowBundle:Workflow:base_list_field_current_state.html.twig'))
             ->add('_action', 'with-workflow-action', array(
@@ -98,6 +99,7 @@ class OLTAdmin extends WorkflowBaseAdmin
                             'help' => 'form.help_ssh_connect',
                         ])
                         ->add('sshPort')
+                        ->add('oltTimeout')
                     ->end()
                 ->end()
                 ->tab('autodiscovery')
@@ -143,6 +145,7 @@ class OLTAdmin extends WorkflowBaseAdmin
                     ->add('enablePass')
                     ->add('sshConnect')
                     ->add('sshPort')
+                    ->add('oltTimeout')
                     ->add('enable')
                 ->end()
             ->end()

+ 24 - 0
src/FTTHBundle/Entity/OLT.php

@@ -201,6 +201,14 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
      */
     private $clientId;
 
+    /**
+     * @var int
+     *
+     * @ORM\Column(type="integer", nullable=false, options={"default": "25"})
+     *
+     */
+    private $oltTimeout;
+
     /**
      * @return string
      */
@@ -761,4 +769,20 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
         return $this;
     }
 
+    /**
+     * @return int
+     */
+    public function getOltTimeout()
+    {
+        return $this->oltTimeout;
+    }
+
+    /**
+     * @param int $oltTimeout
+     */
+    public function setOltTimeout($oltTimeout)
+    {
+        $this->oltTimeout = $oltTimeout;
+    }
+
 }

+ 3 - 0
src/FTTHBundle/Resources/translations/FTTHBundle.es.yml

@@ -180,6 +180,7 @@ form:
     label_discovery_profile: Perfíl
     label_date: Fecha
     label_radius_auth: Autenticación en Radius
+    label_olt_timeout: Timeout
 
 list:
     label_id: Id
@@ -251,6 +252,7 @@ list:
     label_log_o_l_t_status: Conf. Status
     label_log_o_l_t_date: Fecha OLT
     label_date: Fecha
+    label_olt_timeout: Timeout
 
 show:
     label_id: Id
@@ -330,6 +332,7 @@ show:
     label_log_o_l_t_date: Fecha OLT
     label_log_o_l_t_directory: Directorio log OLT
     label_date: Fecha
+    label_olt_timeout: Timeout
 
 export:
     serialNumber: Serial Number