Skip to content

Commit

Permalink
dhcp: T7052: Clean up unnecessary params in formatter methods
Browse files Browse the repository at this point in the history
The formatter methods are mostly `family` agnostic now.
  • Loading branch information
indrajitr committed Jan 21, 2025
1 parent 2aed4d7 commit 30a0165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/op_mode/dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 30a0165

Please sign in to comment.