Kaynağa Gözat

FD3-770 FD3-771 FD3-772 Update extra data bundle. Update migration action cablemodem

Espinoza Guillermo 6 yıl önce
ebeveyn
işleme
f786dea685

+ 1 - 0
.gitignore

@@ -1,5 +1,6 @@
 /.web-server-pid
 /app/config/parameters.yml
+/app/config/profile.yml
 /build/
 /phpunit.xml
 /var/*

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
app/DoctrineMigrations/src/action.yml


app/config/profile.yml → app/config/profile.yml.dist


+ 3 - 0
composer.json

@@ -199,8 +199,10 @@
         "auto-increment": "php bin/console baseadmin:autoincrement",
         "init-template-docsis": "php bin/console init:templates:docsis",
         "workflow-default": "php bin/console workflow:default --class=CablemodemBundle\\\\Entity\\\\Cablemodem --all",
+        "profile-yml": "cp -n app/config/profile.yml.dist app/config/profile.yml",
         "post-install-cmd": [
             "@workflows-commands",
+            "@profile-yml",
             "@symfony-scripts",
             "@mkdir-dir-cache-sessions-logs",
             "@chmod-dir-cache-sessions-logs",
@@ -213,6 +215,7 @@
         ],
         "post-update-cmd": [
             "@workflows-commands",
+            "@profile-yml",
             "@symfony-scripts",
             "@mkdir-dir-cache-sessions-logs",
             "@chmod-dir-cache-sessions-logs",

+ 2 - 2
composer.lock

@@ -1504,7 +1504,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/ExtraDataBundle.git",
-                "reference": "46b52cf971097fee846639ba0dc5d37863f0a283"
+                "reference": "c85d52d5e306faaa44f9d45353365d00f10adf2d"
             },
             "type": "library",
             "autoload": {
@@ -1519,7 +1519,7 @@
                 "bundle",
                 "extra-data"
             ],
-            "time": "2018-11-15T15:48:51+00:00"
+            "time": "2018-12-14T11:31:02+00:00"
         },
         {
             "name": "ik/leaflet-bundle",

+ 104 - 0
src/CablemodemBundle/Entity/Profile.php

@@ -268,6 +268,78 @@ class Profile  implements TenancyIdTraitInterface, PreRemoveBlockCascadeInterfac
         return $this->getData('ServerVoIP_IP') ? $this->getData('ServerVoIP_IP') : $this->getDefault('ServerVoIP_IP');
     }
 
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess1_ip()
+    {
+        return $this->getData('SnmpCfgAccess1_ip') ? $this->getData('SnmpCfgAccess1_ip') : $this->getDefault('SnmpCfgAccess1_ip');
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess1_netmask()
+    {
+        return $this->getData('SnmpCfgAccess1_netmask') ? $this->getData('SnmpCfgAccess1_netmask') : $this->getDefault('SnmpCfgAccess1_netmask');
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess1_community()
+    {
+        return $this->getData('SnmpCfgAccess1_community') ? $this->getData('SnmpCfgAccess1_community') : $this->getDefault('SnmpCfgAccess1_community');
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess2_netmask()
+    {
+        return $this->getData('SnmpCfgAccess2_netmask') ? $this->getData('SnmpCfgAccess2_netmask') : $this->getDefault('SnmpCfgAccess2_netmask');
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess2_ip()
+    {
+        return $this->getData('SnmpCfgAccess2_ip') ? $this->getData('SnmpCfgAccess2_ip') : $this->getDefault('SnmpCfgAccess2_ip');
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpCfgAccess2_community()
+    {
+        return $this->getData('SnmpCfgAccess2_community') ? $this->getData('SnmpCfgAccess2_community') : $this->getDefault('SnmpCfgAccess2_community');
+    }
+
+    /**
+     * @return string
+     */
+    public function getRed2_a_excluir_ip()
+    {
+        return $this->getData('Red2_a_excluir_ip') ? $this->getData('Red2_a_excluir_ip') : $this->getDefault('Red2_a_excluir_ip');
+    }
+
+    /**
+     * @return string
+     */
+    public function getRed2_a_excluir_mascara()
+    {
+        return $this->getData('Red2_a_excluir_mascara') ? $this->getData('Red2_a_excluir_mascara') : $this->getDefault('Red2_a_excluir_mascara');
+    }
+
+    /**
+     * @return string
+     */
+    public function getRedVOIP_ip()
+    {
+        return $this->getData('RedVOIP_ip') ? $this->getData('RedVOIP_ip') : $this->getDefault('RedVOIP_ip');
+    }
+    
     /**
      * @return string
      */
@@ -275,6 +347,38 @@ class Profile  implements TenancyIdTraitInterface, PreRemoveBlockCascadeInterfac
     {
         return $this->getData('sipDevRegistrar') ? $this->getData('sipDevRegistrar') : $this->getDefault('sipDevRegistrar');
     }
+    
+    /**
+     * @return string
+     */
+    public function getServerProv_IP()
+    {
+        return $this->getData('ServerProv_IP') ? $this->getData('ServerProv_IP') : $this->getDefault('ServerProv_IP');
+    }
+    
+    /**
+     * @return string
+     */
+    public function getRedVOIP_mascara()
+    {
+        return $this->getData('RedVOIP_mascara') ? $this->getData('RedVOIP_mascara') : $this->getDefault('RedVOIP_mascara');
+    }
+    
+    /**
+     * @return string
+     */
+    public function getDS_MaxRateSustained()
+    {
+        return $this->getData('DS_MaxRateSustained') ? $this->getData('DS_MaxRateSustained') : $this->getDefault('DS_MaxRateSustained');
+    }
+    
+    /**
+     * @return string
+     */
+    public function getUS_MaxRateSustained()
+    {
+        return $this->getData('US_MaxRateSustained') ? $this->getData('US_MaxRateSustained') : $this->getDefault('US_MaxRateSustained');
+    }
 
     /**
      * @param string $name