horizon/openstack_dashboard/dashboards/admin/aggregates/constants.py
Michal Dulko 473233c796 Enable host aggregate metadata update
Nova currently expose an api to let the users update
the host aggregates metadata so horizon should expose
this functionality. At the same time Glance is exposing
a metadata dictionary in Juno, where users can register
the key/value pairs that describe their cloud deployment.

This patch uses the glance metadata api to expose the available
metadata and the nova api to update the aggregates metadata

Co-Authored-By: Santiago Baldassin <santiago.b.baldassin@intel.com>
Co-Authored-By: Pawel Skowron <pawel.skowron@intel.com>
Co-Authored-By: Bartosz Fic <bartosz.fic@intel.com>
Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Co-Authored-By: Pawel Koniszewski <pawel.koniszewski@intel.com>
DocImpact
Change-Id: I4abf88426f548c47a21920169f710d3310e3ede6
Implements: blueprint host-aggregate-update-metadata
2014-09-11 19:30:17 +02:00

26 lines
1.3 KiB
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
AGGREGATES_TEMPLATE_NAME = 'admin/aggregates/index.html'
AGGREGATES_INDEX_URL = 'horizon:admin:aggregates:index'
AGGREGATES_INDEX_VIEW_TEMPLATE = 'admin/aggregates/index.html'
AGGREGATES_CREATE_URL = 'horizon:admin:aggregates:create'
AGGREGATES_CREATE_VIEW_TEMPLATE = 'admin/aggregates/create.html'
AGGREGATES_MANAGE_HOSTS_URL = 'horizon:admin:aggregates:manage_hosts'
AGGREGATES_MANAGE_HOSTS_TEMPLATE = 'admin/aggregates/manage_hosts.html'
AGGREGATES_UPDATE_METADATA_URL = 'horizon:admin:aggregates:update_metadata'
AGGREGATES_UPDATE_METADATA_TEMPLATE = 'admin/aggregates/update_metadata.html'
AGGREGATES_UPDATE_METADATA_SUBTEMPLATE = \
'admin/aggregates/_update_metadata.html'
AGGREGATES_UPDATE_URL = 'horizon:admin:aggregates:update'
AGGREGATES_UPDATE_VIEW_TEMPLATE = 'admin/aggregates/update.html'