Commit cfd63957 authored by Romain Courteaud's avatar Romain Courteaud

Only detach the bridge if alter_network is activated.

parent 7f54a645
......@@ -372,7 +372,7 @@ class Computer:
else:
raise ValueError('Address %r is incorrect' % address['addr'])
finally:
if self.bridge.attach_to_tap:
if alter_network and self.bridge.attach_to_tap:
try:
self.partition_list[0].tap.detach()
except IndexError:
......
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