Skip to content

Commit 8612413

Browse files
author
jayapal
committed
CLOUDSTACK-5924: Correcting regex to get vm names exactly from ebtables chains
1 parent 202c182 commit 8612413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/vm/network/security_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def cleanup_rules():
700700
logging.debug("vm " + vm_name + " is not running or paused, cleaning up iptable rules")
701701
cleanup.append(vm_name)
702702

703-
chainscmd = """ebtables-save | awk '/:i/ { gsub(/(^:|-(in|out))/, "") ; print $1}'"""
703+
chainscmd = """ebtables-save | awk '/:i/ { gsub(/(^:|-(in|out|ips))/, "") ; print $1}'"""
704704
chains = execute(chainscmd).split('\n')
705705
for chain in chains:
706706
if 1 in [ chain.startswith(c) for c in ['r-', 'i-', 's-', 'v-'] ]:

0 commit comments

Comments
 (0)