Browse Source

FD3-633 Archivos de importador

Daniel Libonati 6 years ago
parent
commit
c148e1120e
3 changed files with 60 additions and 0 deletions
  1. 51 0
      app/config/import_data.yml
  2. 8 0
      app/config/import_data_kea.yml
  3. 1 0
      app/config/parameters.yml.dist

+ 51 - 0
app/config/import_data.yml

@@ -0,0 +1,51 @@
+HostType:
+    source_table: "HostType"
+    destination_table: "host_type"
+    mapping:
+        id: id
+        name: name
+        shortname: shortname
+
+Host:
+    source_table: "Host"
+    destination_table: "host"
+    mapping:
+        id: id
+        host_type_id: host_type_id
+        mac: mac
+        options: options
+
+NetGroup:
+    source_table: "NetGroup"
+    destination_table: "net_group"
+    mapping:
+        id: id
+        name: name
+        opcode: opcode
+        tenancy_id: tenancy_id
+
+
+SubNet:
+    source_table: "SubNet"
+    destination_table: "sub_net"
+    mapping:
+        id: id
+        allowed_host_type_id: allowed_host_type_id
+        net_group_id: net_group_id
+        address: address
+        options: options
+        tenancy_id: tenancy_id
+
+
+Pool:
+    source_table: "Pool"
+    destination_table: "pool"
+    mapping:
+        id: id
+        sub_net_id: sub_net_id
+        name: name
+        first_ip: first_ip
+        last_ip: last_ip
+        priority: priority
+        is_static: is_static
+        tenancy_id: tenancy_id

+ 8 - 0
app/config/import_data_kea.yml

@@ -0,0 +1,8 @@
+Leases4:
+    source_table: "lease"
+    destination_table: "lease4"
+    mapping:
+        address: ipint
+        hwaddr: hw_address
+        hostname: hostname
+        expire: ends

+ 1 - 0
app/config/parameters.yml.dist

@@ -2,6 +2,7 @@
 # Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
 # http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
 parameters:
+    database_driver: pdo_mysql
     database_host: mysql
     database_port: ~
     database_name: fd3_dhcp