summaryrefslogtreecommitdiffstats
path: root/test/functest/utils.py
diff options
context:
space:
mode:
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>2016-12-14 06:36:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-14 06:36:32 +0000
commit033ddcc028b083df3ec9c077c6cb4bc53f4dc5d3 (patch)
tree58db761c398c438ae0fcaf1c016b2819b2b7b93f /test/functest/utils.py
parentfdd7790f733d83022ace8c5be102a1aa57699fcb (diff)
parentac65b2e59e4e27b005f4541eddd36fe811bb854b (diff)
Merge "Testcase for router/FloatingIP & net assoc mutual exclusivity"
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)