Luciano Andrade 6 rokov pred
rodič
commit
159c96c8ed
2 zmenil súbory, kde vykonal 46 pridanie a 13 odobranie
  1. 43 11
      app/config/import_data.yml
  2. 3 2
      composer.lock

+ 43 - 11
app/config/import_data.yml

@@ -1,15 +1,44 @@
-CMTS:
-    source_table: "CMTS"
-    destination_table: "cmts"
+#CMTS:
+#    source_table: "CMTS"
+#    destination_table: "cmts"
+#    mapping:
+#        id: id
+#        name: name
+#        host: host
+#        snmp_community: snmp_comunity
+#        snmp_version: snmp_version
+#        execute_snmp: execute_snmp
+#        docs_version: docs_version
+#        tenancy_id: tenancy_id
+
+Templates:
+    source_table: "Template"
+    destination_table: "template"
+    offset: 
+      id: 1000
+      name: "Imported %name%"
     mapping:
-        id: id
-        name: name
-        host: host
-        snmp_community: snmp_comunity
-        snmp_version: snmp_version
-        execute_snmp: execute_snmp
-        docs_version: docs_version
-        tenancy_id: tenancy_id
+      id: id
+      name: name
+      content: content
+      owner: 
+        value: "iksop"
+
+ModelosCablemodem:
+    source_table: "Model"
+    destination_table: "cablemodem_model"
+    offset: 
+      id: 1000
+      name: "Imported %name%"
+      docsis_template_id: 1000
+      mta_docsis_template_id: 1000
+    mapping:
+      id: id
+      name: name
+      technology: technology
+      terminals: terminals
+      docsis_template_id: docsis_model_template_id
+      mta_docsis_template_id: mta_docsis_template_id
 
 Profile:
     source_table: "Profile"
@@ -36,6 +65,8 @@ Node:
 Cablemodem:
     source_table: "Cablemodem"
     destination_table: "cablemodem"
+    offset:
+        model_id: 1000
     mapping:
         id: id
         node_id: node_id
@@ -49,3 +80,4 @@ Cablemodem:
         comments: comments
         workflow_id: { value: 1 }
         current_state: { value: active }
+        model_id: model_id

+ 3 - 2
composer.lock

@@ -1034,6 +1034,7 @@
                 }
             ],
             "description": "Dwoo is a PHP5/PHP7 template engine which is (almost) fully compatible with Smarty templates and plugins, but is written from scratch for PHP5, and adds many features.",
+            "abandoned": "twig/twig",
             "time": "2018-07-25T13:24:51+00:00"
         },
         {
@@ -1457,7 +1458,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/BaseAdmin.git",
-                "reference": "7d318d860d3bfedd1882f5f8ac806c46c6238878"
+                "reference": "cd1449790213410afbf0cce650997c9c24a481d8"
             },
             "type": "library",
             "autoload": {
@@ -1472,7 +1473,7 @@
                 "bootstrap",
                 "sonata"
             ],
-            "time": "2018-08-09T12:30:11+00:00"
+            "time": "2018-08-14T12:58:30+00:00"
         },
         {
             "name": "ik/device-bundle",