mirror of https://github.com/apache/cloudstack.git
bug 13052: check if ebtables exists in can_bridge_firewall
status 13052: resolved fixed
This commit is contained in:
parent
474543d623
commit
5d54a3aef8
|
|
@ -393,6 +393,10 @@ def egress_chain_name(vm_name):
|
|||
|
||||
@echo
|
||||
def can_bridge_firewall(session, args):
|
||||
try:
|
||||
util.pread2(['ebtables', '-V'])
|
||||
except:
|
||||
return 'false'
|
||||
host_uuid = args.get('host_uuid')
|
||||
try:
|
||||
util.pread2(['iptables', '-N', 'BRIDGE-FIREWALL'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue