Commit 777bf4ef authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Update network api endpoint

parent c545b67c
......@@ -46,6 +46,7 @@ if not BASE_PATH.startswith("/"):
GLANCE_URL = endpoint(cyclades_services, 'image', 'v1.0').rstrip('/')
COMPUTE_URL = endpoint(cyclades_services, 'compute', 'v2.0').rstrip('/')
NETWORK_URL = endpoint(cyclades_services, 'network', 'v2.0').rstrip('/')
USERDATA_URL = endpoint(cyclades_services, 'cyclades_userdata', '').rstrip('/')
ASTAKOS_UI_URL = endpoint(astakos_services, 'astakos_ui', '').rstrip('/')
......
......@@ -21,12 +21,12 @@
// Neutron base model, extending existing synnefo model
models.NetworkModel = snfmodels.Model.extend({
api_type: 'compute'
api_type: 'network'
});
// Neutron base collection, common neutron collection params are shared
models.NetworkCollection = snfmodels.Collection.extend({
api_type: 'compute',
api_type: 'network',
details: true,
noUpdate: true,
updateEntries: true
......
......@@ -645,6 +645,7 @@
synnefo.config.api_urls = {
'userdata': '{% url ui_userdata %}',
'compute': {{ compute_api_url|safe }},
'network': {{ network_api_url|safe }},
'glance': {{ glance_api_url|safe }},
'accounts': {{ accounts_api_url|safe }},
};
......
......@@ -193,6 +193,7 @@ def home(request):
'request': request,
'current_lang': get_language() or 'en',
'compute_api_url': json.dumps(uisettings.COMPUTE_URL),
'network_api_url': json.dumps(uisettings.NETWORK_URL),
'user_catalog_url': json.dumps(uisettings.USER_CATALOG_URL),
'feedback_post_url': json.dumps(uisettings.FEEDBACK_URL),
'accounts_api_url': json.dumps(uisettings.ACCOUNT_URL),
......
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 to comment