summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sfc/lib/openstack_utils.py2
-rw-r--r--sfc/tests/functest/run_sfc_tests.py1
-rw-r--r--sfc/tests/functest/sfc_chain_deletion.py4
3 files changed, 4 insertions, 3 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index fb63de9e..4a1c634d 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -219,7 +219,7 @@ class OpenStackSFC:
return port
else:
logger.error("The VM {0} does not have any port"
- " with name {1}".format(vm_name, port_name))
+ " with name {1}".format(vm.name, port_name))
raise Exception("Client VM does not have the desired port")
diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py
index 6c4a86d3..64c5b385 100644
--- a/sfc/tests/functest/run_sfc_tests.py
+++ b/sfc/tests/functest/run_sfc_tests.py
@@ -186,6 +186,7 @@ class SfcFunctest(testcase.TestCase):
return testcase.TestCase.EX_RUN_ERROR
+
def main():
logging.basicConfig(level=logging.INFO)
SFC = SfcFunctest()
diff --git a/sfc/tests/functest/sfc_chain_deletion.py b/sfc/tests/functest/sfc_chain_deletion.py
index cef56761..f96eb120 100644
--- a/sfc/tests/functest/sfc_chain_deletion.py
+++ b/sfc/tests/functest/sfc_chain_deletion.py
@@ -209,8 +209,8 @@ def main():
os_sfc_utils.delete_vnffgd(tacker_client, vnffgd_name='red')
if not odl_utils.check_vnffg_deletion(odl_ip, odl_port, ovs_logger,
- openstack_sfc.get_compute_client(),
- compute_nodes):
+ openstack_sfc.get_compute_client(),
+ compute_nodes):
logger.debug("The chains were not correctly removed")
raise Exception("Chains not correctly removed, test failed")