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 474543d623
commit 5d54a3aef8
1 changed files with 4 additions and 0 deletions

View File

@ -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'])