mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
bug fixes
This commit is contained in:
@@ -19,7 +19,9 @@ class FirewallMetricsDataSource:
|
||||
''' Firewall Metrics data provider
|
||||
'''
|
||||
@staticmethod
|
||||
def metric_records(router_entry, *, metric_labels = [], raw = False, matching_only = True):
|
||||
def metric_records(router_entry, *, metric_labels = None, raw = False, matching_only = True):
|
||||
if metric_labels is None:
|
||||
metric_labels = []
|
||||
try:
|
||||
filter_path = '/ip/firewall/filter' if not raw else '/ip/firewall/raw'
|
||||
firewall_records = router_entry.api_connection.router_api().get_resource(filter_path).call('print', {'stats':'', 'all':''})
|
||||
|
||||
Reference in New Issue
Block a user