Commit bf0e2cc7 authored by Martín Ferrari's avatar Martín Ferrari

check which interfaces to destroy

parent 089dbd85
......@@ -34,10 +34,13 @@ class Node(object):
self.destroy()
def destroy(self):
if self.debug: # pragma: no cover
sys.stderr.write("*** Node(%s) destroy\n" % self.pid)
for p in self._processes.values():
p.destroy()
del self._processes
for i in self._interfaces.values():
# Use get_interfaces to force a rescan
for i in self.get_interfaces():
i.destroy()
del self._interfaces
del self._pid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment