CLOUDSTACK-5924: Correcting regex to get vm names exactly from ebtables chains

This commit is contained in:
jayapal 2014-01-22 10:49:41 +05:30 committed by Jayapal
parent 202c18243b
commit 86124138a1
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ def cleanup_rules():
logging.debug("vm " + vm_name + " is not running or paused, cleaning up iptable rules")
cleanup.append(vm_name)
chainscmd = """ebtables-save | awk '/:i/ { gsub(/(^:|-(in|out))/, "") ; print $1}'"""
chainscmd = """ebtables-save | awk '/:i/ { gsub(/(^:|-(in|out|ips))/, "") ; print $1}'"""
chains = execute(chainscmd).split('\n')
for chain in chains:
if 1 in [ chain.startswith(c) for c in ['r-', 'i-', 's-', 'v-'] ]: