From d76462c53091dc2170835a2cd15c5217c3de6b0a Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Wed, 2 Nov 2016 17:58:24 +0200 Subject: Add security group rule for DHCP Due to a new change in Boron SR1 we need to add the DHCP security group rule explicitly. Change-Id: I0d3d0447e7c31046bdfbb08da8752ef130830c59 Signed-off-by: George Paraskevopoulos (cherry picked from commit f3f0407d4524140cf459837de27cf6849575b769) --- testcases/features/sfc/sfc.py | 8 ++++++++ testcases/features/sfc/sfc_colorado1.py | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'testcases/features') diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index 038f165ca..9a7344073 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -153,6 +153,14 @@ def main(): secgroups = os_utils.get_security_groups(neutron_client) for sg in secgroups: + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'ingress', 'udp', + port_range_min=67, + port_range_max=68) + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'egress', 'udp', + port_range_min=67, + port_range_max=68) os_utils.create_secgroup_rule(neutron_client, sg['id'], 'ingress', 'tcp', port_range_min=22, diff --git a/testcases/features/sfc/sfc_colorado1.py b/testcases/features/sfc/sfc_colorado1.py index 4c6d717a4..6dd498737 100755 --- a/testcases/features/sfc/sfc_colorado1.py +++ b/testcases/features/sfc/sfc_colorado1.py @@ -164,6 +164,14 @@ def main(): secgroups = os_utils.get_security_groups(neutron_client) for sg in secgroups: + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'ingress', 'udp', + port_range_min=67, + port_range_max=68) + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'egress', 'udp', + port_range_min=67, + port_range_max=68) os_utils.create_secgroup_rule(neutron_client, sg['id'], 'ingress', 'tcp', port_range_min=22, -- cgit 1.2.3-korg