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:
elajkat 2023-02-10 11:31:56 +01:00
parent a68f489163
commit fc5531e978
1 changed files with 5 additions and 0 deletions

View File

@ -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):