Revision 90b29b33 snf-cyclades-app/synnefo/logic/management/commands/backend-add.py
b/snf-cyclades-app/synnefo/logic/management/commands/backend-add.py | ||
---|---|---|
36 | 36 |
from synnefo.logic.backend import (get_physical_resources, |
37 | 37 |
update_resources, |
38 | 38 |
create_client, |
39 |
create_network_synced) |
|
39 |
create_network_synced, |
|
40 |
connect_network_synced) |
|
40 | 41 |
from synnefo.util.rapi import GanetiApiError |
41 | 42 |
|
42 | 43 |
|
... | ... | |
137 | 138 |
if result[0] != "success": |
138 | 139 |
self.stdout.write('\nError Creating Network %s: %s\n' %\ |
139 | 140 |
(net.backend_id, result[1])) |
141 |
self.stdout.write('Successfully created Network: %s\n' % |
|
142 |
net.backend_id) |
|
143 |
result = connect_network_synced(network=net, backend=backend) |
|
144 |
if result[0] != "success": |
|
145 |
self.stdout.write('\nError Connecting Network %s: %s\n' %\ |
|
146 |
(net.backend_id, result[1])) |
|
147 |
self.stdout.write('Successfully connected Network: %s\n' % |
|
148 |
net.backend_id) |
Also available in: Unified diff