Add Cisco N1K plugin support in Horizon

This adds Horizon capability to configure and
use network profiles and policy profiles
on the Cisco Nexus 1000V to be used with
networks and instances as is done via neutron
CLI.

To turn on the new dashboard the local_settings
file needs to turn the profile_settings NEUTRON
config variable to cisco.

TODO items include creating a better palate
of unit tests that will run not only when
the cisco n1k subplugin is being used but
in default setting as well.
Need to remove the conditional statements
in the unit tests and make it inclusive.
Additionally need to get a better solution
for how the dashboard/panel registration will
work. Should it be a boolean or check for vendor
specific names.
Also some cleanup and refactoring of commonly
used code everywhere.

Implements: blueprint horizon-cisco-n1k

Change-Id: If6e797ac28c8486cfa92e02742c409d193d9ec84
This commit is contained in:
Abishek Subramanian 2013-09-03 15:27:03 -04:00
parent 7a336dcab7
commit fa0dbbc3fa
1 changed files with 16 additions and 1 deletions

View File

@ -37,6 +37,13 @@ INSTALLED_APPS = (
'openstack_dashboard.dashboards.project',
'openstack_dashboard.dashboards.admin',
'openstack_dashboard.dashboards.settings',
# If the profile_support config is turned on in local_settings
# the "router" dashboard will be enabled which can be used to
# create and use profiles with networks and instances. In which case
# using run_tests will require the registration of the "router" dashboard.
# TODO (absubram): Need to make this permanent when a better solution
# for run_tests is implemented to use with and without the n1k sub-plugin.
#'openstack_dashboard.dashboards.router',
)
AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)
@ -44,7 +51,15 @@ AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)
SITE_BRANDING = 'OpenStack'
HORIZON_CONFIG = {
'dashboards': ('project', 'admin', 'settings'),
'dashboards': ('project', 'admin', 'settings',),
# If the profile_support config is turned on in local_settings
# the "router" dashboard will be enabled which can be used to
# create and use profiles with networks and instances. In which case
# using run_tests will require the registration of the "router" dashboard.
# TODO (absubram): Need to make this permanent when a better solution
# for run_tests is implemented to use with and without the n1k sub-plugin.
#'openstack_dashboard.dashboards.router',
#'dashboards': ('project', 'admin', 'settings', 'router',),
'default_dashboard': 'project',
"password_validator": {
"regex": '^.{8,18}$',