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 e82573dbf0
commit ae4bd0fb70
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,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 = []