fix some errors 86/1786/3
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 8 May 2017 15:21:04 +0000 (17:21 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 8 May 2017 16:19:28 +0000 (18:19 +0200)
Change-Id: Ie6691ef51e9479f8f3ca5fad8f45a3871f340b78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_openvim/host_thread.py
osm_openvim/httpserver.py
templates/image.yaml

index cdc4209..0cf2691 100644 (file)
@@ -355,7 +355,7 @@ class host_thread(threading.Thread):
                         self.logger.debug("Deleting vxlan {} tunnel".format(task[1]))
                         self.delete_ovs_vxlan_tunnel(task[1])
                     elif task[0] == 'create-ovs-bridge-port':
-                        self.logger.debug("Adding port ovim-{} to OVS bridge".fromat(task[1]))
+                        self.logger.debug("Adding port ovim-{} to OVS bridge".format(task[1]))
                         self.create_ovs_bridge_port(task[1])
                     elif task[0] == 'del-ovs-port':
                         self.logger.debug("Delete bridge attached to ovs port vlan {} net {}".format(task[1], task[2]))
index 17925ac..d0d494a 100644 (file)
@@ -1645,7 +1645,7 @@ def http_post_server_id(tenant_id):
                         dhcp_firt_ip = str(server_net['network']['dhcp_first_ip'])
                         dhcp_last_ip = str(server_net['network']['dhcp_last_ip'])
                         dhcp_cidr = str(server_net['network']['cidr'])
-                        gateway = str(server_net['network']['gateway'])
+                        gateway = str(server_net['network']['gateway_ip'])
                         vm_dhcp_ip = c2[0]["ip_address"]
                         config_dic['host_threads'][server['host_id']].insert_task("create-ovs-bridge-port", vlan)
 
index 2ac06bc..c75100f 100644 (file)
@@ -26,7 +26,7 @@ image:
     path:         /image-path/at/the/compute-node/storage/image 
     metadata:     # Optional extra metadata of the image. All fields are optional
         use_incremental: "yes"          # "yes" by default, "no" Deployed using a incremental qcow2 image
-        vpci:            "0000:10:00.0" #requiered PCI at guess
+        vpci:            "0000:00:10.0" #requiered PCI at guess
         os_distro:       win            # operating system distribution
         os_type:         windows        # operating system type "linux" by default, "windows"
         os_version:      "7"            # operating system version