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
d83bf43f0d
commit
0561fad1bc
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue