From 8bb15b4228bf1f98dd9d2b69dd7f6108f84652c5 Mon Sep 17 00:00:00 2001 From: Masco Kaliyamoorthy Date: Wed, 25 Nov 2015 14:35:33 +0530 Subject: [PATCH] Added filter for firewall tables Client side filter option is missing in all the firewall tables. This patch is adding the filter option in all the firewall tables. Change-Id: I3cc4ad22102d9296a5dcc4a62983c13127f4c47f Closes-Bug: #1427517 --- .../dashboards/project/firewalls/tables.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index 663b79fdad..9fc05dab35 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -320,7 +320,9 @@ class RulesTable(tables.DataTable): class Meta(object): name = "rulestable" verbose_name = _("Rules") - table_actions = (AddRuleLink, DeleteRuleLink) + table_actions = (AddRuleLink, + DeleteRuleLink, + tables.NameFilterAction) row_actions = (UpdateRuleLink, DeleteRuleLink) @@ -341,7 +343,9 @@ class PoliciesTable(tables.DataTable): class Meta(object): name = "policiestable" verbose_name = _("Policies") - table_actions = (AddPolicyLink, DeletePolicyLink) + table_actions = (AddPolicyLink, + DeletePolicyLink, + tables.NameFilterAction) row_actions = (UpdatePolicyLink, InsertRuleToPolicyLink, RemoveRuleFromPolicyLink, DeletePolicyLink) @@ -389,7 +393,9 @@ class FirewallsTable(tables.DataTable): class Meta(object): name = "firewallstable" verbose_name = _("Firewalls") - table_actions = (AddFirewallLink, DeleteFirewallLink) + table_actions = (AddFirewallLink, + DeleteFirewallLink, + tables.NameFilterAction) row_actions = (UpdateFirewallLink, DeleteFirewallLink, AddRouterToFirewallLink, RemoveRouterFromFirewallLink)