Skip to content

Commit

Permalink
Closes-Bug: #1594253
Browse files Browse the repository at this point in the history
Enabling lbaasv2 panel in horizon.

Change-Id: I7092f4c69af9818bd73d3b4903ad037db12f09ea
  • Loading branch information
biswajit-mandal committed Aug 5, 2016
1 parent 8f39278 commit aa71d9a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fabfile/tasks/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,18 @@ def setup_contrail_horizon_node(*args):
if not exists(file_name):
return

loadbalancer_file = '/usr/lib/python2.7/dist-packages/' +\
'neutron_lbaas_dashboard/enabled/' +\
'_1481_project_ng_loadbalancersv2_panel.py'
with settings(warn_only=True):
if exists(loadbalancer_file):
sudo('cp %s /usr/share/openstack-dashboard/openstack_dashboard/enabled/' \
%(loadbalancer_file))
openstack_dashboard_path = '/usr/share/openstack-dashboard'
with cd(openstack_dashboard_path):
sudo('echo "yes\n"| ./manage.py collectstatic')
sudo('./manage.py compress')

pattern='^HORIZON_CONFIG.*customization_module.*'
line = '''HORIZON_CONFIG[\'customization_module\'] = \'contrail_openstack_dashboard.overrides\' '''
insert_line_to_file(pattern = pattern, line = line, file_name = file_name)
Expand Down

0 comments on commit aa71d9a

Please sign in to comment.