Revision 4d5d0b9c snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
from synnefo.db.models import (Backend, VirtualMachine, Network, |
41 | 41 |
BackendNetwork, BACKEND_STATUSES, |
42 |
pooled_rapi_client, VirtualMachineDiagnostic) |
|
42 |
pooled_rapi_client, BridgePoolTable, |
|
43 |
MacPrefixPoolTable, VirtualMachineDiagnostic) |
|
43 | 44 |
from synnefo.logic import utils |
44 | 45 |
|
45 | 46 |
from logging import getLogger |
... | ... | |
225 | 226 |
if status == 'success': |
226 | 227 |
back_network.backendtime = etime |
227 | 228 |
back_network.save() |
229 |
# Also you must update the state of the Network!! |
|
230 |
update_network_state(back_network.network) |
|
228 | 231 |
|
229 | 232 |
|
230 | 233 |
@transaction.commit_on_success |
Also available in: Unified diff