From: tierno Date: Mon, 8 May 2017 15:21:04 +0000 (+0200) Subject: fix some errors X-Git-Tag: v2.0.1~13 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=32213316c986310958424667ae63435ca0973f18;p=osm%2Fopenvim.git fix some errors Change-Id: Ie6691ef51e9479f8f3ca5fad8f45a3871f340b78 Signed-off-by: tierno --- diff --git a/osm_openvim/host_thread.py b/osm_openvim/host_thread.py index cdc4209..0cf2691 100644 --- a/osm_openvim/host_thread.py +++ b/osm_openvim/host_thread.py @@ -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])) diff --git a/osm_openvim/httpserver.py b/osm_openvim/httpserver.py index 17925ac..d0d494a 100644 --- a/osm_openvim/httpserver.py +++ b/osm_openvim/httpserver.py @@ -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) diff --git a/templates/image.yaml b/templates/image.yaml index 2ac06bc..c75100f 100644 --- a/templates/image.yaml +++ b/templates/image.yaml @@ -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