fix a security group bug: restart mgt server or reconnect xenserver will destroy existing security group, then you can't ping user vm any more

This commit is contained in:
edison 2010-12-20 16:54:09 -08:00
parent d83bf43f0d
commit 0561fad1bc
1 changed files with 1 additions and 1 deletions

View File

@ -1941,7 +1941,7 @@ def cleanup_rules():
try:
session = get_xapi_session()
chainscmd = "iptables-save | grep '^:' | awk '{print $1}' | cut -d':' -f2"
chainscmd = "iptables-save | grep '^:' | grep -v '.*-def' | awk '{print $1}' | cut -d':' -f2"
chains = util.pread2(['/bin/bash', '-c', chainscmd]).split('\n')
cleaned = 0
cleanup = []