Invoke cleanup_iptables script on uninstall

This commit is contained in:
Ken Thomas 2012-02-07 16:46:36 -08:00
parent 91e4fbf182
commit 0498652b97

@ -189,6 +189,11 @@ class NovaUninstaller(comp.PythonUninstallComponent):
def __init__(self, *args, **kargs):
comp.PythonUninstallComponent.__init__(self, TYPE, *args, **kargs)
def pre_uninstall(self):
LOG.info("Cleaning up iptables")
cmd = ["utils/clean_iptables.sh"]
sh.execute(*cmd, run_as_root=True)
class NovaInstaller(comp.PythonInstallComponent):
def __init__(self, *args, **kargs):