horizon/openstack_dashboard/dashboards/project/loadbalancers/panel.py
Gabriel Hurley a19b0096ba Disable LB panel by default; allow UUID for Sec Group ID.
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
2013-03-18 12:53:12 -07:00

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)