linux_bridge: actually apply the iptables rules
The linux bridge network code for creating bridges never actually told the iptables manager to apply the rules it just set. Previously when this code lived inside Nova it just happened to work, because there was a single iptables manager instance in nova and other unrelated code would fortunately apply iptables rules. Now we're standalone we must explicitly apply them Change-Id: I26e27c1c4b337d0a51efbe37ca671b4f23cf38db
This commit is contained in:
parent
5e72ecd5ad
commit
2d9c516c49
@ -184,6 +184,7 @@ def ensure_bridge(bridge, interface, net_attrs=None, gateway=True,
|
||||
('--out-interface %s -j %s'
|
||||
% (bridge,
|
||||
_IPTABLES_MANAGER.iptables_drop_action)))
|
||||
_IPTABLES_MANAGER.apply()
|
||||
|
||||
|
||||
def configure(iptables_mgr):
|
||||
|
Loading…
Reference in New Issue
Block a user