Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
777bf4ef
Commit
777bf4ef
authored
Nov 07, 2013
by
Kostas Papadimitriou
Browse files
ui: Update network api endpoint
parent
c545b67c
Changes
4
Show whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/settings.py
View file @
777bf4ef
...
...
@@ -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
(
'/'
)
...
...
snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js
View file @
777bf4ef
...
...
@@ -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
...
...
snf-cyclades-app/synnefo/ui/templates/home.html
View file @
777bf4ef
...
...
@@ -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
}},
};
...
...
snf-cyclades-app/synnefo/ui/views.py
View file @
777bf4ef
...
...
@@ -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
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment