Merge "[Fullstack] SG test use not too many fake hosts"
This commit is contained in:
@@ -47,7 +47,7 @@ class BaseSecurityGroupsSameNetworkTest(base.BaseFullStackTestCase):
|
|||||||
of_interface=self.of_interface,
|
of_interface=self.of_interface,
|
||||||
l2_agent_type=self.l2_agent_type,
|
l2_agent_type=self.l2_agent_type,
|
||||||
firewall_driver=self.firewall_driver,
|
firewall_driver=self.firewall_driver,
|
||||||
dhcp_agent=True) for _ in range(2)]
|
dhcp_agent=True) for _ in range(self.num_hosts)]
|
||||||
env = environment.Environment(
|
env = environment.Environment(
|
||||||
environment.EnvironmentDescription(
|
environment.EnvironmentDescription(
|
||||||
network_type=self.network_type),
|
network_type=self.network_type),
|
||||||
@@ -78,21 +78,27 @@ class TestSecurityGroupsSameNetwork(BaseSecurityGroupsSameNetworkTest):
|
|||||||
|
|
||||||
network_type = 'vxlan'
|
network_type = 'vxlan'
|
||||||
scenarios = [
|
scenarios = [
|
||||||
|
# The iptables_hybrid driver lacks isolation between agents and
|
||||||
|
# because of that using only one host is enough
|
||||||
('ovs-hybrid', {
|
('ovs-hybrid', {
|
||||||
'firewall_driver': 'iptables_hybrid',
|
'firewall_driver': 'iptables_hybrid',
|
||||||
'of_interface': 'native',
|
'of_interface': 'native',
|
||||||
'l2_agent_type': constants.AGENT_TYPE_OVS}),
|
'l2_agent_type': constants.AGENT_TYPE_OVS,
|
||||||
|
'num_hosts': 1}),
|
||||||
('ovs-openflow-cli', {
|
('ovs-openflow-cli', {
|
||||||
'firewall_driver': 'openvswitch',
|
'firewall_driver': 'openvswitch',
|
||||||
'of_interface': 'ovs-ofctl',
|
'of_interface': 'ovs-ofctl',
|
||||||
'l2_agent_type': constants.AGENT_TYPE_OVS}),
|
'l2_agent_type': constants.AGENT_TYPE_OVS,
|
||||||
|
'num_hosts': 2}),
|
||||||
('ovs-openflow-native', {
|
('ovs-openflow-native', {
|
||||||
'firewall_driver': 'openvswitch',
|
'firewall_driver': 'openvswitch',
|
||||||
'of_interface': 'native',
|
'of_interface': 'native',
|
||||||
'l2_agent_type': constants.AGENT_TYPE_OVS}),
|
'l2_agent_type': constants.AGENT_TYPE_OVS,
|
||||||
|
'num_hosts': 2}),
|
||||||
('linuxbridge-iptables', {
|
('linuxbridge-iptables', {
|
||||||
'firewall_driver': 'iptables',
|
'firewall_driver': 'iptables',
|
||||||
'l2_agent_type': constants.AGENT_TYPE_LINUXBRIDGE})]
|
'l2_agent_type': constants.AGENT_TYPE_LINUXBRIDGE,
|
||||||
|
'num_hosts': 2})]
|
||||||
|
|
||||||
# NOTE(toshii): As a firewall_driver can interfere with others,
|
# NOTE(toshii): As a firewall_driver can interfere with others,
|
||||||
# the recommended way to add test is to expand this method, not
|
# the recommended way to add test is to expand this method, not
|
||||||
|
|||||||
Reference in New Issue
Block a user