Revision 122c4019
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
449 | 449 |
|
450 | 450 |
mode = "routed" if "ROUTED" in network.type else "bridged" |
451 | 451 |
|
452 |
depend_jobs = [depend_job] if depend_job else [] |
|
452 | 453 |
with pooled_rapi_client(backend) as client: |
453 | 454 |
if group: |
454 | 455 |
client.ConnectNetwork(network.backend_id, group, mode, |
455 |
network.link, [depend_job])
|
|
456 |
network.link, depend_jobs)
|
|
456 | 457 |
else: |
457 | 458 |
for group in client.GetGroups(): |
458 | 459 |
client.ConnectNetwork(network.backend_id, group, mode, |
459 |
network.link, [depend_job])
|
|
460 |
network.link, depend_jobs)
|
|
460 | 461 |
|
461 | 462 |
|
462 | 463 |
def delete_network(network, backends=None, disconnect=True): |
b/snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py | ||
---|---|---|
154 | 154 |
for group in hanging_groups: |
155 | 155 |
out.write('F: Connecting network %d to nodegroup %s\n' |
156 | 156 |
% (net_id, group)) |
157 |
backend.connect_network_group(b, network, group)
|
|
157 |
backend.connect_network(network, b, group=group)
|
|
158 | 158 |
elif back_network and back_network.operstate != 'ACTIVE': |
159 | 159 |
# Network is active |
160 | 160 |
out.write('D: Unsynced network %d in backend %s\n' % info) |
Also available in: Unified diff