bug 13052: check if ebtables exists in can_bridge_firewall

status 13052: resolved fixed
This commit is contained in:
anthony 2012-01-12 11:29:46 -08:00
parent eccd6b56b8
commit 50d166fe0d
1 changed files with 4 additions and 0 deletions

View File

@ -389,6 +389,10 @@ def chain_name_def(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'])