
A couple fixes for Quantum: * The Load Balancers panel is now no longer enabled by default since it is disabled by default in Quantum. * Security Groups and Security Group Rules now support both Nova's integer IDs and Quantum's UUID IDs. * Regroups all the Quantum panels into a "Manage Network" panel group to match "Manage Compute" above it. * Adds tests for both int and UUID ids in the Security Group test suite. Fixes bug 1153477 and fixes bug 1155244. Change-Id: I2327901634a83f95c5cff4ba91c8c7c32a0ad8af
17 lines
438 B
Python
17 lines
438 B
Python
from django.utils.translation import ugettext_lazy as _
|
|
from django.conf import settings
|
|
|
|
import horizon
|
|
|
|
from openstack_dashboard.dashboards.project import dashboard
|
|
|
|
|
|
class LoadBalancer(horizon.Panel):
|
|
name = _("Load Balancers")
|
|
slug = "loadbalancers"
|
|
permissions = ('openstack.services.network',)
|
|
|
|
|
|
if getattr(settings, 'OPENSTACK_QUANTUM_NETWORK', {}).get('enable_lb', False):
|
|
dashboard.Project.register(LoadBalancer)
|