Revision 44e2c577
b/snf-cyclades-app/synnefo/logic/reconciliation.py | ||
---|---|---|
277 | 277 |
# Networks |
278 | 278 |
# |
279 | 279 |
def get_networks_from_ganeti(backend): |
280 |
prefix = settings.BACKEND_PREFIX_ID |
|
280 |
prefix = settings.BACKEND_PREFIX_ID + 'net-'
|
|
281 | 281 |
|
282 | 282 |
networks = {} |
283 | 283 |
for net in backend.client.GetNetworks(bulk=True): |
b/snf-cyclades-app/synnefo/logic/utils.py | ||
---|---|---|
61 | 61 |
""" |
62 | 62 |
if not str(name).startswith(settings.BACKEND_PREFIX_ID): |
63 | 63 |
raise Network.InvalidBackendIdError(str(name)) |
64 |
ns = str(name).replace(settings.BACKEND_PREFIX_ID, "", 1) |
|
64 |
ns = str(name).replace(settings.BACKEND_PREFIX_ID + 'net-', "", 1)
|
|
65 | 65 |
if not ns.isdigit(): |
66 | 66 |
raise Network.InvalidBackendIdError(str(name)) |
67 | 67 |
|
Also available in: Unified diff