Bugfix: fix the errors of onos_sfc 19/34419/2
authorLinda Wang <wangwulin@huawei.com>
Mon, 8 May 2017 07:01:33 +0000 (07:01 +0000)
committerJose Lausuch <jose.lausuch@ericsson.com>
Fri, 19 May 2017 09:55:29 +0000 (09:55 +0000)
1. Update the service type to "identity", "network", "compute" and
   "image", other than "keystone", "neutron", "nova" and "glance".

JIRA: FUNCTEST-820

Change-Id: I81b2311760fd717570561e6471525773378ad2f2
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/opnfv_tests/sdn/onos/onos.py

index 5dfff03..adcb416 100644 (file)
@@ -209,10 +209,10 @@ class OnosSfc(OnosBase):
                           self.onos_sfc_image_name, image_id)
 
     def set_sfc_conf(self):
-        self.update_sfc_onos_file("keystone_ip", self.get_ip("keystone"))
-        self.update_sfc_onos_file("neutron_ip", self.get_ip("neutron"))
-        self.update_sfc_onos_file("nova_ip", self.get_ip("nova"))
-        self.update_sfc_onos_file("glance_ip", self.get_ip("glance"))
+        self.update_sfc_onos_file("keystone_ip", self.get_ip("identity"))
+        self.update_sfc_onos_file("neutron_ip", self.get_ip("network"))
+        self.update_sfc_onos_file("nova_ip", self.get_ip("compute"))
+        self.update_sfc_onos_file("glance_ip", self.get_ip("image"))
         self.update_sfc_onos_file("console",
                                   CONST.__getattribute__('OS_PASSWORD'))
         neutron_client = openstack_utils.get_neutron_client()