Commit 76da6860 by Guba Sándor

operations: added subactivity for network attach/detach

parent 9e60b9b7
......@@ -103,6 +103,7 @@ class AddInterfaceOperation(InstanceOperation):
managed=managed, owner=user, vlan=vlan)
if self.instance.is_running:
with activity.sub_activity('attach_network'):
self.instance.attach_network(net)
net.deploy()
......@@ -356,6 +357,7 @@ class RemoveInterfaceOperation(InstanceOperation):
def _operation(self, activity, user, system, interface):
if self.instance.is_running:
with activity.sub_activity('detach_network'):
self.instance.detach_network(interface)
interface.shutdown()
......
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 sign in to comment