06-remove-security-groups.patch revision 4070
4070N/ASolaris/EVS do not yet support security_groups so disable all
4070N/Asecurity_group quotas and remove the pie chart from the summary page.
4070N/AThis patch is not suitable for upstream contribution.
4070N/A
4070N/A--- horizon-2014.2.2/horizon/templates/horizon/common/_limit_summary.html.orig 2015-03-04 08:18:40.918393776 -0700
4070N/A+++ horizon-2014.2.2/horizon/templates/horizon/common/_limit_summary.html 2015-03-04 08:18:50.752267276 -0700
4070N/A@@ -30,12 +30,6 @@
4070N/A </strong>
4070N/A </div>
4070N/A
4070N/A- <div class="d3_quota_bar">
4070N/A- <div class="d3_pie_chart_usage" data-used="{% widthratio usage.limits.totalSecurityGroupsUsed usage.limits.maxSecurityGroups 100 %}"></div>
4070N/A- <strong>{% trans "Security Groups" %} <br />
4070N/A- {% blocktrans with used=usage.limits.totalSecurityGroupsUsed|intcomma available=usage.limits.maxSecurityGroups|quotainf|intcomma%}Used <span> {{ used }} </span> of <span> {{ available }} </span>{% endblocktrans %}
4070N/A- </strong>
4070N/A- </div>
4070N/A {% if usage.limits.totalVolumesUsed >= 0 %}
4070N/A <div class="d3_quota_bar">
4070N/A <div class="d3_pie_chart_usage" data-used="{% widthratio usage.limits.totalVolumesUsed usage.limits.maxTotalVolumes 100 %}"></div>
4070N/A
4070N/A--- horizon-2014.2.2/openstack_dashboard/usage/quotas.py.orig 2015-03-04 13:53:40.924434219 -0700
4070N/A+++ horizon-2014.2.2/openstack_dashboard/usage/quotas.py 2015-03-04 13:54:19.737460759 -0700
4070N/A@@ -197,12 +197,10 @@ def get_disabled_quotas(request):
4070N/A # Remove the nova network quotas
4070N/A disabled_quotas.extend(['floating_ips', 'fixed_ips'])
4070N/A
4070N/A- if neutron.is_extension_supported(request, 'security-group'):
4070N/A- # If Neutron security group is supported, disable Nova quotas
4070N/A- disabled_quotas.extend(['security_groups', 'security_group_rules'])
4070N/A- else:
4070N/A- # If Nova security group is used, disable Neutron quotas
4070N/A- disabled_quotas.extend(['security_group', 'security_group_rule'])
4070N/A+ # Solaris/EVS do not yet support security_groups, so disable all
4070N/A+ # security_group quotas
4070N/A+ disabled_quotas.extend(['security_groups', 'security_group_rules'])
4070N/A+ disabled_quotas.extend(['security_group', 'security_group_rule'])
4070N/A
4070N/A try:
4070N/A if not neutron.is_quotas_extension_supported(request):