Add support for controlling l2-population

This commit is contained in:
Liam Young 2014-09-04 15:31:06 +00:00
commit e126674976
4 changed files with 12 additions and 3 deletions

View File

@ -96,4 +96,10 @@ options:
.
This network will be used for tenant network traffic in overlay
networks.
l2-population:
type: boolean
default: True
description: |
Populate the forwarding tables of virtual switches (LinuxBridge or OVS),
to decrease broadcast traffics inside the physical networks fabric while
using overlays networks (VXLan, GRE).

View File

@ -172,7 +172,8 @@ class QuantumGatewayContext(OSContextGenerator):
'plugin': config('plugin'),
'debug': config('debug'),
'verbose': config('verbose'),
'instance_mtu': config('instance-mtu')
'instance_mtu': config('instance-mtu'),
'l2_population': config('l2-population'),
}
return ctxt

View File

@ -15,5 +15,6 @@ enable_tunneling = True
local_ip = {{ local_ip }}
[agent]
tunnel_types = gre
l2_population = {{ l2_population }}
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

View File

@ -209,7 +209,8 @@ class TestQuantumGatewayContext(CharmTestCase):
"OVSQuantumPluginV2",
'plugin': 'ovs',
'debug': False,
'verbose': True
'verbose': True,
'l2_population': True,
})