Add get_firewall_groups_count method
In some logs before other SqlAlchemy tracebacks the missing of this method is reported. Change-Id: I36b2083ab3432080857d8ce97ea96f9b5acc87fe Related-Bug: #2006683
This commit is contained in:
parent
a68f489163
commit
fc5531e978
|
@ -354,6 +354,11 @@ class FirewallPluginV2(Firewallv2PluginBase):
|
|||
def get_firewall_groups(self, context, filters=None, fields=None):
|
||||
return self.driver.get_firewall_groups(context, filters, fields)
|
||||
|
||||
@log_helpers.log_method_call
|
||||
def get_firewall_groups_count(self, context, filters=None):
|
||||
filters = filters or {}
|
||||
return len(self.get_firewall_groups(context=context, filters=filters))
|
||||
|
||||
@log_helpers.log_method_call
|
||||
@db_api.CONTEXT_WRITER
|
||||
def update_firewall_group(self, context, id, firewall_group):
|
||||
|
|
Loading…
Reference in New Issue