LB method column is added in pools table

In load balancer pools table load balancing method column missing.

This patch adding the LB method column in pools table.

Change-Id: I0465bd951d31f1bb3f47c8e8ddec18defc8b69e0
Closes-Bug: #1464181
This commit is contained in:
Masco Kaliyamoorthy 2015-06-11 14:49:39 +05:30
parent ea2b14fae4
commit 2865055532
1 changed files with 12 additions and 0 deletions

View File

@ -312,6 +312,15 @@ STATUS_DISPLAY_CHOICES = (
class PoolsTable(tables.DataTable):
METHOD_DISPLAY_CHOICES = (
("round_robin", pgettext_lazy("load balancing method",
u"Round Robin")),
("least_connections", pgettext_lazy("load balancing method",
u"Least Connections")),
("source_ip", pgettext_lazy("load balancing method",
u"Source IP")),
)
name = tables.Column("name_or_id",
verbose_name=_("Name"),
link="horizon:project:loadbalancers:pooldetails")
@ -320,6 +329,9 @@ class PoolsTable(tables.DataTable):
filters=(lambda v: filters.default(v, _('N/A')),))
subnet_name = tables.Column('subnet_name', verbose_name=_("Subnet"))
protocol = tables.Column('protocol', verbose_name=_("Protocol"))
method = tables.Column('lb_method',
verbose_name=_("LB Method"),
display_choices=METHOD_DISPLAY_CHOICES)
status = tables.Column('status',
verbose_name=_("Status"),
status=True,