summaryrefslogtreecommitdiffstats
path: root/test/functest/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functest/utils.py')
-rw-r--r--test/functest/utils.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functest/utils.py b/test/functest/utils.py
index 90dfe93..cbfc88d 100644
--- a/test/functest/utils.py
+++ b/test/functest/utils.py
@@ -290,3 +290,14 @@ def assert_and_get_compute_nodes(nova_client, required_node_number=2):
logger.debug("Compute nodes: %s" % compute_nodes)
return compute_nodes
+
+
+def open_icmp_ssh(neutron_client, security_group_id):
+ os_utils.create_secgroup_rule(neutron_client,
+ security_group_id,
+ 'ingress',
+ 'icmp')
+ os_utils.create_secgroup_rule(neutron_client,
+ security_group_id,
+ 'tcp',
+ 80, 80)