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): ...@@ -34,10 +34,13 @@ class Node(object):
self.destroy() self.destroy()
def destroy(self): def destroy(self):
if self.debug: # pragma: no cover
sys.stderr.write("*** Node(%s) destroy\n" % self.pid)
for p in self._processes.values(): for p in self._processes.values():
p.destroy() p.destroy()
del self._processes del self._processes
for i in self._interfaces.values(): # Use get_interfaces to force a rescan
for i in self.get_interfaces():
i.destroy() i.destroy()
del self._interfaces del self._interfaces
del self._pid 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