mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix security group clean up on centos 5
This commit is contained in:
parent
5b168f30e0
commit
5724a016c6
@ -322,7 +322,7 @@ def delete_rules_for_vm_in_bridge_firewall_chain(vmName):
|
||||
|
||||
vmchain = vm_name
|
||||
|
||||
delcmd = "iptables -S | grep " + vmchain + " | grep physdev-is-bridged | sed 's/-A/-D/'"
|
||||
delcmd = "iptables-save | grep " + vmchain + " | grep physdev-is-bridged | sed 's/-A/-D/'"
|
||||
delcmds = execute(delcmd).split('\n')
|
||||
delcmds.pop()
|
||||
for cmd in delcmds:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user