Fix CONFIG_NEUTRON_L3_EXT_BRIDGE invalid parameter
When CONFIG_NEUTRON_L3_EXT_BRIDGE is set to '' the firewall settings fail. This patch skips firewall if this condition is met. Fixes: rhbz#1336433 Change-Id: Ic1d43d8b5fc145f41189f24805719f21138def5b
This commit is contained in:
committed by
Javier Peña
parent
6a49be56b2
commit
9ffa3473fc
@@ -37,18 +37,21 @@ class packstack::provision::bridge ()
|
||||
proto => 'all',
|
||||
}
|
||||
|
||||
firewall { '000 forward out':
|
||||
chain => 'FORWARD',
|
||||
action => 'accept',
|
||||
outiface => $public_bridge_name,
|
||||
proto => 'all',
|
||||
}
|
||||
|
||||
firewall { '000 forward in':
|
||||
chain => 'FORWARD',
|
||||
action => 'accept',
|
||||
iniface => $public_bridge_name,
|
||||
proto => 'all',
|
||||
if $public_bridge_name != '' {
|
||||
firewall { '000 forward out':
|
||||
chain => 'FORWARD',
|
||||
action => 'accept',
|
||||
outiface => $public_bridge_name,
|
||||
proto => 'all',
|
||||
}
|
||||
|
||||
firewall { '000 forward in':
|
||||
chain => 'FORWARD',
|
||||
action => 'accept',
|
||||
iniface => $public_bridge_name,
|
||||
proto => 'all',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user