From ac65b2e59e4e27b005f4541eddd36fe811bb854b Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Wed, 7 Dec 2016 14:11:16 +0200 Subject: Testcase for router/FloatingIP & net assoc mutual exclusivity A testcase for ODL Bug 6962, testing whether a subnet with a router can be network associated: - Create two VMs, each in a subnet with a router - Network assoc the two networks in a VPN iRT=eRT - Try to ping from one VM to the other - Assign a floating IP to a VM - Ping it JIRA: SDNVPN-88 Change-Id: I464f62b8bba55bc5d162071406637f6be846f223 Signed-off-by: Romanos Skiadas --- test/functest/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/functest/utils.py') 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) -- cgit 1.2.3-korg