mirror of https://github.com/apache/cloudstack.git
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:
parent
e82573dbf0
commit
ae4bd0fb70
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue