Invoke cleanup_iptables script on uninstall
This commit is contained in:
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user