From 30a016595bd4610eb67bfaab160e12d4bfb097f1 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Tue, 21 Jan 2025 14:38:48 -0600 Subject: [PATCH] dhcp: T7052: Clean up unnecessary params in formatter methods The formatter methods are mostly `family` agnostic now. --- src/op_mode/dhcp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py index b3d7d4dd3c..c6d225102a 100755 --- a/src/op_mode/dhcp.py +++ b/src/op_mode/dhcp.py @@ -204,7 +204,7 @@ def _get_raw_server_pool_statistics(config, family='inet', pool=None): return stats -def _get_formatted_server_pool_statistics(pool_data, family='inet'): +def _get_formatted_server_pool_statistics(pool_data): data_entries = [] for entry in pool_data: pool = entry.get('pool') @@ -234,7 +234,7 @@ def _get_raw_server_static_mappings(config, family='inet', pool=None, sorted=Non return mappings -def _get_formatted_server_static_mappings(raw_data, family='inet'): +def _get_formatted_server_static_mappings(raw_data): data_entries = [] for entry in raw_data: @@ -481,7 +481,7 @@ def _get_raw_client_leases(family='inet', interface=None): return lease_data -def _get_formatted_client_leases(lease_data, family): +def _get_formatted_client_leases(lease_data): from time import localtime from time import strftime